/* ============================================================
   🔥 PAGES AUTH — Inscription, connexion, magic link, etc.
   ============================================================
   Layout dédié : pas de header/footer pleins, focus sur le formulaire.
   ============================================================ */


/* === BODY AUTH === */
.auth-body {
    min-height: 100vh;
    background: var(--bg-warm);
    display: flex;
    flex-direction: column;
}


/* === HEADER MINIMAL AUTH === */
.auth-header {
    padding: var(--space-6) var(--space-6);
}

.auth-header-inner {
    max-width: var(--max-content);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.auth-header .logo {
    font-size: var(--text-lg);
    font-weight: var(--weight-extra);
}

.auth-header .back-link {
    color: var(--text-secondary);
    font-size: var(--text-sm);
    font-weight: var(--weight-medium);
    transition: color var(--transition-fast);
}

.auth-header .back-link:hover {
    color: var(--text);
}


/* === MAIN === */
.auth-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-8) var(--space-6);
}


/* === LAYOUT 2 COLONNES (mascotte + form) === */
.auth-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
    align-items: center;
    max-width: 1080px;
    width: 100%;
}

/* === COLONNE GAUCHE : MASCOTTE + INFOS === */
.auth-left {
    display: flex;
    flex-direction: column;
    gap: var(--space-8);
}

.auth-left .auth-mascot {
    display: flex;
    justify-content: center;
}

.auth-left .auth-mascot .fp-mascot {
    width: 100%;
    max-width: 280px;
    filter: drop-shadow(0 16px 40px rgba(255, 87, 34, 0.2));
}

.auth-left .auth-tagline h2 {
    font-size: var(--text-2xl);
    line-height: var(--leading-2xl);
    font-weight: var(--weight-bold);
    letter-spacing: var(--tracking-tight);
    margin-bottom: var(--space-3);
    color: var(--text);
}

.auth-left .auth-tagline p {
    color: var(--text-secondary);
    font-size: var(--text-base);
    line-height: var(--leading-lg);
}

.auth-left .auth-benefits {
    list-style: none;
    padding: 0;
}

.auth-left .auth-benefits li {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-2) 0;
    color: var(--text-secondary);
    font-size: var(--text-sm);
}

.auth-left .auth-benefits li::before {
    content: '✓';
    color: var(--fp-success);
    font-weight: 700;
    font-size: var(--text-base);
    width: 20px;
    flex-shrink: 0;
}


/* === COLONNE DROITE : LE FORMULAIRE === */
.auth-right .auth-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: var(--space-10);
    box-shadow: var(--shadow-lg);
}

.auth-right h1 {
    font-size: var(--text-3xl);
    line-height: var(--leading-3xl);
    margin-bottom: var(--space-2);
    letter-spacing: var(--tracking-tight);
}

.auth-right .auth-subtitle {
    color: var(--text-secondary);
    font-size: var(--text-base);
    margin-bottom: var(--space-8);
}

.auth-right .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3);
}

@media (max-width: 480px) {
    .auth-right .form-row {
        grid-template-columns: 1fr;
    }
}

.auth-right .form-label-optional {
    color: var(--text-tertiary);
    font-weight: var(--weight-regular);
    font-size: var(--text-xs);
    margin-left: var(--space-1);
}


/* === BOUTON GOOGLE OAUTH === */
.btn-google {
    width: 100%;
    background: var(--bg-card);
    color: var(--text);
    border: 1px solid var(--border);
    font-weight: var(--weight-semibold);
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-md);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
    transition: all var(--transition-fast);
    cursor: pointer;
    text-decoration: none;
    font-size: var(--text-base);
}

.btn-google:hover {
    border-color: var(--border-strong);
    background: var(--bg-subtle);
    color: var(--text);
}

.btn-google .google-icon {
    width: 18px;
    height: 18px;
}


/* === SÉPARATEUR "OU" === */
.auth-divider {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin: var(--space-5) 0;
    font-size: var(--text-xs);
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-subtle);
}


/* === FOOTER DU FORMULAIRE === */
.auth-form-footer {
    margin-top: var(--space-6);
    padding-top: var(--space-6);
    border-top: 1px solid var(--border-subtle);
    text-align: center;
    font-size: var(--text-sm);
    color: var(--text-secondary);
}

.auth-form-footer a {
    color: var(--accent);
    font-weight: var(--weight-semibold);
}

.auth-form-footer a:hover {
    color: var(--accent-hover);
}

.auth-terms {
    margin-top: var(--space-4);
    text-align: center;
    font-size: var(--text-xs);
    color: var(--text-tertiary);
    line-height: 1.5;
}

.auth-terms a {
    color: var(--text-secondary);
    text-decoration: underline;
}


/* === PAGE CENTRÉE SIMPLE (magic-link envoyé, logout, oauth callback) === */
.auth-centered {
    max-width: 480px;
    width: 100%;
    text-align: center;
}

.auth-centered .auth-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: var(--space-10);
    box-shadow: var(--shadow-lg);
}

.auth-centered .auth-mascot-centered {
    display: flex;
    justify-content: center;
    margin-bottom: var(--space-6);
}

.auth-centered .auth-mascot-centered .fp-mascot {
    width: 160px;
    height: auto;
    filter: drop-shadow(0 12px 32px rgba(255, 87, 34, 0.2));
}

.auth-centered h1 {
    font-size: var(--text-2xl);
    margin-bottom: var(--space-3);
}

.auth-centered .lead {
    color: var(--text-secondary);
    font-size: var(--text-base);
    line-height: var(--leading-lg);
    margin-bottom: var(--space-6);
}

.auth-centered .auth-info-box {
    background: var(--bg-warm);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: var(--space-4);
    margin: var(--space-6) 0;
    text-align: left;
    font-size: var(--text-sm);
}

.auth-centered .auth-info-box h3 {
    font-size: var(--text-sm);
    font-weight: var(--weight-semibold);
    margin-bottom: var(--space-3);
}

.auth-centered .auth-info-box ul {
    list-style: none;
    padding: 0;
}

.auth-centered .auth-info-box li {
    padding: var(--space-1) 0;
    color: var(--text-secondary);
    font-size: var(--text-sm);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.auth-centered .auth-info-box li::before {
    content: '→';
    color: var(--text-tertiary);
    flex-shrink: 0;
}

.auth-centered .auth-actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}


/* === RESPONSIVE === */
@media (max-width: 900px) {
    .auth-grid {
        grid-template-columns: 1fr;
        gap: var(--space-6);
        max-width: 480px;
    }
    .auth-left {
        text-align: center;
    }
    .auth-left .auth-mascot .fp-mascot {
        max-width: 180px;
    }
    .auth-left .auth-tagline {
        display: none; /* Cache la baseline sur mobile pour gagner de la place */
    }
    .auth-left .auth-benefits {
        display: none;
    }
}

@media (max-width: 480px) {
    .auth-right .auth-card {
        padding: var(--space-6);
    }
}
