/* ==========================================================================
   PAGE INSCRIPTION : DESIGN LUXE (SYNC LANDING PAGE)
   ========================================================================== */

/* --- 1. RESET & STRUCTURE --- */
body.auth-page {
    height: 100vh;
    overflow: hidden !important;
}


/* BOUTON RETOUR : PLUS GRAND & STATUTAIRE */
.auth-page .header-right .btn-secondary {
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #D4AF37 0%, #B8860B 100%) !important;
    /* Rembourrage augmenté pour un bouton plus imposant */
    padding: 15px 50px !important; 
    border-radius: 50px;
    border: none !important;
    cursor: pointer;
    position: relative;
    /* On conserve la neutralisation du texte original */
    color: transparent !important;
    font-size: 0 !important;
    transition: all 0.3s ease;
}

.auth-page .header-right .btn-secondary::before {
    content: "RETOUR";
    position: absolute;
    color: white !important;
    font-size: 0.85rem !important; /* On garde la taille de texte actuelle */
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    letter-spacing: 1px; /* Un peu plus d'élégance sur l'espacement */
}

.auth-page .header-right .btn-secondary:hover { 
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px rgba(184, 134, 11, 0.5);
}

.auth-page .header-right .btn-cta { display: none !important; }

/* 1. On force les blocs gauche et droite à prendre exactement le même espace disponible */
.auth-page .brand-block,
.auth-page .header-right {
    flex: 1 1 0; /* Prend tout l'espace vide de manière égale */
    display: flex;
    align-items: center;
}

/* 2. On aligne le contenu de gauche au début et celui de droite à la fin */
.auth-page .brand-block { justify-content: flex-start; }
.auth-page .header-right { justify-content: flex-end; }

/* 3. On s'assure que les liens au milieu ne sont pas compressés */
.auth-page .nav-links {
    flex: 0 0 auto; /* Garde sa taille naturelle sans bouger */
    display: flex;
    gap: 30px;
    justify-content: center;
}

/* --- 3. CARTE D'INSCRIPTION (RECTANGLE COMPACT) --- */
.auth-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 160px 20px 40px;
}

.auth-card.horizontal {
    background: white;
    width: 100%;
    max-width: 1050px; 
    padding: 20px 60px;
    border-radius: 40px;
    box-shadow: 0 30px 90px rgba(28, 59, 110, 0.08);
    display: flex;
    flex-direction: column;
    gap: 15px;
    animation: fadeInCard 0.8s ease-out;
}

@keyframes fadeInCard { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* Titre & Séparateur */
.auth-card-header h1 { font-size: 1.5rem; font-family: 'Montserrat', sans-serif; font-weight: 800; color: var(--primary); text-align: center; margin: 0; }
.text-accent { color: var(--accent); }
.auth-card-header p { text-align: center; color: var(--text-light); font-size: 0.80rem; margin: 2px 0 0; }

.auth-card-body { display: flex; align-items: center; gap: 60px; }  
.auth-col-left, .auth-col-right { flex: 1; }

.auth-divider { height: 120px; width: 1px; background: rgba(28, 59, 110, 0.1); display: flex; justify-content: center; align-items: center; }
.auth-divider span { background: white; padding: 10px 0; font-size: 0.65rem; font-weight: 800; color: var(--text-light); }

/* --- 4. COMPOSANTS --- */
.social-auth { display: flex; flex-direction: column; gap: 12px; }
.btn-social { width: 100%; height: 45px; border-radius: 12px; border: 1px solid #eee; background: white; font-weight: 600; font-size: 0.9rem; display: flex; align-items: center; justify-content: center; gap: 12px; cursor: pointer; transition: 0.3s; }

.btn-apple { background: black; color: white; border: none; }
.social-icon { width: 20px !important; height: 20px !important; }


.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.form-group label { display: block; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; color: var(--primary); margin-bottom: 10px; text-align: left; }
.form-group input { width: 100%; padding: 10px 15px; background: #F8F9FB; border: 1px solid #eee; border-radius: 10px; font-size: 0.95rem; }

/* --- 5. FOOTER DE LA CARTE --- */
.auth-card-footer { border-top: 1px solid rgba(28, 59, 110, 0.05); padding-top: 15px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.btn-auth-submit { width: 320px; padding: 14px; background: var(--primary); color: white; border-radius: 100px; font-family: 'Montserrat', sans-serif; font-weight: 800; text-transform: uppercase; border: none; cursor: pointer; transition: 0.3s; }
.btn-auth-submit:hover { background: var(--accent); transform: translateY(-2px); }
.form-check { display: flex; align-items: center; gap: 10px; font-size: 0.8rem; color: var(--text-light); }
.auth-footer-link a { color: var(--primary); font-weight: 800; text-decoration: none; }


/* ==========================================================================
   7. RESPONSIVE : INSCRIPTION (EMPILAGE VERTICAL)
   ========================================================================== */

   @media (max-width: 950px) {
    /* 1. Libérer le scroll pour pouvoir remplir le formulaire */
    html, body.auth-page { 
        overflow-y: auto !important; 
        height: auto; 
    }

    /* 2. Ajuster l'espacement du header mobile */
    .auth-wrapper { 
        padding: 120px 15px 40px; 
    }

    /* 3. La Carte : on réduit les marges internes */
    .auth-card.horizontal { 
        max-width: 100%; 
        padding: 35px 25px; 
        gap: 25px;
    }

    /* 4. Corps de carte : Empilage Vertical */
    .auth-card-body { 
        flex-direction: column; 
        gap: 30px; 
    }

    /* 5. Le Séparateur : On passe de vertical à horizontal */
    .auth-divider { 
        height: 1px; 
        width: 100%; 
        margin: 10px 0;
        background: rgba(28, 59, 110, 0.1);
    }
    
    .auth-divider span { 
        padding: 0 15px; 
        top: -10px; /* On remonte le texte "OU" sur la ligne */
    }

    /* 6. Formulaire : On passe les champs en une seule colonne */
    .form-row { 
        grid-template-columns: 1fr; 
        gap: 15px; 
    }

    /* 7. Bouton Submit : Pleine largeur pour le pouce */
    .btn-auth-submit { 
        width: 100%; 
        padding: 16px; 
    }

    /* 8. Ajustement Header Mobile (Bouton Retour) */
    .auth-page .header-right .btn-secondary {
        padding: 12px 30px !important; /* Un peu plus compact sur smartphone */
    }
    
    .auth-page .header-right .btn-secondary::before {
        font-size: 0.75rem !important;
        letter-spacing: 1px;
    }
}

/* --- OPTIMISATION PETIT MOBILE --- */
@media (max-width: 480px) {
    .auth-card-header h1 {
        font-size: 1.3rem;
    }
    
    .auth-card.horizontal {
        border-radius: 30px; /* Bordures un peu plus douces */
    }
    
    .form-group label {
        font-size: 0.65rem;
    }
}