/* =====================================================
   VISION CONSEILS - Pages connexion / inscription
   Layout responsive « split-screen » :
   - Desktop/tablette large : panneau marque (gauche) + formulaire (droite)
   - Mobile/tablette : une seule colonne, carte sur fond bleu
   ===================================================== */

body.auth-page {
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0;
    background: var(--bg, #F4F6FB);
    display: flex;
    flex-direction: column;
}

.auth-split {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
    min-height: 100dvh;
}

/* ---------- PANNEAU MARQUE (gauche) ---------- */
.auth-brand {
    position: relative;
    background: linear-gradient(150deg, #1B2A5E 0%, #0F1A40 100%);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 48px;
    overflow: hidden;
}
.auth-brand::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -25%;
    width: 70%;
    height: 70%;
    background: radial-gradient(circle, rgba(232, 69, 60, 0.28) 0%, transparent 70%);
    pointer-events: none;
}
.auth-brand::after {
    content: '';
    position: absolute;
    bottom: -25%;
    left: -20%;
    width: 65%;
    height: 65%;
    background: radial-gradient(circle, rgba(232, 69, 60, 0.14) 0%, transparent 70%);
    pointer-events: none;
}

.auth-brand-top {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 14px;
}
.auth-brand-top img {
    height: 52px;
    width: auto;
    background: #fff;
    padding: 7px;
    border-radius: 12px;
}
.auth-brand-top .brand-name {
    font-family: var(--font-display, 'Playfair Display', serif);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.auth-brand-center {
    position: relative;
    z-index: 2;
    max-width: 420px;
}
.auth-brand-center h1 {
    font-family: var(--font-display, 'Playfair Display', serif);
    font-size: clamp(1.9rem, 3.5vw, 2.8rem);
    line-height: 1.15;
    color: #fff;
    margin: 0 0 18px;
}
.auth-brand-center p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.78);
    margin: 0;
}
.auth-brand-features {
    list-style: none;
    padding: 0;
    margin: 28px 0 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.auth-brand-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.98rem;
    color: rgba(255, 255, 255, 0.9);
}
.auth-brand-features li .check {
    flex: 0 0 26px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(232, 69, 60, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
}

.auth-brand-bottom {
    position: relative;
    z-index: 2;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.55);
}

/* ---------- PANNEAU FORMULAIRE (droite) ---------- */
.auth-form-side {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 32px;
    position: relative;
    background: var(--bg-card, #fff);
}

.auth-card {
    width: 100%;
    max-width: 420px;
    animation: authFadeIn 0.5s ease-out;
}

.auth-card-logo {
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    margin-bottom: 24px;
}
.auth-card-logo img {
    height: 58px;
    margin-bottom: 10px;
}
.auth-card-logo .brand {
    font-family: var(--font-display, 'Playfair Display', serif);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--primary, #1B2A5E);
}

.auth-title {
    font-family: var(--font-display, 'Playfair Display', serif);
    font-size: 1.7rem;
    color: var(--primary, #1B2A5E);
    margin: 0 0 6px;
}
.auth-subtitle {
    color: var(--text-secondary, #6B7280);
    margin: 0 0 28px;
    font-size: 0.96rem;
}

.auth-footer {
    text-align: center;
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid var(--border, #E5E7EB);
    color: var(--text-secondary, #6B7280);
    font-size: 0.9rem;
}
.auth-footer a {
    color: var(--accent, #E8453C);
    font-weight: 600;
}

/* ---------- SÉLECTEUR DE LANGUE ---------- */
.lang-switcher {
    position: absolute;
    top: 22px;
    right: 22px;
    display: flex;
    gap: 8px;
    z-index: 10;
}
.lang-btn {
    background: var(--bg-subtle, #FAFBFE);
    border: 1.5px solid var(--border, #E5E7EB);
    color: var(--text-secondary, #6B7280);
    padding: 6px 14px;
    border-radius: 100px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 700;
    transition: all 0.2s ease;
}
.lang-btn.active, .lang-btn:hover {
    background: var(--accent, #E8453C);
    border-color: var(--accent, #E8453C);
    color: #fff;
}

@keyframes authFadeIn {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* =====================================================
   RESPONSIVE
   ===================================================== */

/* ---- TABLETTE (≤ 900px) : masque le panneau marque ---- */
@media (max-width: 900px) {
    .auth-split { grid-template-columns: 1fr; }
    .auth-brand { display: none; }
    .auth-form-side {
        min-height: 100vh;
        min-height: 100dvh;
        background: linear-gradient(150deg, #1B2A5E 0%, #0F1A40 100%);
        padding: 32px 24px;
    }
    .auth-card {
        background: #fff;
        border-radius: 20px;
        padding: 40px 32px;
        box-shadow: 0 25px 60px rgba(0, 0, 0, 0.28);
        max-width: 460px;
    }
    .auth-card-logo { display: flex; }
    .lang-btn {
        background: rgba(255, 255, 255, 0.15);
        border-color: rgba(255, 255, 255, 0.3);
        color: #fff;
        backdrop-filter: blur(8px);
    }
}

/* ---- TÉLÉPHONE (≤ 480px) ---- */
@media (max-width: 480px) {
    .auth-form-side {
        padding: 64px 16px 32px;
        align-items: center;
        justify-content: center;
    }
    .auth-card {
        padding: 30px 22px;
        margin-top: 0;
        border-radius: 16px;
    }
    .auth-card-logo img { height: 50px; }
    .auth-title { font-size: 1.45rem; }
    .auth-subtitle { font-size: 0.9rem; margin-bottom: 22px; }
    .lang-switcher { top: 16px; right: 16px; }
    .form-row { grid-template-columns: 1fr !important; }
}

/* ---- TRÈS PETIT (≤ 360px) ---- */
@media (max-width: 360px) {
    .auth-card { padding: 24px 16px; }
}
