.error-theme-symbols {
  display: none;
}

.error-theme-corner {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 5;
}

body.error-simple-page {
  margin: 0;
  padding: clamp(1rem, 4vw, 3.125rem);
}

.error-simple-page .error-box {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  padding: 4.75rem clamp(1.25rem, 4vw, 2.5rem) clamp(1.25rem, 4vw, 2.5rem);
}

body.auth main.error-page {
  grid-template-rows: auto minmax(min-content, 1fr) auto;
  min-height: 100vh;
  min-height: 100svh;
}

body.auth main.error-page > .auth-aside {
  position: relative;
}

body.auth main.error-page > .auth-body {
  height: auto;
  min-width: 0;
  padding-block: 1.5rem;
}

.error-theme-switcher {
  --error-theme-ink: #536378;
  --error-theme-panel: #fff;
  --error-theme-hover: #edf5fc;
  --error-theme-line: #dfe7f0;
  position: relative;
  color: var(--error-theme-ink);
  font-family: var(--body-font, "Segoe UI", Arial, sans-serif);
  text-align: left;
}

[data-bs-theme="dark"] .error-theme-switcher {
  --error-theme-ink: #b8c7d9;
  --error-theme-panel: #242c38;
  --error-theme-hover: #303e50;
  --error-theme-line: #394657;
}

.error-theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  min-width: 3.75rem;
  min-height: 2.875rem;
  padding: 0.625rem;
  border: 1px solid #9fc2df;
  border-radius: 0.875rem;
  background: #f1f8ff;
  color: #176ba4;
  box-shadow: 0 4px 14px rgb(0 134 236 / 16%);
  list-style: none;
  cursor: pointer;
}

.error-theme-toggle::-webkit-details-marker {
  display: none;
}

[data-bs-theme="dark"] .error-theme-toggle {
  border-color: #668bac;
  background: #2c4157;
  color: #d8edff;
  box-shadow: 0 4px 16px rgb(0 0 0 / 25%);
}

.error-theme-switcher svg {
  width: 1.125rem;
  height: 1.125rem;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.error-theme-toggle .error-theme-chevron {
  width: 0.875rem;
  height: 0.875rem;
}

.error-theme-toggle .theme-icon-active {
  width: 1.25rem;
  height: 1.25rem;
  stroke-width: 1.9;
}

.error-theme-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  width: 10rem;
  padding: 0.375rem;
  border: 1px solid var(--error-theme-line);
  border-radius: 0.875rem;
  background: var(--error-theme-panel);
  box-shadow: 0 12px 32px rgb(15 35 55 / 14%);
}

.error-theme-option {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  width: 100%;
  min-height: 2.5rem;
  padding: 0.5rem 0.625rem;
  border: 0;
  border-radius: 0.5rem;
  background: transparent;
  color: var(--error-theme-ink);
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.25;
  text-align: left;
  cursor: pointer;
}

.error-theme-option:hover,
.error-theme-option.active,
.error-theme-toggle:hover {
  background: var(--error-theme-hover);
}

.error-theme-option.active {
  color: var(--bs-primary, #0086ec);
  font-weight: 600;
}

[data-bs-theme="dark"] .error-theme-option.active {
  color: #8ccfff;
}

.error-theme-option:focus-visible,
.error-theme-toggle:focus-visible {
  outline: 2px solid var(--bs-primary, #0086ec);
  outline-offset: 2px;
}

@media (max-width: 991.98px) {
  body.auth main.error-page {
    grid-template-areas: "auth-aside" "auth-body" "auth-footer";
  }

  body.auth main.error-page > .auth-aside {
    display: block;
    padding-block: 4.75rem 0;
  }

  body.auth main.error-page .auth-aside .error-illustration {
    max-width: 32rem;
    margin-inline: auto;
  }
}
