/* ============================================================
   FNEG — Écrans joueur (inscription, connexion, confirmations)
   Bâti sur le design system de la landing (landing/styles.css) :
   réutilise ses tokens (:root), ses polices Saira et ses boutons .btn.
   ============================================================ */

.auth-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(62% 48% at 50% -10%, rgba(206, 17, 38, .18), transparent 60%),
    radial-gradient(48% 40% at 102% 104%, rgba(0, 148, 96, .10), transparent 60%),
    var(--bg);
}

/* ---- Barre supérieure (logo + retour) ---- */
.auth-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px var(--pad);
}

/* ---- Zone centrale ---- */
.auth-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px var(--pad) 48px;
}
.auth-wrap { width: 100%; max-width: 460px; }
.auth-wrap.wide { max-width: 560px; }

/* ---- Carte ---- */
.auth-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--glow-soft);
  padding: clamp(24px, 4vw, 40px);
  overflow: hidden;
}
.auth-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--red) 0 33.33%, var(--yellow) 33.33% 66.66%, var(--green) 66.66%);
}

/* ---- En-tête de carte ---- */
.auth-head { margin-bottom: 24px; }
.auth-head .eyebrow { margin-bottom: 14px; }
.auth-head h1 {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1;
  letter-spacing: -.01em;
  font-size: clamp(26px, 4.4vw, 38px);
}
.auth-head .lead { margin-top: 10px; font-size: 15px; }

/* ---- Formulaire ---- */
.auth-form .field { margin-bottom: 16px; }
.auth-form .row { display: flex; gap: 14px; }
.auth-form .row > .field { flex: 1; min-width: 0; }
.auth-form label {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 9px;
}
.auth-form label .opt { opacity: .6; }
.auth-form input,
.auth-form select {
  width: 100%;
  height: 52px;
  padding: 0 15px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: var(--bg-2);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  transition: border-color .2s, box-shadow .2s;
  -webkit-appearance: none;
  appearance: none;
}
.auth-form select {
  padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2371757f' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
}
.auth-form input::placeholder { color: var(--ink-3); }
.auth-form input:focus,
.auth-form select:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(206, 17, 38, .18);
}
.auth-form input.code {
  text-align: center;
  letter-spacing: .55em;
  text-indent: .55em;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
}
.auth-form .hint { color: var(--ink-3); font-size: 12.5px; margin-top: 7px; }
.auth-form .err { color: var(--red-2); font-size: 13px; margin-top: 7px; }
.auth-form .btn { margin-top: 6px; }

/* Case à cocher "se souvenir" */
.auth-check {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-2);
  font-size: 14px;
}
.auth-check input { width: auto; height: auto; accent-color: var(--red); }

/* ---- Boutons pleine largeur ---- */
.btn--block { width: 100%; }

/* ---- Alertes ---- */
.auth-alert {
  padding: 12px 15px;
  border-radius: 12px;
  font-size: 14px;
  margin-bottom: 20px;
  border: 1px solid var(--line);
}
.auth-alert--success { background: rgba(0, 148, 96, .12); border-color: rgba(15, 185, 120, .35); color: var(--green-2); }
.auth-alert--error { background: rgba(206, 17, 38, .12); border-color: rgba(232, 50, 74, .38); color: #ff8a98; }
.auth-alert--info { background: var(--surface-2); color: var(--ink-2); }

/* ---- Checklist d'onboarding ---- */
.auth-steps { list-style: none; display: grid; gap: 12px; margin: 4px 0 22px; }
.auth-step {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-2);
}
.auth-step .num {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  background: var(--surface-3);
  color: var(--ink-3);
  border: 1px solid var(--line-strong);
}
.auth-step.is-done .num { background: var(--green); color: #fff; border-color: transparent; }
.auth-step .st-body { flex: 1; min-width: 0; }
.auth-step .st-title {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 15px;
  letter-spacing: .02em;
}
.auth-step .st-sub { color: var(--ink-3); font-size: 13px; word-break: break-word; }

/* ---- Liens & utilitaires ---- */
.auth-links { text-align: center; margin-top: 20px; color: var(--ink-3); font-size: 14px; }
.auth-links a { color: var(--red-2); font-weight: 700; }
.auth-links a:hover { color: #fff; }
.auth-note { color: var(--ink-3); font-size: 13px; margin-bottom: 18px; }
.auth-stack > * + * { margin-top: 12px; }
.auth-linkform { display: inline; }
.auth-linkbtn {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: var(--red-2);
  font-weight: 700;
  cursor: pointer;
}
.auth-linkbtn:hover { color: #fff; }

/* ---- Pied de page ---- */
.auth-foot {
  text-align: center;
  color: var(--ink-3);
  font-size: 12.5px;
  padding: 20px var(--pad) 30px;
}

/* ---- Responsive ---- */
@media (max-width: 480px) {
  .auth-form .row { flex-direction: column; gap: 0; }
  .auth-top .brand .full { display: none; }
}
