/* =====================================================================
   WEB 213 — Pages d'authentification (inscription, connexion, vérif.)
   ===================================================================== */

.auth-wrap {
  min-height: calc(100vh - 78px);
  display: grid;
  place-items: center;
  padding: 28px 20px 56px;
}

.auth-grid {
  width: 100%;
  max-width: 1060px;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 34px;
  align-items: start;
}

/* L'argumentaire reste visible pendant le défilement du formulaire. */
@media (min-width: 901px) {
  .auth-aside { position: sticky; top: 96px; }
}

/* -------------------------------------------------- Colonne argumentaire */
.auth-aside { padding-inline: 6px; }

.auth-aside .logo-mark {
  height: 104px;
  width: auto;
  color: var(--primary);
  margin-bottom: 22px;
  filter: drop-shadow(0 12px 28px rgba(30, 143, 213, .30));
}

.auth-aside h1 {
  margin-bottom: 12px;
  font-size: clamp(1.9rem, 1.3rem + 2vw, 2.7rem);
}
.auth-aside h1 .grad {
  background: linear-gradient(110deg, var(--brand-500), var(--accent-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.auth-aside .lede {
  max-width: 42ch;
  color: var(--text-soft);
  font-size: 1.04rem;
}

.benefits {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.benefits li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: .95rem;
  color: var(--text-soft);
}
.benefits li svg {
  flex: 0 0 auto;
  width: 22px; height: 22px;
  padding: 3px;
  color: var(--primary);
  background: rgba(30, 143, 213, .13);
  border-radius: var(--r-full);
}

/* ----------------------------------------------------------- Carte verre */
.auth-card {
  padding: 34px 32px;
  position: relative;
  overflow: hidden;
}
.auth-card::before {
  /* liseré lumineux en haut de la carte */
  content: "";
  position: absolute;
  inset-inline: 18%;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--brand-300), transparent);
}

.auth-card header { margin-bottom: 22px; }
.auth-card h2 { margin-bottom: 6px; font-size: 1.55rem; }
.auth-card .sub { margin: 0; color: var(--text-muted); font-size: .93rem; }

.auth-foot {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: .92rem;
  color: var(--text-muted);
}
.auth-foot a { font-weight: 700; }

/* --------------------------------------------------- Saisie du code OTP */
.otp {
  display: flex;
  gap: 10px;
  justify-content: center;
  direction: ltr;
}
.otp input {
  width: 52px;
  height: 62px;
  padding: 0;
  font-family: var(--font-num);
  font-size: 1.6rem;
  font-weight: 700;
  text-align: center;
  color: var(--text);
  background: var(--field-bg);
  border: 1px solid var(--field-border);
  border-radius: var(--r-md);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.otp input:focus {
  outline: none;
  border-color: var(--field-focus);
  box-shadow: 0 0 0 4px var(--ring);
}
.otp input:not(:placeholder-shown) { border-color: var(--brand-300); }

/* ------------------------------------------------------------ Mobile */
@media (max-width: 900px) {
  .auth-grid { grid-template-columns: 1fr; gap: 24px; max-width: 520px; }
  .auth-aside { text-align: center; }
  .auth-aside .lede { margin-inline: auto; }
  .auth-aside .logo-mark { height: 86px; margin-inline: auto; }
  .benefits { text-align: start; max-width: 400px; margin-inline: auto; }
}

@media (max-width: 560px) {
  .auth-wrap { padding: 14px 14px 40px; }
  .auth-card { padding: 26px 20px; border-radius: var(--r-md); }
  .otp input { width: 44px; height: 54px; font-size: 1.35rem; }
  .auth-aside .benefits { display: none; }
}
