/* =====================================================================
   CHEST 2.0 — connexion et inscription (2026-11-03), d'après CHEST-DESIGN-2.0/html-exact/Connexion.html
   et T-Inscription.html. Habillage seul (login.html, signup.html, connexion intégrée d'app.html) :
   barre du haut, étiquettes en mono au-dessus des champs, étapes de l'inscription, liens orange.
   La lumière animée (js/hero-bg.js) ne change pas.
   ===================================================================== */
.auth-top{ position:fixed; top:0; left:0; right:0; z-index:5; display:flex; align-items:center; justify-content:space-between;
  max-width:1180px; margin:0 auto; padding:22px 36px; box-sizing:border-box; pointer-events:none; }
.auth-top > *{ pointer-events:auto; }
.auth-top__brand{ display:flex; align-items:center; gap:10px; color:var(--ink, #f6f6f7); text-decoration:none; font-size:16px; font-weight:700; letter-spacing:-.02em; }
.auth-top__brand img{ width:26px; height:26px; object-fit:contain; filter:drop-shadow(0 0 7px rgba(var(--a1-rgb, 252, 18, 131),.55)); }
.auth-top__btn{ height:36px; display:flex; align-items:center; padding:0 16px; border-radius:12px; color:var(--ink, #f6f6f7); text-decoration:none; font-size:12.5px; font-weight:600;
  border:1px solid rgba(var(--fg-rgb, 255, 255, 255),.14); background:rgba(var(--dk-rgb, 10, 10, 12),.5); -webkit-backdrop-filter:blur(14px); backdrop-filter:blur(14px); transition:border-color .2s; }
.auth-top__btn:hover{ border-color:rgba(var(--a2-rgb, 249, 164, 94),.6); color:#fff; }

/* étiquettes au-dessus des champs */
.auth-card .auth-field{ margin-top:24px; }
.auth-card .auth-field::before{ position:absolute; left:2px; top:-19px; font-family:'Fragment Mono', ui-monospace, monospace; font-size:9.5px; letter-spacing:.16em; text-transform:uppercase; color:var(--ink-3, #7a7a82); }
.auth-card .auth-field:has(#email)::before{ content:'E-mail'; }
.auth-card .auth-field:has(#password)::before{ content:'Mot de passe'; }
.auth-card .auth-field:has(#firstName)::before{ content:'Prénom'; }
.auth-card .auth-field:has(#lastName)::before{ content:'Nom'; }
.auth-card .auth-field:has(#refCode)::before{ content:'Code de référent'; }
.auth-card .auth-field input{ height:46px; box-sizing:border-box; padding-top:0; padding-bottom:0; border-radius:12px; }
.auth-card .auth-field input:focus{ border-color:rgba(var(--a1-rgb, 252, 18, 131),.6); box-shadow:0 0 0 3px rgba(var(--a1-rgb, 252, 18, 131),.15); }
.auth-card{ max-width:420px; border-radius:20px; }
.auth-card h1{ font-size:26px; letter-spacing:-.03em; }
.auth-card__lead{ margin-bottom:22px; }
.auth-footnote a, .auth-forgot, .auth-consent a{ color:var(--a2, #f9a45e) !important; }
.auth-submit{ height:48px; border-radius:999px; }

/* inscription : trois étapes au-dessus de la carte */
.auth-stage:has(.auth-steps){ flex-direction:column; align-items:center; }
.auth-steps{ display:flex; align-items:center; gap:6px; margin:0 auto 54px; padding:5px 10px 5px 6px; width:max-content; border-radius:999px;
  border:1px solid rgba(var(--fg-rgb, 255, 255, 255),.1); background:rgba(var(--dk-rgb, 10, 10, 12),.55); -webkit-backdrop-filter:blur(14px); backdrop-filter:blur(14px); font-size:11.5px; color:var(--ink-3, #7a7a82); }
.auth-steps span{ display:flex; align-items:center; gap:6px; padding:0 6px; }
.auth-steps i{ width:18px; height:18px; border-radius:999px; display:grid; place-items:center; font-style:normal; font-size:10px; font-weight:700; border:1px solid rgba(var(--fg-rgb, 255, 255, 255),.18); }
.auth-steps .is-on{ color:var(--ink, #f6f6f7); }
.auth-steps .is-on i{ border:0; color:#fff; background:linear-gradient(135deg,var(--a1, #fc1283),var(--a2, #f9a45e)); }
@media (max-width:640px){
  .auth-top{ padding:16px; }
  .auth-center:has(> .auth-steps){ padding-top:52px; }
  .auth-steps, .auth-center > .auth-steps{
    width:auto; max-width:calc(100vw - 28px); flex-wrap:wrap; justify-content:center;
    gap:4px 6px; padding:6px 10px; border-radius:16px; font-size:11px; margin:0 auto 44px;
  }
  .auth-steps span{ padding:0 4px; gap:5px; }
}
/* connexion intégrée d'app.html (ids authEmail / authPassword) et étapes de l'inscription dans .auth-center */
.auth-card .auth-field:has(#authEmail)::before{ content:'E-mail'; }
.auth-card .auth-field:has(#authPassword)::before{ content:'Mot de passe'; }
.auth-center:has(> .auth-steps){ flex-direction:column; }
.auth-center > .auth-steps{ margin:0 auto 54px; flex:none; }
.auth-card form .auth-field + .auth-field, .auth-card form .auth-field{ margin-top:26px; }
/* Flèche de retour vers la landing (2026-11-03) */
.auth-back{ position:fixed; top:22px; left:24px; z-index:6; width:40px; height:40px; border-radius:12px; display:grid; place-items:center; color:var(--ink-1, #c9c9ce);
  border:1px solid rgba(var(--fg-rgb, 255, 255, 255),.14); background:rgba(var(--dk-rgb, 10, 10, 12),.5); -webkit-backdrop-filter:blur(14px); backdrop-filter:blur(14px);
  transition:color .2s cubic-bezier(.16,1,.3,1), border-color .2s cubic-bezier(.16,1,.3,1), transform .16s cubic-bezier(.16,1,.3,1); }
.auth-back svg{ width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.auth-back:hover{ color:#fff; border-color:rgba(var(--a2-rgb, 249, 164, 94),.6); }
.auth-back:active{ transform:scale(.96); }
.auth-back:focus-visible{ outline:2px solid var(--a2, #f9a45e); outline-offset:2px; }
@media (max-width:640px){ .auth-back{ top:14px; left:14px; } }

/* ---------- Refonte liquid glass (2026-11-22) : seulement les éléments du formulaire, le fond ne change pas ---------- */
.auth-card{ border-radius:28px; border:1px solid rgba(255,255,255,.16);
  background:linear-gradient(150deg,rgba(255,255,255,.1),rgba(255,255,255,.035) 40%,rgba(255,255,255,.025) 65%,rgba(255,255,255,.06)),rgba(14,10,14,.55);
  -webkit-backdrop-filter:blur(40px) saturate(1.5); backdrop-filter:blur(40px) saturate(1.5);
  box-shadow:0 40px 90px -30px rgba(0,0,0,.85),inset 1.5px 1.5px 0 rgba(255,255,255,.2),inset -1px -1px 0 rgba(255,255,255,.05); }
.auth-card .auth-field::before{ font-family:'Instrument Sans',system-ui,sans-serif !important; font-size:12px !important; font-weight:500; letter-spacing:0 !important; text-transform:none !important; top:-21px; }
.auth-card .auth-field input{ border-radius:14px; background:rgba(255,255,255,.05); border-color:rgba(255,255,255,.12); transition:border-color .2s cubic-bezier(.16,1,.3,1),box-shadow .2s cubic-bezier(.16,1,.3,1); }
.auth-card .auth-field input:hover{ border-color:rgba(255,255,255,.2); }
.auth-submit{ box-shadow:0 14px 30px -12px rgba(var(--a1-rgb,252,18,131),.75),inset 0 1px 0 rgba(255,255,255,.4); }
.auth-card [hidden], .auth-submit[hidden], .auth-btn-ghost[hidden]{ display:none !important; }
