/* ===================================================================
   REZO FORMATION PRO — Connexion & création de compte
   =================================================================== */

.auth-section {
  padding: var(--space-10) 0 var(--space-12);
  min-height: 60vh;
  display: flex;
  align-items: center;
}

.auth-card {
  max-width: 440px;
  margin: 0 auto;
  padding: var(--space-7);
  width: 100%;
}

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

.auth-head h1 {
  font-size: var(--fs-xl);
  margin-bottom: var(--space-2);
}

.auth-head p {
  font-size: var(--fs-sm);
}

/* Onglets Se connecter / Créer un compte */
.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--color-night-soft);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-pill);
  padding: 4px;
  margin-bottom: var(--space-7);
}

.auth-tab {
  background: transparent;
  border: none;
  padding: 0.65rem 1rem;
  border-radius: var(--radius-pill);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--color-text-faint);
  transition: background var(--speed-fast) var(--ease), color var(--speed-fast) var(--ease);
}

.auth-tab.is-active {
  background: var(--color-blue);
  color: #fff;
}

.auth-panel { display: none; }
.auth-panel.is-active { display: block; }

.auth-form-error {
  display: none;
  background: rgba(242, 84, 91, 0.12);
  border: 1px solid rgba(242, 84, 91, 0.3);
  color: #FF9DA1;
  font-size: var(--fs-sm);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-5);
}

.auth-form-error.is-visible { display: block; }

.auth-switch {
  text-align: center;
  margin-top: var(--space-5);
  font-size: var(--fs-sm);
  color: var(--color-text-faint);
}

.auth-switch button {
  background: none;
  border: none;
  color: var(--color-blue-soft);
  font-weight: 600;
  text-decoration: underline;
  padding: 0;
  font-size: inherit;
}

.password-hint {
  font-size: var(--fs-xs);
  color: var(--color-text-faint);
  margin-top: var(--space-2);
}

/* Redirection post-connexion : message court avant bascule vers "Mes formations" */
.auth-redirect-note {
  display: none;
  text-align: center;
  padding: var(--space-6);
}

.auth-redirect-note.is-visible { display: block; }
