/* Pages d'authentification (templates/accounts/_auth_base.html). Fichier séparé depuis le par. 767 : ces pages n'acceptent
   plus aucun style ni script écrit dans la page (accounts/security_net.py, politique stricte).
   Page volontairement HORS de base.html : la coquille applicative suppose un utilisateur déjà identifié et fuiterait de
   l'information avant authentification. Palette et rayons repris des jetons de base.html. */
* { box-sizing: border-box; }
body {
  margin: 0; min-height: 100vh; display: flex; align-items: center; justify-content: center;
  font-family: 'Segoe UI', Arial, sans-serif; background: #f8fafc;
  padding: 24px;
}
.auth-card {
  width: 100%; max-width: 580px; background: #fff; border-radius: 14px;
  box-shadow: 0 10px 40px rgba(15,23,42,.10); border: 1px solid #e2e8f0;
  padding: 4px 36px 40px; position: relative;
}
.auth-logo { display: flex; justify-content: center; margin-bottom: 2px; }
.auth-logo img { height: 250px; width: auto; }
.auth-title { font-size: 24px; font-weight: 800; color: #0f172a; text-align: center; margin: 0 0 5px; }
.auth-subtitle { font-size: 14px; color: #64748b; text-align: center; margin: 0 0 26px; }
.auth-field { margin-bottom: 18px; }
.auth-field label { display: block; font-size: 13px; font-weight: 700; text-transform: uppercase;
  color: #475569; margin-bottom: 7px; letter-spacing: .03em; }
.auth-field input {
  width: 100%; padding: 14px 16px; border: 1px solid #cbd5e1; border-radius: 9px;
  font-size: 15px; font-family: inherit;
}
.auth-field input:focus { outline: none; border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37,99,235,.12); }
.auth-btn {
  width: 100%; padding: 14px; border: none; border-radius: 9px; background: #2563eb; color: #fff;
  font-size: 15px; font-weight: 700; cursor: pointer; margin-top: 6px;
}
.auth-btn:hover { background: #1d4ed8; }
.auth-btn-outline {
  width: 100%; padding: 10px; border: 1px solid #e2e8f0; border-radius: 8px; background: #fff;
  color: #334155; font-size: 13px; font-weight: 700; cursor: pointer; margin-top: 8px; text-align: center;
  text-decoration: none; display: block;
}
.auth-btn-outline:hover { background: #f8fafc; }
.auth-sep { display: flex; align-items: center; gap: 10px; margin: 18px 0 12px; color: #94a3b8; font-size: 11px; }
.auth-sep::before, .auth-sep::after { content: ''; flex: 1; height: 1px; background: #e2e8f0; }
.auth-demo-btn {
  width: 100%; padding: 10px; border: 1px dashed #cbd5e1; border-radius: 8px; background: #f8fafc;
  color: #475569; font-size: 13px; font-weight: 700; cursor: pointer; text-align: center;
  text-decoration: none; display: block;
}
.auth-demo-btn:hover { background: #f1f5f9; }
.auth-msg { padding: 10px 12px; border-radius: 8px; font-size: 13px; margin-bottom: 14px; }
.auth-msg-error { background: #fee2e2; color: #991b1b; }
.auth-msg-success { background: #dcfce7; color: #166534; }
.auth-msg-warning { background: #fef3c7; color: #92400e; }
.auth-msg-info { background: #eff6ff; color: #1d4ed8; }
.auth-back { text-align: center; margin-top: 14px; }
.auth-back a { font-size: 12px; color: #2563eb; text-decoration: none; }
.auth-back a:hover { text-decoration: underline; }
.auth-strength { height: 5px; background: #e2e8f0; border-radius: 3px; overflow: hidden; margin-top: 6px; }
.auth-strength-bar { height: 100%; width: 0%; background: #ef4444; transition: width .2s, background .2s; }

/* Environnement de TEST : pastille discrète + liseré en haut de page (jamais rendus en production). Préfixe aet-. */
.aet-env { display:inline-flex; align-items:center; gap:6px; margin-left:12px; padding:2px 10px; border-radius:999px; background:#f59e0b; color:#1e293b; font-size:11px; font-weight:800; letter-spacing:.08em; text-transform:uppercase; white-space:nowrap; cursor:help; }
.aet-env-auth { display:flex; justify-content:center; margin:0 0 12px; }
.aet-env-auth .aet-env { margin-left:0; }
body.aet-test::before { content:''; position:fixed; top:0; left:0; right:0; height:3px; background:#f59e0b; z-index:3000; pointer-events:none; }

/* Demande de compte : carte plus étroite. */
.auth-card.auth-card-narrow { max-width: 460px; }

/* Activation de la double authentification. */
.auth-qr { text-align: center; margin-bottom: 18px; }
.auth-qr img { width: 200px; height: 200px; }
.auth-secret { font-size: 12px; text-align: center; margin: 0 0 20px; }
.auth-secret code { font-size: 13px; letter-spacing: .05em; }
