@font-face {
  font-family: "Instrument Sans"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("/css/fonts/instrument-sans-latin-wght-normal.woff2") format("woff2");
}

:root {
  --bg: #ededf0;
  --panel: #ffffff;
  --line: #e3e3e8;
  --text: #17171c;
  --muted: #62626e;
  --accent: #4338ca;
  --accent-hover: #3730a3;
  --focus: #a5b4fc;
  --danger: #b91c1c;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111114;
    --panel: #1b1b20;
    --line: #2c2c34;
    --text: #f2f2f5;
    --muted: #a0a0ad;
    --accent: #6366f1;
    --accent-hover: #818cf8;
    --danger: #f87171;
  }
  .logo rect { fill: #2c2c34; }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px 16px;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.5 "Instrument Sans", system-ui, sans-serif;
}

.card {
  width: 100%;
  max-width: 420px;
  padding: 32px 28px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.brand { display: flex; align-items: center; gap: 10px; }
.logo { width: 28px; height: 28px; }
.brand-name { font-weight: 700; font-size: 17px; }

h1 { margin: 28px 0 6px; font-size: 26px; line-height: 1.2; letter-spacing: -0.01em; }
.lead { margin: 0 0 28px; color: var(--muted); }

label { display: block; margin-bottom: 8px; font-weight: 600; font-size: 13px; }
.row { display: flex; gap: 8px; }

input, button { font: inherit; border-radius: 10px; }
input {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--line);
}
button {
  padding: 10px 18px;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  border: 0;
  cursor: pointer;
}
button:hover { background: var(--accent-hover); }
input:focus-visible, button:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; }

.error { margin: 10px 0 0; color: var(--danger); font-size: 14px; }
input:disabled, button:disabled { opacity: 0.5; cursor: not-allowed; }
button:disabled:hover { background: var(--accent); }
