.auth-page {
    min-height: calc(100vh - var(--nav-h));
    padding-top: var(--nav-h);
    display: grid;
    grid-template-columns: 1fr 420px 1fr;
}

.auth-left {
    background: linear-gradient(135deg, var(--nav) 0%, #1a6fc4 100%);
    padding: clamp(2.5rem, 5vw, 4rem) clamp(2rem, 4vw, 3.5rem);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.auth-left::before {
    content: '';
    position: absolute;
    right: 120px;
    bottom: 380px;
    width: 260px;
    height: 260px;
    background: url('/assets/img/logo_blanc.webp') center/contain no-repeat;
    opacity: 0.07;
    pointer-events: none;
}

.auth-hero-text {
    position: relative;
    z-index: 1;
}
.auth-hero-text .subtitle {
    font-family: 'Fredoka', sans-serif;
    font-size: clamp(0.85rem, 1.1vw, 1rem);
    font-weight: 500;
    color: rgba(255,255,255,0.75);
    margin-bottom: 0.2rem;
}
.auth-hero-text h1 {
    font-family: 'Fredoka', sans-serif;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.15;
    margin-bottom: 0.1rem;
}
.auth-hero-text h1 span {
    display: block;
    font-size: clamp(0.95rem, 1.3vw, 1.15rem);
    font-weight: 500;
    color: rgba(255,255,255,0.75);
    margin-bottom: 0.2rem;
}
.auth-hero-text h1 strong {
    display: block;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 700;
    color: #fff;
}
.auth-hero-text .auth-hero-tagline {
    font-family: 'Fredoka', sans-serif;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.15;
    margin-bottom: 1.5rem;
}
.auth-hero-desc {
    font-size: clamp(0.75rem, 0.9vw, 0.85rem);
    color: rgba(255,255,255,0.65);
    line-height: 1.65;
    max-width: 280px;
}

.auth-stats {
    display: flex;
    gap: 0;
    position: relative;
    z-index: 1;
}
.auth-stat {
    text-align: left;
    padding-right: 1.8rem;
    margin-right: 1.8rem;
    border-right: 1px solid rgba(255,255,255,0.2);
}
.auth-stat:last-child { border-right: none; margin-right: 0; padding-right: 0; }
.auth-stat-n {
    font-family: 'Fredoka', sans-serif;
    font-size: clamp(1.4rem, 2.2vw, 1.8rem);
    font-weight: 700;
    color: #fff;
    line-height: 1;
    display: block;
}
.auth-stat-l {
    font-size: clamp(0.58rem, 0.72vw, 0.68rem);
    color: rgba(255,255,255,0.6);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: block;
    margin-top: 0.18rem;
}

.auth-form-col {
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 2rem;
    box-shadow: 0 0 60px rgba(0,0,0,0.12);
    position: relative;
    z-index: 1;
}
.auth-form-inner {
    width: 100%;
    max-width: 340px;
}
.auth-form-title {
    font-family: 'Fredoka', sans-serif;
    font-size: clamp(1.5rem, 2.2vw, 1.9rem);
    font-weight: 700;
    color: var(--text);
    text-align: center;
    margin-bottom: 0.3rem;
}
.auth-form-sub {
    text-align: center;
    font-size: 0.78rem;
    color: var(--muted);
    margin-bottom: 2rem;
}
.auth-form-sub a {
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
}
.auth-form-sub a:hover { text-decoration: underline; }

.auth-field {
    margin-bottom: 1.1rem;
}
.auth-field label {
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 0.35rem;
}
.auth-field-wrap {
    position: relative;
}
.auth-field input {
    width: 100%;
    box-sizing: border-box;
    padding: 0.6rem 0.9rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.85rem;
    font-family: inherit;
    color: var(--text);
    background: var(--bg);
    outline: none;
    transition: border-color 0.18s, background 0.18s, box-shadow 0.18s;
}
.auth-field input:focus {
    border-color: var(--accent);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(63,145,226,0.12);
}
.auth-field input::placeholder { color: var(--muted); }

.eye-btn {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--muted);
    padding: 0;
    font-size: 0.9rem;
    line-height: 1;
    transition: color 0.15s;
}

.auth-submit {
    width: 100%;
    padding: 0.75rem 1.5rem;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    font-family: 'Fredoka', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    transition: background 0.18s, transform 0.12s, box-shadow 0.18s;
    box-shadow: 0 4px 16px rgba(63,145,226,0.25);
}
.auth-submit:hover {
    background: var(--nav-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(63,145,226,0.35);
}
.auth-submit:active { transform: translateY(0); }
.auth-submit-arrow { font-size: 1.1rem; }

.auth-right {
    background: linear-gradient(135deg, #1a6fc4 0%, var(--nav) 100%);
    padding: clamp(2.5rem, 5vw, 4rem) clamp(2rem, 4vw, 3rem);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 1.5rem;
}
.auth-right-title {
    font-family: 'Fredoka', sans-serif;
    font-size: clamp(0.85rem, 1.2vw, 1.05rem);
    font-weight: 500;
    color: rgba(255,255,255,0.75);
    line-height: 1.35;
    margin-bottom: 0.2rem;
}
.auth-right-title strong {
    display: block;
    font-size: clamp(1.55rem, 2.5vw, 2rem);
    font-weight: 700;
    color: #fff;
    margin-top: 0.05rem;
}

.upcoming-list {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}
.upcoming-item {
    background: rgba(255,255,255,0.14);
    border: 1.5px solid rgba(255,255,255,0.22);
    border-radius: var(--radius);
    padding: 0.62rem 1rem;
    transition: background 0.15s, border-color 0.15s;
    cursor: pointer;
    text-decoration: none;
}

.upcoming-item-name {
    display: block;
    font-family: 'Fredoka', sans-serif;
    font-size: 0.92rem;
    font-weight: 600;
    color: #fff;
    line-height: 1.2;
}
.upcoming-item-date {
    display: block;
    font-size: 0.68rem;
    color: rgba(255,255,255,0.62);
    margin-top: 0.12rem;
}




/* --- CONFIGURATION DE BASE (COMMUNE) --- */
.auth-page {
    min-height: calc(100vh - var(--nav-h));
    padding-top: var(--nav-h);
    display: flex;
    flex-direction: column;
    background-color: #f8fafc; /* Fond neutre par défaut pour le mobile */
}

/* --- MODE MOBILE (ÉPURÉ) --- */
/* On cache les colonnes bleues par défaut */
.auth-left, .auth-right {
    display: none;
}

/* Le formulaire est centré et "propre" sur mobile */
.auth-form-col {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
    background: #f8fafc;
}

.auth-form-inner {
    width: 100%;
    max-width: 360px;
    background: #fff;
    padding: 2rem;
    border-radius: 1.2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

/* --- MODE ORDINATEUR (TOUT AFFICHER) --- */
@media (min-width: 1024px) {
    .auth-page {
        display: grid;
        grid-template-columns: 1fr 420px 1fr;
        background-color: transparent;
        padding-top: var(--nav-h);
    }

    /* On réaffiche les parties bleues */
    .auth-left {
        display: flex;
        background: linear-gradient(135deg, var(--nav) 0%, #1a6fc4 100%);
        padding: 4rem 3.5rem;
        flex-direction: column;
        justify-content: space-between;
    }

    .auth-right {
        display: flex;
        background: linear-gradient(135deg, #1a6fc4 0%, var(--nav) 100%);
        padding: 4rem 3rem;
        flex-direction: column;
    }

    /* On retire le style "carte" du formulaire pour qu'il s'intègre à la grille */
    .auth-form-col {
        background: #fff;
        box-shadow: 0 0 60px rgba(0,0,0,0.12);
        padding: 0; 
    }

    .auth-form-inner {
        box-shadow: none;
        padding: 0;
        background: transparent;
    }
}

/* --- STYLES DES COMPOSANTS (RESTE INCHANGÉ) --- */
.auth-form-title {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.5rem;
}

.auth-field input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    margin-top: 0.4rem;
}

.auth-submit {
    width: 100%;
    padding: 0.8rem;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    margin-top: 1.5rem;
}
