/* Inloggningssidan — samma tokens och typsnitt som appen. */

@font-face {
  font-family: 'IBM Plex Mono';
  src: url('/fonts/ibm-plex-mono-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('/fonts/ibm-plex-mono-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('/fonts/ibm-plex-mono-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --page-bg: #eeefec;
  --surface: #fbfbfa;
  --text: #16181a;
  --text-muted: #6d716d;
  --text-subtle: #9b9e9a;
  --border: #dfe0dd;
  --accent: #0047ff;
  --danger: #b5462f;
  --danger-bg: #fdf1ec;
  --danger-border: #f0c9bb;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--page-bg);
  color: var(--text);
  font-family: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12.5px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

.card {
  width: 360px;
  max-width: 100%;
  padding: 26px 20px 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 2px 18px rgba(0, 0, 0, .07);
}

.eyebrow {
  display: block;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-subtle);
}

h1 {
  margin: 8px 0 22px;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.1;
}

.button {
  display: block;
  padding: 11px 14px;
  border-radius: 6px;
  background: #16181a;
  color: #fbfbfa;
  font-size: 12.5px;
  font-weight: 500;
  text-decoration: none;
}
.button:hover { background: #000; }
.button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.error {
  margin: 0 0 14px;
  padding: 9px 12px;
  border: 1px solid var(--danger-border);
  border-radius: 6px;
  background: var(--danger-bg);
  color: var(--danger);
  font-size: 11.5px;
}
.error[hidden] { display: none; }

.hint {
  margin: 14px 0 0;
  color: var(--text-subtle);
  font-size: 11px;
}
.hint a { color: inherit; }
