/*
 * auth.css — pages d'authentification (connexion, inscription, mot de passe).
 * Split-screen : panneau marque sombre + formulaire. Liée par chaque template auth.
 * Champs stylés par type → couvre aussi les widgets de formulaire Symfony.
 */

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

/* ── Panneau marque (gauche) ────────────────────────────────────────────── */
.brand { position: relative; background: var(--lx-dark); color: #fff; padding: 48px 56px; display: flex; flex-direction: column; overflow: hidden; }
.brand::before { content: ""; position: absolute; inset: -20% -10% auto -20%; height: 70%; filter: blur(70px); opacity: .85; z-index: 0; background: radial-gradient(42% 50% at 30% 20%, rgba(107,79,224,.55), transparent 70%), radial-gradient(38% 46% at 80% 10%, rgba(177,79,224,.42), transparent 70%); }
.brand::after { content: ""; position: absolute; inset: auto -10% -25% 20%; height: 55%; filter: blur(80px); opacity: .5; z-index: 0; background: radial-gradient(45% 55% at 60% 80%, rgba(79,63,208,.5), transparent 72%); }
.brand > * { position: relative; z-index: 1; }
.brand-logo { font-weight: 600; font-size: 18px; letter-spacing: .14em; color: #fff; }
.brand-logo span { font-weight: 300; opacity: .85; }
.brand-logo b { font-weight: 300; color: rgba(255,255,255,.45); }
.brand-mid { margin: auto 0; padding: 40px 0; }
.brand-mid h2 { font-family: 'DM Serif Display', serif; font-weight: 400; font-size: clamp(30px, 3vw, 42px); line-height: 1.18; letter-spacing: -.01em; max-width: 440px; }
.brand-mid h2 em { font-style: italic; color: #c9b6ff; }
.brand-mid p { margin-top: 18px; font-size: 15px; font-weight: 300; color: rgba(255,255,255,.7); max-width: 400px; }
.brand-trust { margin-top: 34px; display: flex; flex-direction: column; gap: 14px; }
.brand-trust span { display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 300; color: rgba(255,255,255,.85); }
.brand-trust svg { width: 18px; height: 18px; color: #6ee7b7; flex-shrink: 0; }
.brand-dots { display: flex; gap: 7px; margin-bottom: 14px; }
.brand-dots i { width: 9px; height: 9px; border-radius: 50%; opacity: .9; }
.brand-foot { font-size: 12px; color: rgba(255,255,255,.45); }

/* ── Panneau formulaire (droite) ────────────────────────────────────────── */
.panel { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px; background: #fff; }
.panel-top { position: absolute; top: 26px; right: 32px; }
.card { width: 100%; max-width: 400px; }
.card h1 { font-family: 'DM Serif Display', serif; font-weight: 400; font-size: 32px; letter-spacing: -.01em; }
.card .lede { margin-top: 8px; font-size: 14.5px; font-weight: 300; color: var(--lx-text-soft); margin-bottom: 30px; }

/* ── Champs (par type → widgets Symfony inclus) ─────────────────────────── */
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 7px; color: var(--lx-text-soft); }
.auth input[type="email"], .auth input[type="password"], .auth input[type="text"] {
    width: 100%; padding: 12px 14px; border: 0.5px solid var(--lx-border); border-radius: 10px;
    font-size: 14.5px; font-family: inherit; color: var(--lx-text); background: var(--lx-ivory);
    transition: border-color .2s, background .2s, box-shadow .2s;
}
.auth input::placeholder { color: var(--lx-faint); }
.auth input[type="email"]:focus, .auth input[type="password"]:focus, .auth input[type="text"]:focus {
    outline: none; border-color: var(--lx-violet); background: #fff; box-shadow: 0 0 0 4px rgba(107,79,224,.10);
}

.check { display: flex; align-items: flex-start; gap: 9px; font-size: 13px; font-weight: 300; color: var(--lx-text-soft); cursor: pointer; }
.check input[type="checkbox"] { width: 16px; height: 16px; margin-top: 2px; accent-color: var(--lx-violet); flex-shrink: 0; }
.check a { color: var(--lx-violet); font-weight: 500; }
.row-between { display: flex; align-items: center; justify-content: space-between; margin: -4px 0 22px; }
.link { font-size: 13px; font-weight: 500; color: var(--lx-violet); }
.link:hover { text-decoration: underline; }

.card .lx-btn { width: 100%; }

.divider { display: flex; align-items: center; gap: 14px; margin: 24px 0; color: var(--lx-faint); font-size: 12px; }
.divider::before, .divider::after { content: ""; height: .5px; background: var(--lx-border); flex: 1; }
.switch { text-align: center; font-size: 14px; font-weight: 300; color: var(--lx-text-soft); }
.switch a { color: var(--lx-violet); font-weight: 600; }
.switch a:hover { text-decoration: underline; }
.back { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 500; color: var(--lx-text-soft); margin-top: 24px; }
.back:hover { color: var(--lx-violet); }
.back svg { width: 15px; height: 15px; }
.trial-note { margin-top: 16px; display: flex; align-items: center; gap: 10px; padding: 11px 14px; background: var(--lx-violet-soft); border: 0.5px solid var(--lx-violet-border); border-radius: 10px; font-size: 12.5px; color: var(--lx-text-soft); }
.trial-note svg { width: 16px; height: 16px; color: var(--lx-violet); flex-shrink: 0; }

.alert-error { background: var(--lx-warn-bg); color: var(--lx-danger); border: 0.5px solid #f3d0d0; padding: 11px 14px; border-radius: 10px; margin-bottom: 18px; font-size: 13px; }

/* Erreurs de formulaire Symfony (form_errors → <ul><li>) */
.card form ul { list-style: none; margin: 6px 0 0; padding: 0; }
.card form ul li { color: var(--lx-danger); font-size: 12.5px; margin-top: 4px; }

.text-center { text-align: center; }
.email-icon { font-size: 44px; margin-bottom: 14px; }
.card .msg { font-size: 14.5px; font-weight: 300; color: var(--lx-text-soft); line-height: 1.7; margin-bottom: 12px; }
.card .msg strong { font-weight: 600; color: var(--lx-text); }

@media (max-width: 860px) {
    .auth { grid-template-columns: 1fr; }
    .brand { display: none; }
    .panel { min-height: 100vh; }
}
@media (prefers-reduced-motion: reduce) { .brand::before, .brand::after { animation: none; } }
