/* ════════════════════════════════════════════════════════════
   AIGUILLEUR (index.html) — carte centrée + spinner.
   Repris des blocs pg-auth de CAD2-Analytics (wwwroot/styles.css),
   sans l'image de fond : fond gris de l'app (--gray-100), textes
   sombres. Utilise les design tokens de theme.css (chargé avant).
   ════════════════════════════════════════════════════════════ */

body.pg-auth {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  background: var(--gray-100);
  color: var(--gray-700);
}

/* Wordmark : icône + texte marine (le logo est un invariant de marque) */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: 'Archivo', 'Inter', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--brand-navy);
  letter-spacing: -.02em;
  margin-bottom: 24px;
}
.logo .logo-mark { height: 1.6em; width: auto; border-radius: var(--radius); }

/* Accroche sous le wordmark */
.brand-tagline {
  font-size: .9rem;
  color: var(--gray-500);
  text-align: center;
  margin: -16px 0 24px;
}

/* Carte (visible seulement si HubUrl absente côté serveur) */
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 4px 24px var(--shadow-md);
  width: 100%;
  max-width: 440px;
  padding: 36px 40px;
}
.card h1 {
  font-family: 'Archivo', 'Inter', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gray-900);
  margin: 0 0 6px;
}
.card .subtitle { font-size: .875rem; color: var(--gray-600); margin: 0 0 16px; }
.card .subtitle a { color: var(--brand-teal); }
.card .hint { font-size: .78rem; color: var(--gray-500); margin: 0; }

/* Indicateur de chargement (RÈGLE D'OR : toute attente réseau > 300 ms montre un
   indicateur circulaire). Anti-flash : le bloc porteur n'apparaît qu'après 300 ms. */
.spinneur-zone { margin-top: 4px; }
.spinneur {
  width: 26px; height: 26px;
  border: 3px solid var(--accent-bg);   /* piste pâle */
  border-top-color: var(--accent);      /* segment accent en rotation */
  border-radius: 50%;
  margin: 0 auto;
  animation: spinneur-rotation .8s linear infinite;
}
@keyframes spinneur-rotation { to { transform: rotate(360deg); } }
.apparition-differee { opacity: 0; animation: apparition-differee .15s ease-out .3s forwards; }
@keyframes apparition-differee { to { opacity: 1; } }

/* Pied de page */
.auth-footer {
  margin-top: 28px;
  text-align: center;
  font-size: .78rem;
  color: var(--gray-500);
  line-height: 1.8;
}
.auth-footer a       { color: var(--gray-600); text-decoration: none; }
.auth-footer a:hover { text-decoration: underline; }
.auth-footer .sep    { margin: 0 7px; color: var(--gray-400); }
