:root {
  color-scheme: light;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: #f6f7fb;
  color: #121212;
}

.container {
  width: 100%;
  max-width: 460px;
  padding: 24px;
}

.card {
  background: #ffffff;
  border-radius: 14px;
  padding: 28px;
  box-shadow: 0 10px 30px rgba(16, 24, 40, 0.08);
}

h1 {
  margin: 0 0 8px;
  font-size: 1.5rem;
}

.subtitle {
  margin: 0 0 18px;
  color: #4b5563;
}

form {
  display: grid;
  gap: 12px;
}

input,
button {
  width: 100%;
  border-radius: 10px;
  border: 1px solid #d1d5db;
  font-size: 1rem;
  padding: 12px 14px;
}

input:focus {
  outline: 2px solid #4f46e5;
  border-color: #4f46e5;
}

button {
  background: #111827;
  color: #ffffff;
  border: none;
  cursor: pointer;
}

button:hover,
.button-link:hover {
  background: #1f2937;
}

.error-card {
  text-align: center;
}

.error-code {
  margin: 0 0 8px;
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
}

.error-400 .error-code {
  color: #d97706;
}

.error-404 .error-code {
  color: #2563eb;
}

.error-422 .error-code,
.error-500 .error-code {
  color: #dc2626;
}

.error-502 .error-code,
.error-503 .error-code {
  color: #7c3aed;
}

.error-card .subtitle {
  margin-bottom: 24px;
}

.button-link {
  display: inline-block;
  width: 100%;
  border-radius: 10px;
  border: none;
  font-size: 1rem;
  padding: 12px 14px;
  background: #111827;
  color: #ffffff;
  text-decoration: none;
  cursor: pointer;
}

.admin-link-wrap {
  margin-top: 12px;
  text-align: center;
}

.admin-link {
  display: inline-block;
  font-size: 0.88rem;
  color: #6b7280;
  text-decoration: underline;
  text-decoration-color: rgba(107, 114, 128, 0.5);
}

.admin-link:hover {
  color: #4f46e5;
  text-decoration-color: rgba(79, 70, 229, 0.6);
}
