/* Pages d'authentification (connexion, mot de passe oublié) */
body.auth { background: #fff; }
.auth-wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); min-height: 100vh; min-height: 100dvh; }

.auth-side {
    position: relative; overflow: hidden; background: var(--bg); color: var(--ink); padding: 44px 52px; border-right: 1px solid var(--line);
    display: flex; flex-direction: column; justify-content: space-between;
}
.auth-side::before {
    content: ''; position: absolute; width: 560px; height: 560px; border-radius: 50%; right: -200px; top: -220px;
    background: radial-gradient(closest-side, rgba(186, 0, 0, .12), rgba(186, 0, 0, 0));
}
.auth-side::after {
    content: ''; position: absolute; inset: 0; opacity: .35;
    background-image: linear-gradient(rgba(17, 17, 17, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(17, 17, 17, .04) 1px, transparent 1px);
    background-size: 44px 44px; mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
}
.auth-side > * { position: relative; z-index: 1; }
.auth-brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.auth-brand:hover { color: var(--ink); }
.auth-brand .brand-name { font-size: 19px; }
.auth-pitch h2 { color: var(--ink); font-size: clamp(28px, 3vw, 40px); line-height: 1.12; letter-spacing: -.035em; font-weight: 800; max-width: 520px; }
.auth-pitch h2 em { font-style: normal; color: var(--brand); }
.auth-pitch p { color: var(--text-2); font-size: 16px; max-width: 460px; margin-top: 14px; }
.auth-points { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.auth-points li { display: flex; gap: 12px; align-items: center; color: var(--ink); font-size: 14.5px; font-weight: 500; }
.auth-points li i { width: 30px; height: 30px; border-radius: 9px; background: var(--brand-50); display: grid; place-items: center; color: var(--brand); font-size: 13px; }

.auth-preview { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; max-width: 520px; }
.auth-stat { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px; box-shadow: var(--shadow-xs); }
.auth-stat .l { font-size: 12.5px; color: var(--muted); }
.auth-stat .v { font-size: 22px; font-weight: 800; letter-spacing: -.03em; margin-top: 4px; color: var(--ink); }
.auth-stat .t { font-size: 12px; color: var(--success); font-weight: 600; margin-top: 2px; }
.auth-stat.red { background: var(--brand); border-color: var(--brand); }
.auth-stat.red .v { color: #fff; }
.auth-stat.red .l, .auth-stat.red .t { color: rgba(255, 255, 255, .85); }
.auth-copy { color: var(--muted); font-size: 12.5px; }
.auth-card .brand-title { display: flex; align-items: center; gap: 12px; margin-bottom: 26px; }
.auth-card .brand-title b { display: block; font-size: 20px; font-weight: 800; letter-spacing: .02em; color: var(--ink); line-height: 1.1; }
.auth-card .brand-title b span { color: var(--brand); }
.auth-card .brand-title small { display: block; color: var(--text-2); font-size: 14.5px; margin-top: 2px; }

.auth-main { display: flex; flex-direction: column; justify-content: center; padding: 40px 24px; }
.auth-card { width: 100%; max-width: 420px; margin: 0 auto; }
.auth-card .mobile-brand { display: none; }
.auth-card h1 { font-size: 28px; letter-spacing: -.03em; margin-bottom: 6px; }
.auth-card .lead-sub { color: var(--muted); margin-bottom: 28px; }
.auth-card .form-control { min-height: 50px; border-radius: 12px; font-size: 15px; }
.auth-card .input-icon { position: relative; }
.auth-card .input-icon > i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--faint); z-index: 2; }
.auth-card .input-icon .form-control { padding-left: 44px; }
.auth-card .btn-lg { width: 100%; }
.auth-alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; font-size: 13.5px; margin-bottom: 18px; }
.auth-alert.error { background: var(--danger-bg); color: #7A1A12; }
.auth-alert.success { background: var(--success-bg); color: #0F5B2C; }
.auth-alert i { margin-top: 3px; }
.demo-box { margin-top: 24px; border: 1px dashed #D4D4D8; border-radius: 14px; padding: 14px 16px; background: var(--surface-2); }
.demo-box .d-title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.demo-accounts { display: grid; gap: 6px; }
.demo-acc { display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 1px solid var(--line); background: #fff; border-radius: 11px; padding: 9px 12px; font-size: 13px; text-align: left; transition: border-color .15s; }
.demo-acc:hover { border-color: var(--ink); }
.demo-acc b { color: var(--ink); }
.demo-acc span { color: var(--muted); }
.auth-back { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13.5px; font-weight: 500; }
.auth-back:hover { color: var(--ink); }

@media (max-width: 991.98px) {
    .auth-wrap { grid-template-columns: 1fr; }
    .auth-side { display: none; }
    .auth-main { justify-content: flex-start; padding: 28px 20px calc(28px + env(safe-area-inset-bottom)); }
    .auth-card .mobile-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 36px; }
    .auth-card h1 { font-size: 25px; }
}

/* Connexion : la marque est affichée dans la carte, l'en-tête mobile n'est pas répété */
.auth-card:has(.brand-title) .mobile-brand { display: none !important; }
