/* ===== ATLAS REFUND — auth.css =====
   Styles spécifiques à la page compte (connexion "façon Mullvad").
   S'appuie sur le design system de style.css — ne le modifie pas. */

.auth-section {
  position: relative;
  padding: 170px 0 110px;
  min-height: 70vh;
}
.auth-section::before {
  content: "";
  position: absolute; top: -120px; left: 50%; transform: translateX(-50%);
  width: 760px; height: 480px;
  pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(255, 30, 30, 0.12), transparent 65%);
}

.auth-wrap { position: relative; max-width: 620px; }

.auth-title {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1.04; letter-spacing: -0.03em;
  margin-bottom: 22px;
}
.auth-sub { font-size: 17px; color: var(--soft); max-width: 480px; margin-bottom: 44px; }

/* ===== CARTE ===== */
.auth-card {
  background: var(--card);
  border: 1px solid rgba(255, 80, 80, 0.14);
  border-radius: 18px;
  padding: 38px;
}

/* ===== ONGLETS ===== */
.auth-tabs {
  display: flex; gap: 6px;
  padding: 5px;
  margin-bottom: 34px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--line);
  border-radius: 999px;
}
.auth-tab {
  flex: 1;
  padding: 13px 10px;
  border: none; border-radius: 999px;
  background: transparent;
  color: var(--soft);
  font-family: var(--font-body); font-size: 14px; font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.auth-tab:hover { color: var(--ink); }
.auth-tab.active {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 22px var(--glow);
}

/* ===== PANNEAUX ===== */
.auth-note { margin-bottom: 28px; max-width: none; }

.auth-btn-full { width: 100%; }
.auth-btn-full:disabled,
.auth-btn-full.is-loading {
  opacity: 0.65;
  cursor: wait;
  transform: none;
  box-shadow: none;
}

.auth-error {
  margin: 0 0 18px;
  padding: 13px 18px;
  border-radius: 12px;
  border: 1px solid rgba(255, 30, 30, 0.5);
  background: rgba(255, 30, 30, 0.1);
  color: #FF7A7A;
  font-size: 14px;
}

.auth-hint {
  margin-top: 22px;
  font-family: var(--font-mono); font-size: 12px;
  color: var(--soft);
  border-left: 2px solid var(--accent); padding-left: 14px;
}

/* ===== CHAMP NUMÉRO (connexion) ===== */
.auth-field { margin-bottom: 20px; }
.auth-field input {
  width: 100%; padding: 16px 22px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--line); border-radius: 999px;
  font-family: var(--font-mono); font-size: 17px; font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.auth-field input::placeholder { color: rgba(168, 154, 162, 0.4); }
.auth-field input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 30, 30, 0.15);
}

/* ===== RÉVÉLATION DU NUMÉRO ===== */
.reveal-label {
  font-family: var(--font-mono); font-size: 12px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--soft); text-align: center;
  margin-bottom: 14px;
}
.reveal-number {
  font-family: var(--font-mono); font-weight: 600;
  font-size: clamp(26px, 6.4vw, 40px);
  letter-spacing: 0.06em;
  color: #fff; text-align: center;
  padding: 26px 18px;
  background: #070105;
  border: 1px solid rgba(255, 30, 30, 0.35);
  border-radius: 14px;
  box-shadow: 0 0 46px rgba(255, 30, 30, 0.14);
  margin-bottom: 20px;
  word-spacing: 0.1em;
}

/* animation subtile à la révélation */
.reveal-in { animation: revealIn 0.55s cubic-bezier(0.22, 1, 0.36, 1); }
@keyframes revealIn {
  from { opacity: 0; transform: translateY(14px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.reveal-actions { display: flex; justify-content: center; margin-bottom: 26px; }
.reveal-actions .btn-line { padding: 12px 30px; font-size: 13px; }

.reveal-warning {
  font-size: 14px; font-weight: 600;
  color: #FF7A7A;
  text-align: center;
  padding: 14px 18px;
  border: 1px solid rgba(255, 30, 30, 0.5);
  border-radius: 12px;
  background: rgba(255, 30, 30, 0.08);
  margin-bottom: 26px;
}

.reveal-check {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 26px;
  cursor: pointer;
  font-size: 15px; font-weight: 500;
}
.reveal-check input {
  width: 20px; height: 20px; flex-shrink: 0;
  accent-color: var(--accent);
  cursor: pointer;
}

/* bouton désactivé tant que la checkbox n'est pas cochée */
.auth-btn-disabled {
  opacity: 0.45;
  pointer-events: none;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 700px) {
  .auth-section { padding: 140px 0 80px; }
  .auth-card { padding: 28px 22px; }
  .auth-tabs { flex-direction: column; border-radius: 16px; }
  .auth-tab { border-radius: 12px; min-height: 44px; }
  .auth-sub { margin-bottom: 34px; }
}
@media (max-width: 480px) {
  .auth-section { padding: 122px 0 64px; }
  .auth-card { padding: 24px 18px; }
  .reveal-number { padding: 20px 10px; letter-spacing: 0.03em; }
  .reveal-check { font-size: 14px; }
}

/* ===== MOTION RÉDUIT ===== */
@media (prefers-reduced-motion: reduce) {
  .reveal-in { animation: none; }
}
