/* Page de connexion — adapté du mockup Claude Design "Connexion - CLEM AI" */

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
}

body {
    background: #d9dce4;
    font-family: 'Plus Jakarta Sans', ui-sans-serif, system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a {
    color: var(--brand-d, #4f46e5);
    text-decoration: none;
    font-weight: 700;
}

.cl-page {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 26px;
}

.cl-root {
    --brand: #6366f1;
    --brand-d: #4f46e5;
    --brand-2: #8b5cf6;
    --brand-soft: #eef0fe;
    --ink: #1a1c2e;
    --mut: #6b7080;
    --faint: #9aa0b4;
    --line-2: #e2e4ef;

    width: 100%;
    max-width: 420px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(165deg, #f7f8fd 0%, #eef0fe 100%);
    color: var(--ink);
    font-size: 15px;
    padding: 44px 32px;
    border-radius: 28px;
    box-shadow: 0 30px 80px rgba(30, 30, 80, .18);
    animation: clFadeIn .5s ease-out;
}

@keyframes clFadeIn {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.cl-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.cl-b1, .cl-b2 {
    position: absolute;
    border-radius: 50%;
    filter: blur(10px);
    opacity: .5;
}

.cl-b1 {
    width: 260px;
    height: 260px;
    top: -90px;
    right: -70px;
    background: radial-gradient(circle, rgba(139, 92, 246, .45), transparent 68%);
}

.cl-b2 {
    width: 240px;
    height: 240px;
    bottom: -80px;
    left: -70px;
    background: radial-gradient(circle, rgba(99, 102, 241, .4), transparent 68%);
}

.cl-landing {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 26px;
}

.cl-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
}

.cl-logo {
    width: 74px;
    height: 74px;
    border-radius: 22px;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    display: grid;
    place-items: center;
    box-shadow: 0 12px 30px rgba(99, 102, 241, .4);
    margin-bottom: 6px;
    overflow: hidden;
}

.cl-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 12px;
}

.cl-brand h1 {
    margin: 0;
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -.03em;
}

.cl-brand h1 b {
    color: var(--brand-d);
}

.cl-brand p {
    margin: 0;
    color: var(--mut);
    font-size: 15px;
    font-weight: 600;
}

.cl-feats {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.cl-feats li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14.5px;
    font-weight: 600;
    color: #3a3d55;
}

.cl-feat-ic {
    width: 32px;
    height: 32px;
    flex: none;
    border-radius: 10px;
    background: #fff;
    color: var(--brand-d);
    display: grid;
    place-items: center;
    box-shadow: 0 2px 8px rgba(99, 102, 241, .12);
}

.cl-auth {
    display: flex;
    flex-direction: column;
    gap: 11px;
    margin-top: 4px;
}

.cl-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    height: 56px;
    border: 1px solid var(--line-2);
    background: #fff;
    border-radius: 16px;
    font-size: 15.5px;
    font-weight: 700;
    color: #3c4043;
    box-shadow: 0 4px 14px rgba(30, 30, 80, .08);
    transition: transform .15s ease, box-shadow .15s ease;
}

.cl-google:hover {
    box-shadow: 0 8px 20px rgba(30, 30, 80, .14);
    transform: translateY(-1px);
}

.cl-google:active {
    transform: translateY(1px);
}

.cl-google img {
    width: 20px;
    height: 20px;
}

.cl-legal {
    margin: 6px 2px 0;
    font-size: 11.5px;
    line-height: 1.5;
    color: var(--faint);
    text-align: center;
    font-weight: 500;
}

.cl-alert-error {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 14px;
    color: #b91c1c;
    padding: 12px 16px;
    font-size: 13.5px;
    font-weight: 600;
    text-align: left;
}

@media (max-width: 480px) {
    .cl-root {
        padding: 34px 22px;
        border-radius: 22px;
    }

    .cl-brand h1 {
        font-size: 27px;
    }
}
