/* KD-142 (UI-404-001): standalone customer-realm 404 page.
   Centered, token-only, Light/Dark via the app's --theme-* tokens
   (public/css/style.css). No page-specific hardcoded colours. */
.error-page-body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--theme-bg);
  padding: 2rem 1rem;
}

.error-card {
  width: 100%;
  max-width: 460px;
  text-align: center;
  background: var(--theme-surface);
  border: 1px solid var(--theme-border, var(--border-color));
  border-radius: 12px;
  padding: 2.5rem 2rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* The brand logo artwork is made for a light background, so it sits on a
   constant white plate in both themes (the same interim treatment the login
   branding panel uses on dark surfaces, design §36). */
.error-logo-plate {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
}

.error-logo {
  height: 44px;
  width: auto;
  display: block;
}

.error-code {
  font-size: 4.5rem;
  font-weight: 700;
  line-height: 1;
  margin: 0;
  color: var(--theme-text);
  letter-spacing: 0.02em;
}

.error-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--theme-text);
  margin: 0.75rem 0 0.5rem;
}

.error-message {
  color: var(--theme-text-muted);
  margin: 0 0 1.75rem;
  font-size: 0.95rem;
  line-height: 1.5;
}

.error-page-body .btn-primary {
  min-width: 180px;
}

@media (max-width: 480px) {
  .error-card {
    padding: 2rem 1.25rem;
  }
  .error-code {
    font-size: 3.5rem;
  }
}

/* UI-WALKTHROUGH-001: a form inside the card (forgot-password). */
.error-card-form {
  text-align: left;
  margin-bottom: 1.25rem;
}

.error-card-form .btn-primary {
  width: 100%;
  margin-top: 1rem;
}
