/* Páginas 404 / 403 / 500 */

.error-layout-body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--theme-font, "Plus Jakarta Sans", system-ui, sans-serif);
  background-color: var(--theme-body-bg);
  background-image:
    radial-gradient(ellipse 70% 45% at 50% -10%, rgba(220, 38, 38, 0.08) 0%, transparent 55%),
    radial-gradient(ellipse 50% 35% at 100% 100%, rgba(15, 23, 42, 0.05) 0%, transparent 50%),
    linear-gradient(180deg, #f8f9fb 0%, #eef0f4 100%);
  color: var(--theme-body-text);
}

html[data-theme="dark"] .error-layout-body {
  background-color: #0f172a;
  background-image:
    radial-gradient(ellipse 70% 45% at 50% -10%, rgba(220, 38, 38, 0.16) 0%, transparent 55%),
    radial-gradient(ellipse 50% 35% at 0% 100%, rgba(51, 65, 85, 0.4) 0%, transparent 50%),
    linear-gradient(180deg, #0f172a 0%, #020617 100%);
}

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

.error-layout__brand {
  display: block;
  line-height: 0;
}

.error-layout__logo {
  display: block;
  width: min(132px, 48vw);
  height: auto;
  object-fit: contain;
}

.error-page {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: min(64vh, 560px);
  padding: 12px 0 24px;
}

.error-page__card {
  position: relative;
  width: 100%;
  max-width: 440px;
  text-align: center;
  background: var(--theme-card-bg);
  border: 1px solid var(--theme-card-border);
  border-radius: 8px;
  padding: 36px 32px 32px;
  box-shadow: 0 0.75rem 1.75rem var(--theme-card-shadow);
  animation: error-page-in 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes error-page-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.error-page__code {
  margin: 0 0 12px;
  font-size: clamp(3rem, 8vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 1;
  color: var(--sandos-accent);
}

.error-page__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 14px;
  background: var(--sandos-accent-soft);
  color: var(--sandos-accent);
}

.error-page__icon svg {
  width: 28px;
  height: 28px;
  display: block;
}

.error-page__title {
  margin: 0 0 10px;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--theme-heading);
}

.error-page__message {
  margin: 0 0 24px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.55;
  color: var(--theme-muted);
}

.error-page__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 168px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  background: var(--sandos-accent);
  border-radius: var(--theme-radius, 4px);
  box-shadow: 0 4px 12px var(--sandos-shadow-accent-soft);
  transition: background 0.15s ease, transform 0.12s ease, box-shadow 0.15s ease;
}

.error-page__cta:hover {
  background: var(--sandos-accent-hover);
  box-shadow: 0 6px 16px var(--sandos-shadow-accent);
}

.error-page__cta:active {
  transform: translateY(1px);
}

.error-page__theme-toggle {
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--theme-input-border);
  background: var(--theme-ghost-bg);
  color: var(--theme-muted);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.error-page__theme-toggle:hover {
  background: var(--theme-ghost-hover-bg);
  color: var(--theme-heading);
}

.error-page__theme-toggle .theme-toggle__icon {
  width: 16px;
  height: 16px;
  display: block;
}

@media (max-width: 480px) {
  .error-page__card {
    padding: 28px 22px 26px;
  }

  .error-page__title {
    font-size: 1.2rem;
  }

  .error-page__cta {
    width: 100%;
  }
}
