/* Page de connexion. Les jetons de couleur viennent de styles.css, deja
   declare sous les deux portees (media query et [data-theme]). */
/* Les jetons de couleur viennent de styles.css, deja declare sous les
   deux portees (media query et [data-theme]). Rien a redefinir ici. */
.gate {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: var(--bg);
}
.gate form {
  width: 100%;
  max-width: 26rem;
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
}
.gate h1 {
  margin: 0 0 6px;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}
.gate p {
  margin: 0 0 20px;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--text-secondary);
}
.gate label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.8125rem;
  color: var(--text-secondary);
}
.gate input {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  font: inherit;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  color: var(--text-primary);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
}
.gate input:focus-visible {
  outline: 2px solid var(--series-1);
  outline-offset: 1px;
}
.gate button {
  width: 100%;
  margin-top: 16px;
  padding: 10px 12px;
  font: inherit;
  font-weight: 500;
  color: #fff;
  background: var(--series-1);
  border: 0;
  border-radius: 8px;
  cursor: pointer;
}
.gate button[disabled] { opacity: 0.6; cursor: default; }
/* Le rouge ne porte jamais le sens seul : il vient avec une icone et un
   libelle, comme les couleurs de statut du dashboard. */
.gate .error {
  display: none;
  gap: 8px;
  margin-top: 16px;
  padding: 10px 12px;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--text-primary);
  background: var(--surface-2);
  border: 1px solid var(--critical);
  border-radius: 8px;
}
.gate .error[data-shown] { display: flex; }
.gate .error b { color: var(--critical); }
