/* =====================================================================
   CONNEXION À LA CONSOLE PULSWIFT
   Autonome exprès : pulswift.css est derrière le contrôle d'accès, donc
   cette page arriverait sans style si elle s'appuyait dessus. Elle reprend
   ici les mêmes couleurs — on voit tout de suite qu'on n'est pas sur la
   page du comptoir, qui est claire.
   ===================================================================== */

@font-face { font-family: 'Barlow Condensed'; font-weight: 700; font-display: swap; src: url('../assets/polices/BarlowCondensed-700.woff2') format('woff2'); }

:root {
  --fond: #0f1115;
  --panneau: #171a20;
  --panneau-2: #1e222a;
  --trait: rgba(255, 255, 255, .14);
  --encre: #f2f4f7;
  --doux: rgba(242, 244, 247, .68);
  --pale: rgba(242, 244, 247, .42);
  --marque: linear-gradient(90deg, #2f6df6, #19c3d6);
  --perte: #f4604f;
  --titre: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --mono: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, monospace;
  --gout: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; padding: 0; background: var(--fond); }
body {
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 15px; line-height: 1.45; color: var(--encre); -webkit-text-size-adjust: 100%;
}
h1 { font-family: var(--titre); margin: 0; }

.page { min-height: 100svh; display: grid; place-items: center; padding: var(--gout); }

.fenetre {
  width: 100%; max-width: 380px; background: var(--panneau); border: 1px solid var(--trait);
  padding: 26px 24px 20px; display: flex; flex-direction: column; gap: 14px; position: relative;
}
.fenetre::before { content: ""; position: absolute; left: -1px; right: -1px; top: -1px; height: 3px; background: var(--marque); }
.fenetre .marque { font-family: var(--titre); font-size: 24px; font-weight: 700; letter-spacing: .02em; }
.fenetre h1 { font-size: 20px; font-weight: 600; color: var(--doux); margin-top: -10px; }
.intro { margin: -6px 0 4px; color: var(--pale); font-size: 13px; }

.champ { display: flex; flex-direction: column; gap: 5px; font-size: 12px; font-weight: 600; color: var(--doux); }
.champ input {
  min-height: 42px; width: 100%; padding: 0 12px; border: 1px solid var(--trait); border-radius: 0;
  background: var(--panneau-2); color: var(--encre); font-family: inherit; font-size: 16px;
}
.champ input:focus { outline: none; border-color: var(--encre); }

.saisie { position: relative; display: block; }
.saisie input { padding-right: 86px; }
.voir {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%); min-height: 30px; padding: 0 10px;
  border: 1px solid var(--trait); background: transparent; color: var(--doux);
  font-family: inherit; font-size: 12px; font-weight: 600; cursor: pointer;
}
.voir:hover { border-color: var(--encre); color: var(--encre); }

.entrer {
  min-height: 46px; border: 1px solid var(--encre); background: var(--encre); color: var(--fond);
  font-family: inherit; font-size: 15px; font-weight: 700; cursor: pointer;
}
.entrer:disabled { opacity: .5; cursor: default; }

.lien {
  align-self: flex-start; padding: 2px 0; border: 0; background: none; color: var(--doux);
  font-family: inherit; font-size: 13px; text-align: left; text-decoration: underline; cursor: pointer;
}
.lien:hover { color: var(--encre); }

.erreur { margin: 0; color: var(--perte); font-size: 13px; font-weight: 600; }
.note { margin: 2px 0 0; color: var(--pale); font-size: 12px; }
.note code { font-family: var(--mono); font-size: 11px; }

/* Secousse brève sur un mot de passe refusé */
.secoue { animation: secousse .3s; }
@keyframes secousse {
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}
@media (prefers-reduced-motion: reduce) { .secoue { animation: none; } }
