:root {
  color-scheme: dark;
  --bg: #0c0e14;
  --card: #161922;
  --field: #10131a;
  --line: #2a3142;
  --text: #eef2f7;
  --muted: #9aa3b5;
  --accent: #818cf8;
  --sans: "Plus Jakarta Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
}

main {
  width: min(420px, calc(100% - 32px));
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.brand {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: inherit;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.mark {
  width: 36px;
  height: 36px;
  display: block;
  object-fit: contain;
}

h1 {
  font-weight: 700;
  letter-spacing: -0.04em;
  font-size: 28px;
  margin: 16px 0;
}

form { display: grid; gap: 12px; }

label { display: grid; gap: 6px; color: var(--muted); font-size: 13px; font-weight: 600; }

input {
  font: inherit;
  color: var(--text);
  background: var(--field);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
}

input:focus { outline: 2px solid #4338ca; border-color: var(--accent); }

button {
  font: inherit;
  font-weight: 700;
  background: var(--accent);
  color: white;
  border: 0;
  border-radius: 8px;
  padding: 12px;
  cursor: pointer;
}

.hint, .switch, .error { color: var(--muted); font-size: 14px; line-height: 1.45; }
.error { color: #f87171; margin: 0; }
.switch a { color: var(--accent); font-weight: 600; }
