:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --surface: #ffffff;
  --text: #000000;
  --border: #e6e8ec;
  --danger: #c62828;
  --shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1115;
    --surface: #171a21;
    --text: #f5f7fa;
    --border: #2b3240;
    --danger: #ff6b6b;
    --shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  }
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(12px, 3vw, 32px);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
}

.card {
  width: min(680px, 100%);
  padding: clamp(16px, 4vw, 40px);
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.logo {
  display: block;
  width: min(420px, 100%);
  height: auto;
  margin: 0 auto 20px;
}

.error {
  width: 100%;
  text-align: center;
}

h1.error,
h2.errcode {
  margin: 0;
}

h1.error {
  font-size: clamp(2rem, 6vw, 3.5rem);
  line-height: 1.1;
}

h2.errcode {
  color: var(--danger);
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
