/* =========================================================
   ViralMap — pages Inscription / Connexion
   (s'appuie sur les tokens et composants de styles.css)
   ========================================================= */
.auth { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 100vh; min-height: 100dvh; }

/* ---------- Colonne formulaire ---------- */
.auth__side { position: relative; display: flex; flex-direction: column; padding: 32px clamp(24px, 6vw, 96px); overflow: hidden; }
.auth__side::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 48px 48px; mask-image: radial-gradient(80% 70% at 30% 40%, #000, transparent); -webkit-mask-image: radial-gradient(80% 70% at 30% 40%, #000, transparent); }
.auth__side::after { content: ""; position: absolute; left: -200px; top: -200px; width: 600px; height: 600px; border-radius: 50%; background: radial-gradient(circle, rgba(255,45,61,.16), transparent 65%); pointer-events: none; }
.auth__top { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; }
.auth__back { font-size: 14px; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.auth__back:hover { color: var(--text); }
.auth__tools { display: flex; align-items: center; gap: 16px; }
@media (max-width: 420px) { .auth__back { display: none; } } /* le logo ramène déjà à l'accueil */
.auth__main { position: relative; z-index: 1; width: 100%; max-width: 440px; margin: auto 0; padding: 48px 0; }

.auth__live { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: #e4e4ea; margin-bottom: 26px; }
.auth__live b { font-variant-numeric: tabular-nums; }
.auth__title { font-size: clamp(38px, 4.4vw, 54px); letter-spacing: -0.045em; line-height: 1; }
[data-mode="login"] .auth__title em { display: block; }
.auth__sub { margin-top: 18px; color: var(--muted); font-size: 16.5px; max-width: 400px; }

.auth__context { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.auth__context[hidden] { display: none; }
.auth__context .chip { font-size: 12.5px; padding: 6px 12px; }
.auth__context .chip b { color: var(--text); font-weight: 500; }

.auth__form { margin-top: 32px; display: grid; gap: 12px; }
.btn--google { height: 54px; border-radius: 16px; background: #fff; color: #111; font-size: 15.5px; font-weight: 600; box-shadow: 0 10px 30px -12px rgba(255,255,255,.25); }
.btn--google:hover { transform: translateY(-2px); background: #f3f3f5; }
.btn--google svg { width: 20px; height: 20px; }
.auth__or { display: flex; align-items: center; gap: 14px; color: var(--dim); font-size: 14px; margin: 6px 0; }
.auth__or::before, .auth__or::after { content: ""; flex: 1; height: 1px; background: var(--line-2); }

.field { position: relative; display: block; }
.field input { width: 100%; height: 56px; padding: 0 52px 0 18px; border-radius: 16px; border: 0; outline: 0; background: rgba(255,255,255,.045); box-shadow: 0 0 0 1px var(--line) inset; color: var(--text); font: 500 16px var(--font); transition: box-shadow .25s, background .25s; }
.field input::placeholder { color: var(--dim); }
.field input:focus { background: rgba(255,255,255,.06); box-shadow: 0 0 0 1px rgba(255,45,61,.6) inset, 0 0 0 4px rgba(255,45,61,.12); }
.field.is-invalid input { box-shadow: 0 0 0 1px var(--red) inset; }
.field__icon, .field__eye { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; display: grid; place-items: center; color: var(--dim); border-radius: 10px; }
.field__eye:hover { color: var(--text); background: rgba(255,255,255,.06); }
.field__icon svg, .field__eye svg { width: 20px; height: 20px; }
.field__msg { font-size: 13.5px; color: #ff8a93; margin: -4px 4px 2px; }
.field__msg[hidden] { display: none; }

.auth__row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 12px; font-size: 14.5px; margin: 2px 2px 4px; }
.auth__row > * { white-space: nowrap; } /* « Se souvenir de moi » et « Mot de passe oublié ? » ne se coupent plus en deux */
.check { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; color: #e4e4ea; }
.check input { appearance: none; width: 20px; height: 20px; border-radius: 6px; margin: 0; background: rgba(255,255,255,.06); box-shadow: 0 0 0 1px var(--line-2) inset; display: grid; place-items: center; cursor: pointer; transition: background .2s; }
.check input:checked { background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/13px no-repeat; box-shadow: none; }
.auth__link { color: #e4e4ea; font-weight: 500; }
.auth__link:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }

.auth__submit { height: 56px; border-radius: 16px; font-size: 16px; margin-top: 8px; }
.auth__legal { font-size: 13px; color: var(--dim); text-align: center; margin-top: 4px; }
.auth__legal a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.auth__switch { text-align: center; color: var(--muted); font-size: 15px; margin-top: 22px; }
.auth__switch a { color: var(--text); font-weight: 600; }
.auth__switch a:hover { color: var(--red); }
.auth__notice { padding: 12px 16px; border-radius: 14px; font-size: 14.5px; background: var(--red-soft); box-shadow: 0 0 0 1px rgba(255,45,61,.35) inset; }
.auth__notice[hidden] { display: none; }
.auth__notice a { color: var(--text); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Liste d'attente (avant le lancement) ---------- */
.field--at input { padding-left: 42px; }
.field__at { position: absolute; left: 19px; top: 50%; transform: translateY(-50%); color: var(--dim); font: 600 16px var(--font); pointer-events: none; }
.field select { width: 100%; height: 56px; padding: 0 52px 0 18px; border-radius: 16px; border: 0; outline: 0; -webkit-appearance: none; appearance: none; background: rgba(255,255,255,.045); box-shadow: 0 0 0 1px var(--line) inset; color: var(--text); font: 500 16px var(--font); cursor: pointer; transition: box-shadow .25s, background .25s; }
.field select:focus { background: rgba(255,255,255,.06); box-shadow: 0 0 0 1px rgba(255,45,61,.6) inset, 0 0 0 4px rgba(255,45,61,.12); }
.field select:has(option[value=""]:checked) { color: var(--dim); } /* « Votre niche (facultatif) » en gris tant que rien n'est choisi */
.field select option { background: #15151b; color: var(--text); }
.field--select .field__icon { pointer-events: none; }
.choice { border: 0; margin: 0; padding: 0; min-width: 0; }
.choice__label { padding: 0; margin: 2px 4px 8px; font-size: 13.5px; color: var(--muted); }
.choice__label span { color: var(--dim); }
.choice__opts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.choice__opt { position: relative; }
.choice__opt input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.choice__opt span { display: grid; place-items: center; height: 46px; padding: 0 6px; border-radius: 14px; background: rgba(255,255,255,.045); box-shadow: 0 0 0 1px var(--line) inset; font-size: 14px; font-weight: 500; color: #e4e4ea; white-space: nowrap; transition: background .2s, box-shadow .2s, color .2s; }
.choice__opt:hover span { background: rgba(255,255,255,.075); }
.choice__opt input:checked + span { background: rgba(255,45,61,.17); box-shadow: 0 0 0 1px rgba(255,45,61,.65) inset; color: #fff; } /* même voile rouge que les onglets choisis de la landing */
.choice__opt input:focus-visible + span { box-shadow: 0 0 0 1px rgba(255,45,61,.65) inset, 0 0 0 4px rgba(255,45,61,.18); }
@media (max-width: 420px) { .choice__opts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; } /* champ piège pour les robots */
.auth__submit[aria-busy="true"] { opacity: .75; cursor: progress; }
.auth__form[hidden], .auth__done[hidden] { display: none; }
.auth__done { margin-top: 32px; padding: 30px 24px 24px; border-radius: 22px; background: rgba(255,255,255,.035); box-shadow: 0 0 0 1px var(--line) inset; text-align: center; outline: 0; animation: fadeup .6s var(--ease) both; }
.auth__done-icon { width: 54px; height: 54px; margin: 0 auto 18px; display: grid; place-items: center; border-radius: 50%; background: var(--red); box-shadow: 0 12px 32px -10px rgba(255,45,61,.7); }
.auth__done-icon svg { width: 26px; height: 26px; }
.auth__done-title { font-size: 28px; letter-spacing: -0.03em; line-height: 1.1; overflow-wrap: anywhere; }
.auth__done-text { max-width: 340px; margin: 12px auto 24px; color: var(--muted); }
.auth__done-text b { color: var(--text); font-weight: 600; overflow-wrap: anywhere; }
.auth__foot { position: relative; z-index: 1; font-size: 13px; color: var(--dim); }

/* ---------- Colonne visuelle : mur de Reels ---------- */
/* la colonne visuelle garde la hauteur de l'écran (collée pendant que le formulaire défile) : carte radar et citation toujours visibles sans défiler */
.auth__visual { position: sticky; top: 0; align-self: start; height: 100vh; height: 100dvh; overflow: hidden; background: #0b0b10; border-left: 1px solid var(--line); }
.auth__visual::before { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: radial-gradient(70% 50% at 50% 50%, transparent, rgba(7,7,10,.75)), linear-gradient(180deg, var(--bg) 0%, transparent 18%, transparent 82%, var(--bg) 100%); }
.auth__visual::after { content: ""; position: absolute; left: 50%; top: 50%; width: 700px; height: 700px; transform: translate(-50%, -50%); border-radius: 50%; z-index: 1; background: radial-gradient(circle, rgba(255,45,61,.28), transparent 60%); pointer-events: none; animation: breathe 8s ease-in-out infinite; }
.wall { position: absolute; inset: -10% -6%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; transform: rotate(-6deg); }
.wall__col { overflow: hidden; }
.wall__track { display: flex; flex-direction: column; gap: 16px; animation: wall-up 38s linear infinite; }
.wall__col:nth-child(2) .wall__track { animation-name: wall-down; animation-duration: 44s; }
.wall__col:nth-child(3) .wall__track { animation-duration: 34s; }
@keyframes wall-up { to { transform: translateY(-50%); } }
@keyframes wall-down { from { transform: translateY(-50%); } to { transform: translateY(0); } }
.wall .reel { position: relative; width: 100%; left: auto; right: auto; top: auto; transform: none; flex: none; }
.wall .reel__hook { font-size: 14px; }

.auth__float { position: absolute; z-index: 3; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(420px, 84%); }
.auth__float .diag { position: relative; left: auto; top: auto; transform: none; width: 100%; }
.auth__float .diag__body { padding: 18px 20px 20px; }
.auth__float .diag__chart { height: 90px; }
.auth__quote { position: relative; display: flex; align-items: center; gap: 12px; padding: 12px 16px 12px 12px; border-radius: 18px; background: rgba(12,12,17,.7); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 0 0 1px var(--line-2) inset; font-size: 14px; color: #dcdce3; max-width: 460px; margin: 16px auto 0; } /* juste sous la carte radar */
.auth__quote img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: none; box-shadow: 0 0 0 2px var(--red); }
.auth__quote b { display: block; color: var(--text); font-size: 13px; margin-top: 2px; }

/* ---------- Entrée ---------- */
.auth__main > * { animation: fadeup .8s var(--ease) both; }
.auth__main > *:nth-child(2) { animation-delay: .06s; }
.auth__main > *:nth-child(3) { animation-delay: .12s; }
.auth__main > *:nth-child(4) { animation-delay: .18s; }
.auth__main > *:nth-child(5) { animation-delay: .24s; }
.auth__main > *:nth-child(6) { animation-delay: .3s; }
.auth__float { animation: float-in 1.2s var(--ease) .3s both; }
@keyframes float-in { from { opacity: 0; transform: translate(-50%, -40%) scale(.96); } }

@media (max-width: 960px) {
  .auth { grid-template-columns: 1fr; }
  .auth__visual { display: none; }
  .auth__main { margin: 0 auto; }
  .auth__side { padding: 24px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .wall__track { animation: none; }
}
.auth__title .serif { font-size: 1.12em; }
