:root {
  --bg: #f4f5f7;
  --card: #ffffff;
  --text: #15171a;
  --muted: #6b7079;
  --line: #d9dce1;
  --field: #f8f9fa;
  --accent: #15171a;
  --accent-text: #ffffff;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1012;
    --card: #17191c;
    --text: #eceef1;
    --muted: #9aa0a8;
    --line: #2c3036;
    --field: #1d2024;
    --accent: #eceef1;
    --accent-text: #0f1012;
  }
}

* {
  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-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

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

.brand {
  margin: 0 0 24px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

h1 {
  margin: 0 0 20px;
  font-size: 22px;
  font-weight: 600;
}

fieldset {
  margin: 0;
  padding: 0;
  border: 0;
  display: grid;
  gap: 8px;
}

label {
  font-size: 13px;
  color: var(--muted);
}

input {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  margin-bottom: 8px;
  font: inherit;
  color: var(--text);
  background: var(--field);
  border: 1px solid var(--line);
  border-radius: 8px;
}

button {
  height: 42px;
  margin-top: 8px;
  font: inherit;
  font-weight: 600;
  color: var(--accent-text);
  background: var(--accent);
  border: 0;
  border-radius: 8px;
}

fieldset:disabled input,
fieldset:disabled button {
  opacity: 0.55;
  cursor: not-allowed;
}

.notice {
  margin: 20px 0 0;
  font-size: 14px;
}

.contact {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.contact a {
  color: inherit;
}
