:root {
  color-scheme: light;
  --bg: #f2f4f8;
  --surface: #ffffff;
  --line-strong: #bcc5d1;
  --line: #dde2ea;
  --text: #18202c;
  --text-3: #5d697a;
  --accent: #2252d1;
  --accent-hover: #1a43ad;
  --accent-text: #ffffff;
  --accent-soft: #e6edfc;
  --focus: #2252d1;
  --neg: #b3261e;
  --neg-bg: #fdeceb;
  --neg-line: #eea39d;
  --ok: #17693a;
  --ok-bg: #e3f4ea;
  --ok-line: #93cfaa;
  --radius: 6px;
  --radius-lg: 10px;
  --shadow-frame: 0 1px 2px rgba(20, 30, 50, 0.08), 0 8px 28px rgba(20, 30, 50, 0.08);
  --font: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans',
    sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 48px 16px;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.45;
}

main {
  width: 100%;
  max-width: 420px;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-frame);
}

main.wide {
  max-width: 520px;
}

h1 {
  margin: 0 0 18px;
  font-size: 20px;
  font-weight: 650;
}

h2 {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 650;
}

section {
  margin: 0 0 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

p {
  margin: 0 0 12px;
}

.hint {
  margin: 14px 0 0;
  color: var(--text-3);
  font-size: 12.5px;
}

section .hint {
  margin: 0 0 12px;
}

.field {
  margin: 0 0 12px;
}

label {
  display: block;
  margin: 0 0 4px;
  font-weight: 600;
}

input[type='password'] {
  width: 100%;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  font: inherit;
  color: inherit;
}

button {
  height: 36px;
  padding: 0 16px;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--accent-text);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

button:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

button.secondary {
  background: var(--surface);
  border-color: var(--line-strong);
  color: var(--text);
}

button.secondary:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 1px;
}

.notice {
  margin: 0 0 16px;
  padding: 9px 12px;
  border: 1px solid;
  border-radius: var(--radius);
  font-weight: 600;
}

.notice.error {
  color: var(--neg);
  background: var(--neg-bg);
  border-color: var(--neg-line);
}

.notice.ok {
  color: var(--ok);
  background: var(--ok-bg);
  border-color: var(--ok-line);
}
