:root {
  --bg: #f6f7f9;
  --card: #ffffff;
  --text: #1f2328;
  --muted: #6a737d;
  --border: #d0d7de;
  --accent: #ff7a00;
  --accent-dark: #e06b00;
  --link: #0b6bcb;
  --shadow: 0 1px 3px rgba(0, 0, 0, .08), 0 8px 24px rgba(0, 0, 0, .06);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #16191d;
    --card: #1f2328;
    --text: #e6edf3;
    --muted: #909aa4;
    --border: #30363d;
    --link: #6cb6ff;
    --shadow: 0 1px 3px rgba(0, 0, 0, .5);
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 16px 48px;
}

.logo svg { width: 64px; height: 64px; display: block; }

.brand {
  margin: 10px 0 22px;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: .2px;
}

.card {
  width: 100%;
  max-width: 380px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 6px;
  box-shadow: var(--shadow);
  padding: 22px 22px 18px;
}

.card h2 {
  margin: 0 0 18px;
  font-size: 20px;
  font-weight: 500;
  text-align: center;
}

.field { display: block; margin-bottom: 14px; }

.field span {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  color: var(--muted);
}

.field input {
  width: 100%;
  padding: 9px 11px;
  font: inherit;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  outline: none;
}

.field input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 122, 0, .18);
}

.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 4px 0 18px;
  font-size: 13px;
}

.check { display: flex; align-items: center; gap: 6px; color: var(--muted); }

.link { color: var(--link); text-decoration: none; }
.link:hover { text-decoration: underline; }

.primary {
  width: 100%;
  padding: 10px 14px;
  font: inherit;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  border: 0;
  border-radius: 4px;
  cursor: pointer;
}

.primary:hover { background: var(--accent-dark); }
.primary:disabled { opacity: .7; cursor: default; }

.alt {
  margin: 18px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}

.foot {
  margin-top: 22px;
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
}

.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--text); }

.alert {
  margin: 0 0 14px;
  padding: 10px 12px;
  border: 1px solid #d4a72c;
  border-left: 4px solid #d4a72c;
  background: rgba(212, 167, 44, .12);
  border-radius: 4px;
  color: var(--text);
  font-size: 14px;
}

.error-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
}

.error-code {
  margin: 0 0 12px;
  font-size: 72px;
  font-weight: 600;
  color: var(--text);
}

.error-page p { max-width: 620px; color: var(--muted); }

.button {
  display: inline-block;
  margin-top: 8px;
  padding: 9px 16px;
  border-radius: 4px;
  background: #2f9e44;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

.button:hover { background: #268a3a; }
