/* Page de connexion Optisignal : panneau animé (radar de veille) + carte de connexion.
   Couleurs, police, rayons et ombres : osg-jetons.css. Champs, bouton et message d'erreur : osg-composants.css.
   Les deux sont chargés avant cette feuille, qui ne porte que la mise en page de la connexion. */
.login { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(360px, 1fr); }

/* ---- Panneau animé ---- */
.stage {
  position: relative; overflow: hidden; isolation: isolate;
  background: radial-gradient(120% 90% at 85% 15%, var(--nuit-3) 0%, var(--nuit-2) 45%, var(--nuit) 100%);
  color: var(--sur-nuit); display: flex; align-items: flex-end;
  padding: clamp(28px, 5vw, 64px);
}
#radar { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.stage-copy { max-width: 560px; display: grid; gap: 14px; }
.brand { display: inline-flex; width: fit-content; padding-block: 2px; margin-bottom: var(--esp-4); border-radius: var(--rayon-m); }
.brand img { display: block; height: 40px; width: auto; }
.surtitre { margin: 0; font-size: var(--texte-xs); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--sur-nuit-accent); }
.stage h1 { margin: 0; font-size: clamp(28px, 3.4vw, 44px); line-height: 1.08; font-weight: 800; letter-spacing: -.025em; text-wrap: balance; }
.accroche { margin: 0; color: var(--sur-nuit-doux); max-width: 48ch; }
.ticker { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; min-height: 120px; align-content: start; }
.ticker li {
  display: flex; align-items: center; gap: 10px; width: fit-content; max-width: 100%;
  padding: var(--esp-2) var(--esp-3); border-radius: var(--rayon-m); font-size: var(--texte-s); color: var(--sur-nuit-clair);
  background: var(--verre); border: 1px solid var(--verre-trait); backdrop-filter: blur(6px);
  animation: tick-in .5s cubic-bezier(.2, .8, .2, 1) both;
}
.ticker li b { color: var(--sur-nuit); font-weight: 700; }
.ticker li i { width: 8px; height: 8px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 4px var(--signal-halo); flex: none; }
.ticker li.out { animation: tick-out .4s ease both; }
@keyframes tick-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes tick-out { to { opacity: 0; transform: translateY(-6px); } }

/* ---- Carte de connexion ---- */
.panel { display: grid; grid-template-rows: 1fr auto; align-items: center; justify-items: center; padding: 32px 20px 20px; }
.card { width: min(400px, 100%); background: var(--panel); border: 1px solid var(--line); border-radius: var(--rayon-l); padding: 32px 28px 24px; box-shadow: var(--ombre-3); }
.card-head { margin-bottom: 22px; }
.kicker { margin: 0 0 var(--esp-1); font-size: var(--texte-xs); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.card h2 { margin: 0; font-size: 28px; font-weight: 800; letter-spacing: -.02em; }
.sub { margin: 4px 0 0; color: var(--muted); }
#login-form { display: grid; gap: var(--esp-4); }
.pwd { position: relative; }
.pwd input { padding-right: 84px; }
.reveal { position: absolute; right: 2px; top: 50%; transform: translateY(-50%); min-height: var(--cible); font: 600 var(--texte-xs) var(--police); color: var(--accent); background: none; border: 0; padding: 0 var(--esp-3); border-radius: var(--rayon-m); cursor: pointer; }
.reveal:focus-visible { outline-offset: -4px; }
#submit { margin-top: var(--esp-1); }
.secure { display: flex; align-items: center; justify-content: center; gap: var(--esp-2); margin: var(--esp-4) 0 0; font-size: var(--texte-xs); color: var(--muted); }
.foot { font-size: var(--texte-xs); color: var(--muted); }
.foot a { color: inherit; }

@media (max-width: 900px) {
  .login { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .stage { min-height: 300px; padding: 24px 16px; }
  .stage h1 { font-size: 26px; }
  .accroche, .ticker { display: none; }
  .brand { margin-bottom: var(--esp-1); }
  .panel { padding: 24px 16px 16px; }
}
