/* La feuille de la page de connexion (login_page.idhf), publique. Elle etait dans un bloc style de
   la page, que la politique de securite refuse (signasystem_httpserver_csp.cs). */
/* PAGE DE CONNEXION, AUTONOME : elle n'utilise pas le gabarit du site, ni ses themes. Elle a le
   meme aspect pour tout le monde -- un fond plein ecran (l'image de fond du site, ou a defaut un
   plan de nuit dessine) et une boite de verre depoli en paysage 16/9 : la marque a gauche, avec
   l'afficheur 5x7, le formulaire a droite. Polices embarquees : rien n'est demande a un tiers. */
@font-face { font-family: "Barlow"; font-weight: 400; font-style: normal; font-display: swap; src: url("/fonts/barlow_400.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 600; font-style: normal; font-display: swap; src: url("/fonts/barlow_600.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-style: normal; font-display: swap; src: url("/fonts/barlow_condensed_700.woff2") format("woff2"); }
:root {
  --f-display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --f-body: "Barlow", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-data: ui-monospace, "Cascadia Mono", Consolas, "Liberation Mono", monospace;
  --led: #ffb21a;
  --led-face: #0b0d0e;
  --danger: #ff8a7a;
  --ok: #63d69a;
  --warn: #ffb21a;
  --ground: #0c1218; --ground-2: #16212b; --lines: rgba(150, 175, 195, .13);
  --glass: rgba(18, 26, 34, .55); --glass-edge: rgba(255, 255, 255, .14); --brand-tint: rgba(4, 8, 12, .38);
  --ink: #eef3f7; --muted: #9db0bf; --field: rgba(255, 255, 255, .07); --field-edge: rgba(255, 255, 255, .18);
  --accent: #5b8cff; --accent-ink: #ffffff; --shade: rgba(0, 0, 0, .45);
  --r: 5px; --r-box: 10px;
  color-scheme: dark;
}
/* Avec une photo de fond : le verre s'assombrit un peu pour rester lisible. */
.with-photo { --glass: rgba(14, 20, 26, .5); --glass-edge: rgba(255, 255, 255, .16); --brand-tint: rgba(0, 0, 0, .3); --muted: #b3c2cf; }
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  min-height: 100%; background: var(--ground); color: var(--ink);
  font-family: var(--f-body); font-size: 15px; line-height: 1.45;
  display: grid; place-items: center; padding-inline: 16px; padding-block: 24px;
  position: relative; overflow-x: hidden;
}
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.backdrop { position: fixed; inset: 0; z-index: 0; overflow: hidden; background: radial-gradient(120% 90% at 30% 20%, var(--ground-2), var(--ground)); }
#map { position: absolute; inset: 0; width: 100%; height: 100%; }
.photo { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity .5s ease; }
.with-photo .photo { opacity: 1; }

/* Le copyright en bas a droite. */
.copyright { position: fixed; right: 0; bottom: 0; z-index: 1; padding: 2px 16px; background: rgba(0, 0, 0, .5); color: #fff; font-size: .6rem; letter-spacing: .02em; }

.card {
  position: relative; z-index: 2; width: min(780px, 100%); aspect-ratio: 16 / 9;
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  background: var(--glass); border: 1px solid var(--glass-edge); border-radius: var(--r-box); overflow: hidden;
  -webkit-backdrop-filter: blur(18px) saturate(1.2); backdrop-filter: blur(18px) saturate(1.2);
  box-shadow: 0 24px 60px var(--shade);
}
.side { background: var(--brand-tint); border-right: 1px solid var(--glass-edge); padding: 32px 30px 30px; display: grid; grid-template-rows: auto 1fr; gap: 22px; min-width: 0; }
.brand { display: flex; align-items: center; gap: 12px; }
.mark { display: grid; grid-template-columns: repeat(3, 6px); gap: 3px; padding: 6px; border-radius: 3px; background: var(--led-face); }
.mark i { width: 6px; height: 6px; border-radius: 50%; background: #3a3020; }
.mark i.on { background: var(--led); box-shadow: 0 0 5px var(--led); }
.brand-text { display: grid; min-width: 0; }
.brand-text strong { font-family: var(--f-display); font-weight: 700; font-size: 30px; line-height: 1; letter-spacing: .01em; }
.brand-text span { font-size: 13px; color: var(--muted); }
.matrix-box { align-self: center; width: 100%; max-width: 300px; padding: 10px; border-radius: 3px; background: var(--led-face); border: 1px solid #262b2f; }
.matrix { display: block; width: 100%; }

.main { padding: 32px 34px 26px; display: grid; grid-template-rows: auto 1fr auto; gap: 18px; min-width: 0; }
.step-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.step-head h1 { margin: 0; font-family: var(--f-display); font-weight: 700; font-size: 26px; letter-spacing: .02em; }
.step-head .step { font-family: var(--f-data); font-size: 12px; color: var(--muted); }
.forms { align-self: center; }
form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 13px; font-weight: 600; color: var(--muted); letter-spacing: .02em; }
.input-wrap { position: relative; }
.field input {
  width: 100%; padding: 11px 13px; border-radius: var(--r); border: 1px solid var(--field-edge);
  background: var(--field); color: var(--ink); font: inherit; font-size: 16px; transition: border-color .15s, box-shadow .15s;
}
.field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(91, 140, 255, .3); }
.field input[aria-invalid="true"] { border-color: var(--danger); }
.reveal { position: absolute; right: 5px; top: 50%; transform: translateY(-50%); border: 0; background: transparent; color: var(--muted); font: inherit; font-size: 13px; font-weight: 600; padding: 6px 8px; border-radius: 4px; cursor: pointer; }
.reveal:hover { color: var(--ink); }
.field input.has-reveal { padding-right: 86px; }
.note { font-size: 13px; margin: 0; min-height: 1.45em; }
.note.warn { color: var(--warn); }
.note.err { color: var(--danger); }
.note.ok { color: var(--ok); }
.who { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 12px; border-radius: var(--r); background: var(--field); border: 1px solid var(--field-edge); font-size: 14px; }
.who span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.link { border: 0; background: none; color: var(--accent); font: inherit; font-weight: 600; cursor: pointer; padding: 0; }
.primary { width: 100%; padding: 11px 16px; border: 0; border-radius: var(--r); cursor: pointer; background: var(--accent); color: var(--accent-ink); font: inherit; font-weight: 600; font-size: 16px; transition: filter .15s, transform .05s; }
.primary:hover { filter: brightness(1.08); }
.primary:active { transform: translateY(1px); }
.primary[disabled] { opacity: .55; cursor: default; filter: none; }
.main-foot { font-size: 13px; color: var(--muted); }
.forgot { display: grid; gap: 6px; justify-items: start; }
.forgot .link { font-size: 13px; }
.forgot .note { color: var(--muted); }
.forgot-open .main-foot { display: none; }
.intro { margin: 0; font-size: 14px; }
/* Une prise de main sur un poste de visionnage (PLAN_VISIONNAGE.md) : revenir au visionnage. */
.takeover { margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--glass-edge); }
.takeover .note { margin: 0 0 6px; }
#closed-note { margin-bottom: 14px; }
.rules { margin: 0; font-size: 12.5px; color: var(--muted); }
.hidden { display: none !important; }
.appear { animation: apparait .28s ease both; }
@keyframes apparait { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
noscript { position: relative; z-index: 3; }
@media (prefers-reduced-motion: reduce) { .primary, .field input { transition: none; } .appear { animation: none; } }
@media (max-width: 720px) {
  .card { aspect-ratio: auto; grid-template-columns: 1fr; }
  .side { border-right: 0; border-bottom: 1px solid var(--glass-edge); grid-template-rows: auto; padding: 22px 20px; }
  .matrix-box { display: none; }
  .main { padding: 22px 20px 18px; }
}
