/* Page de connexion/inscription - centree, fond degrade discret. */

.auth-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 15% 20%, rgba(99, 102, 241, 0.10) 0%, transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(16, 185, 129, 0.10) 0%, transparent 45%),
    var(--color-bg);
  padding: 24px;
}

.auth-wrap {
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.auth-brand {
  font-size: 17px;
}

.auth-card {
  width: 100%;
  padding: 32px;
}

.auth-card h1 {
  text-align: center;
}

.auth-card .page-subtitle {
  text-align: center;
  margin-bottom: 24px;
}

.switch-mode-text {
  text-align: center;
  font-size: 14px;
  color: var(--color-text-secondary);
  margin: 20px 0 0;
}

.switch-mode-text a {
  color: var(--color-primary-dark);
  font-weight: 600;
  text-decoration: none;
}

.switch-mode-text a:hover {
  text-decoration: underline;
}

/* Acceptation des conditions, visible uniquement en mode inscription (voir login.js). */
.signup-terms {
  display: block;
  margin: 4px 0 16px;
  line-height: 1.5;
}

.signup-terms a {
  color: var(--color-primary-dark);
}

/* --- Connexion rapide (Google / Apple) ------------------------------------ */

.social-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
}

.social-btn svg {
  flex-shrink: 0;
}

/* Separateur "ou" : un trait de chaque cote du mot, obtenu par deux pseudo-elements extensibles
   plutot qu'une image ou un fond degrade (s'adapte tout seul a la largeur et a la traduction). */
.social-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  color: var(--color-text-muted);
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.social-divider::before,
.social-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--color-border);
}

/* --- Verification de l'adresse email -------------------------------------- */

.verify-target {
  text-align: center;
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin: 0 0 22px;
}

.verify-target strong {
  display: block;
  color: var(--color-text);
  overflow-wrap: anywhere;
}

/* Le code se lit chiffre par chiffre : gros, monospace et espace, il se verifie d'un coup d'oeil
   avant validation - c'est la saisie la plus souvent ratee de tout le parcours. */
.code-input {
  font-family: ui-monospace, 'SF Mono', 'Cascadia Mono', Menlo, monospace;
  font-size: 26px;
  letter-spacing: 0.42em;
  text-align: center;
  padding-left: 0.42em; /* compense le letter-spacing ajoute apres le dernier chiffre */
}

.auth-secondary-link {
  margin-top: 12px;
  font-size: 13px;
}

.auth-secondary-link a {
  color: var(--color-text-muted);
  font-weight: 500;
}
