/* BIEX-32 — Page de connexion, servie sans session, registre `kids` (planche
   « Kids · Entrada » du 27/09). Chargée APRÈS /css/biex.css qui porte les
   tokens, les polices et le body : ici la mise en page seule, AUCUNE couleur
   en hex (toute couleur est une variable — test/charte.test.js), aucun style
   inline, aucun !important. Classes `login-*` : aucune collision avec biex.css. */
.login-body { display: flex; justify-content: center; padding: 0 16px 24px; }
.login { width: 100%; max-width: 420px; display: flex; flex-direction: column; gap: 20px; }
/* BIEX-61 — la marque et le sélecteur Alumno | Adulto : une rangée COLLANTE (le sélecteur reste visible si la page
   défile, iPhone SE 390×667) ; son fond est celui de la page, rien ne transparaît dessous. */
.login-top { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; background: var(--bg3); }
/* Sous la barre, un dégradé de son fond vers le transparent : au défilement, SOFFIA et le bandeau d'erreur s'estompent
   au lieu d'être coupés net. 12 px < l'écart de 20 px : au repos, il ne couvre rien ; il ne capte aucun clic. */
.login-top::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 12px; background: linear-gradient(var(--bg3), transparent); pointer-events: none; }
.login-brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
/* /acceso (même feuille, sans sélecteur) : la marque seule garde l'air du haut de page d'avant BIEX-61. */
.login > .login-brand { padding-top: 40px; }
.login-brand img { width: 26px; height: 32px; }
.login-brand .logo-text { font-size: 24px; color: var(--text); }
/* Bord du contrôle segmenté ≥ 3:1 contre la barre (WCAG 1.4.11) : --ghost-border (kids, turquesa oscuro) 3,7:1 sur --bg3. */
.login-modes { display: flex; flex-shrink: 0; gap: 4px; padding: 2px; border: 2px solid var(--ghost-border); border-radius: var(--radius-pill); background: var(--bg); box-shadow: 0 4px 12px var(--shadow-soft); }
/* Cible tactile ≥ 44 px ; l'onglet actif est plein (turquesa), l'autre discret. */
.login-mode { min-height: 44px; min-width: 44px; padding: 0 16px; border: 0; border-radius: var(--radius-pill); background: transparent; color: var(--text2); font: inherit; font-weight: 800; font-size: 16px; cursor: pointer; }
.login-mode[aria-selected="true"] { background: var(--primary); color: var(--on-primary); }
.login-mode:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.login-panel { display: flex; flex-direction: column; gap: 20px; }
.login-hello { display: flex; align-items: flex-end; gap: 8px; }
.login-soffia { width: 130px; height: 176px; flex-shrink: 0; }
.login-bubble { min-width: 0; overflow-wrap: anywhere; margin-bottom: 70px; padding: 14px 16px; background: var(--bg); border-radius: 22px 22px 22px 6px; font-family: var(--font-display); font-weight: 600; font-size: 22px; line-height: 1.2; box-shadow: 0 6px 18px var(--shadow-soft); }
.login-error { padding: 12px 16px; border-radius: var(--radius); background: var(--danger-bg); color: var(--danger); border: 1px solid var(--danger-border); font-weight: 700; font-size: 16px; line-height: 1.4; }
.login-error[hidden] { display: none; }
.login-card { max-width: 100%; display: flex; flex-direction: column; gap: 16px; padding: 22px 20px; background: var(--bg); border-radius: var(--radius-lg); box-shadow: 0 6px 18px var(--shadow-soft); }
.login-card h2 { font-size: 20px; }
.login-field { display: flex; flex-direction: column; gap: 8px; }
.login-field > span { font-weight: 800; font-size: 17px; }
.login-field input { width: 100%; height: 56px; padding: 0 18px; border: 3px solid var(--border2); border-radius: var(--radius); background: var(--bg); color: var(--text); font: inherit; font-size: 20px; font-weight: 700; letter-spacing: 0.04em; }
.login-field input:focus { outline: none; border-color: var(--focus); }
.login-go { height: 60px; border: 0; border-radius: var(--radius-pill); background: var(--primary); color: var(--on-primary); font: inherit; font-weight: 800; font-size: 20px; cursor: pointer; box-shadow: 0 5px 0 var(--primary-shadow); }
.login-go:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--primary-shadow); }
.login-go:disabled { opacity: .6; cursor: default; }
.login-help { font-size: 15px; line-height: 1.45; color: var(--text2); text-align: center; }
.login-adult-card h1 { font-family: var(--font-body); font-weight: 800; font-size: 17px; }
.login-google { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 20px; border-radius: var(--radius-pill); border: 2px solid var(--border2); background: var(--bg); color: var(--text); font-weight: 700; font-size: 16px; text-decoration: none; }
.login-google:hover { border-color: var(--text2); }
.login-google svg { width: 20px; height: 20px; }
.login-foot { font-size: 13px; color: var(--text2); }
/* Sous 380 px (320×568 compris), « BIEX Kids » passait sous l'onglet Alumno : la marque rétrécit comme dans l'en-tête. */
@media (max-width: 380px) {
  .login-brand { gap: 8px; }
  .login-brand .logo-text { font-size: 20px; }
  .login-mode { padding: 0 12px; }
  .login-soffia { width: 96px; height: 130px; }
  .login-bubble { margin-bottom: 48px; font-size: 20px; }
}
