/* Сторінки входу й зміни пароля. Токени кольорів — ті самі, що в public/index.html. */
:root {
  --paper: #f2f3f5;
  --surface: #ffffff;
  --ink: #1b1f2a;
  --muted: #5b6270;
  --line: #d5d8de;
  --green: #1f5e3b;
  --green-soft: #e3eee7;
  --danger: #a3261c;
  --danger-soft: #fbe7e5;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #161a22;
    --surface: #1f2430;
    --ink: #eef0f4;
    --muted: #a2a9b6;
    --line: #353c4a;
    --green: #6cc493;
    --green-soft: #1c3327;
    --danger: #ff9b90;
    --danger-soft: #3a1f1d;
  }
}
:root[data-theme="dark"] {
  --paper: #161a22;
  --surface: #1f2430;
  --ink: #eef0f4;
  --muted: #a2a9b6;
  --line: #353c4a;
  --green: #6cc493;
  --green-soft: #1c3327;
  --danger: #ff9b90;
  --danger-soft: #3a1f1d;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem 16px;
  background: var(--paper);
  color: var(--ink);
  font-family: "Archivo", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.panel {
  width: 100%;
  max-width: 26rem;
  padding: 2rem 1.5rem 1.75rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 6px solid var(--green);
  border-radius: 4px;
}

h1 {
  margin: 0;
  font-stretch: 125%;
  font-weight: 800;
  font-size: 2.25rem;
  line-height: 1;
  letter-spacing: -0.02em;
}

.lead {
  margin: 0.75rem 0 0;
  color: var(--muted);
}

form {
  margin-top: 1.5rem;
  display: grid;
  gap: 1rem;
}

label {
  display: grid;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 0.9375rem;
}

input {
  width: 100%;
  min-height: 2.75rem;
  padding: 0 0.75rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-weight: 400;
}
input:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 1px;
}

.hint {
  font-weight: 400;
  color: var(--muted);
  font-size: 0.875rem;
}

.error {
  margin: 1.25rem 0 0;
  padding: 0.65rem 0.8rem;
  border-radius: 4px;
  background: var(--danger-soft);
  color: var(--danger);
  font-weight: 600;
  font-size: 0.9375rem;
}

button {
  min-height: 2.75rem;
  margin-top: 0.25rem;
  border: 2px solid var(--ink);
  border-radius: 4px;
  background: var(--ink);
  color: var(--paper);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s;
}
button:hover { background: var(--green); border-color: var(--green); color: #fff; }
button:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  button { transition: none; }
}
