/* ==========================================================================
   PROTOCOLE ZÉRO SALLE — Authentification
   ========================================================================== */

.auth-screen {
  justify-content: center;
  padding: var(--space-6) 0 var(--space-8);
}

.auth-brand {
  text-align: center;
  margin-bottom: var(--space-7);
}

.auth-mark {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  /* Même identité que l'icône de l'app : graphite sobre, haltère gris métal */
  background: linear-gradient(180deg, #2c2c34 0%, #0c0c12 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-4);
  box-shadow: 0 10px 24px rgba(12, 12, 18, 0.28);
}

.auth-mark svg {
  width: 30px;
  height: 30px;
  stroke: #d4d4da;
}

.auth-brand h1 {
  font-size: 26px;
  margin-bottom: 6px;
}

.auth-brand p {
  color: var(--color-text-secondary);
  font-size: 14.5px;
}

.auth-card {
  padding: var(--space-6) var(--space-5);
}

.auth-form {
  display: none;
}

.auth-form.is-active {
  display: block;
  animation: fade-up 0.35s var(--ease-out);
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.auth-intro {
  font-size: 13.5px;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-5);
  text-align: center;
}

.auth-error {
  display: none;
  align-items: flex-start;
  gap: var(--space-3);
  background: var(--color-red-tint);
  color: var(--color-red-dark);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  font-size: 13.5px;
  font-weight: 500;
  margin-bottom: var(--space-4);
}

.auth-error.is-visible {
  display: flex;
}

.auth-submit {
  margin-top: var(--space-2);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.auth-forgot-link {
  display: block;
  margin: var(--space-4) auto 0;
  text-align: center;
  font-weight: 600;
}

.auth-footer-note {
  text-align: center;
  margin-top: var(--space-5);
  font-size: 13px;
  color: var(--color-text-tertiary);
}

.reset-success-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-green-tint);
  color: #1a7f3c;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-4);
}

.reset-success-icon svg { width: 26px; height: 26px; }

#resetConfirm .btn { width: 100%; }

/* --------------------------------------------------------------------------
   Choix de la langue (premier écran)
   -------------------------------------------------------------------------- */
.lang-gate {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background: radial-gradient(120% 80% at 50% 0%, #25252e 0%, #0c0c12 65%);
  color: #fff;
  opacity: 0;
  transition: opacity 0.3s var(--ease-smooth);
}
.lang-gate.is-open { opacity: 1; }
.lang-gate-inner { width: 100%; max-width: 380px; text-align: center; }
.lang-gate .auth-mark { margin-bottom: 22px; }
.lang-title { font-size: 26px; font-weight: 800; margin: 0 0 24px; color: #fff; }
.lang-title span { display: block; margin-top: 6px; font-size: 14px; font-weight: 600; color: rgba(255, 255, 255, 0.55); }
.lang-options { display: flex; flex-direction: column; gap: 10px; }
.lang-option {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 64px;
  padding: 0 20px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  transition: background 0.2s, transform 0.15s var(--ease-spring);
}
.lang-option:hover { background: rgba(255, 255, 255, 0.13); }
.lang-option:active { transform: scale(0.97); }
.lang-flag { font-size: 28px; line-height: 1; }
.lang-confirm-flag { font-size: 56px; line-height: 1; margin-bottom: 12px; }
.lang-confirm-text { color: rgba(255, 255, 255, 0.7); font-size: 15px; line-height: 1.55; margin: -8px 0 24px; }
.lang-gate .btn-primary { background: #fff; color: #0c0c12; }
.lang-back { width: 100%; margin-top: 10px; color: rgba(255, 255, 255, 0.7); text-align: center; }

.lang-switch {
  position: absolute;
  top: max(16px, env(safe-area-inset-top, 0px));
  right: 16px;
  z-index: 2;
  height: 36px;
  padding: 0 12px;
  border-radius: 99px;
  background: var(--color-card);
  box-shadow: var(--shadow-card);
  font-size: 13px;
  font-weight: 800;
}
.auth-screen { position: relative; }
