:root {
  color-scheme: light dark;
  --bg: #f4f7f3;
  --surface: #fff;
  --text: #17241d;
  --border: #c5d1c7;
  --accent: #1f7a45;
  --accent-text: #fff;
  --yellow: #ffc933;
  --shadow: 0 0.5rem 2rem rgb(25 47 31 / 8%);
  --error: #b3261e;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1f17;
    --surface: #172a1f;
    --text: #eaf3ec;
    --border: #28402f;
    --accent: #3fb56e;
    --accent-text: #08170e;
    --error: #ff8a80;
    --shadow: 0 0.5rem 2rem rgb(0 0 0 / 35%);
  }
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  margin: 0;
}

.page {
  width: min(100% - 2rem, 26rem);
  margin: 0 auto;
  padding: 3rem 0 2rem;
}

.intro {
  margin: 0 0 1rem;
  padding: clamp(1.5rem, 6vw, 2rem);
  border-radius: 1.25rem;
  background: linear-gradient(135deg, #123222, #1f7a45);
  box-shadow: var(--shadow);
  color: #fff;
}

.intro > p:last-child {
  margin-bottom: 0;
  color: rgb(255 255 255 / 82%);
  line-height: 1.6;
}

.card {
  padding: clamp(1.1rem, 4vw, 1.7rem);
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1rem;
  font-size: clamp(1.9rem, 8vw, 2.8rem);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.brand::before {
  width: 0.55em;
  height: 0.55em;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 0 0.12em rgb(255 201 51 / 25%);
  content: "";
}

h1,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0.75rem;
  font-size: clamp(1.2rem, 4.5vw, 1.6rem);
  font-weight: 600;
  line-height: 1.25;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 650;
}

input,
button {
  width: 100%;
  min-height: 3rem;
  padding: 0.65rem 0.75rem;
  border-radius: 0.6rem;
  font: inherit;
}

input {
  border: 1px solid var(--border);
  background: var(--surface);
  color: inherit;
}

button {
  margin-top: 1rem;
  border: 0;
  background: var(--accent);
  color: var(--accent-text);
  font-weight: 700;
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

#login-status {
  min-height: 1.5rem;
}

.error {
  color: var(--error);
}
