.aurora-container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.aurora-canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

/* Full-page aurora backdrop (all app pages) */
html.aurora-root,
html:has(body.aurora-page) {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  background: #0a0404;
}

body.aurora-page {
  background: #0a0404;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

body.aurora-page::-webkit-scrollbar {
  width: 0;
  height: 0;
  background: transparent;
}

body.aurora-page::-webkit-scrollbar-thumb,
body.aurora-page::-webkit-scrollbar-track {
  background: transparent;
  border: none;
}

body.aurora-page > :not(.page-aurora-backdrop):not(.xa-login-boot-cover):not(.sign-in-viewport) {
  position: relative;
  z-index: 5;
}

body.xa-login .page-aurora-backdrop__vignette {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.25) 0%, transparent 45%, transparent 72%, rgba(0, 0, 0, 0.45) 100%),
    radial-gradient(ellipse at center, transparent 50%, rgba(0, 0, 0, 0.45) 100%);
  z-index: 3;
}

body.aurora-page::before,
body.aurora-page::after {
  display: none !important;
}

.page-aurora-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1;
  background: #0a0404;
  pointer-events: none;
  opacity: 1;
}

.page-aurora-backdrop.is-intro {
  opacity: 0;
  animation: pageAuroraBackdropIn 1.4s ease 0.1s forwards;
}

@keyframes pageAuroraBackdropIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.page-aurora-backdrop .page-aurora-host {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 100vh;
  min-height: 100dvh;
}

.page-aurora-backdrop__vignette {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.2) 0%, transparent 40%, transparent 70%, rgba(0, 0, 0, 0.5) 100%),
    radial-gradient(ellipse at center, transparent 48%, rgba(0, 0, 0, 0.5) 100%);
}

/* WebGL unavailable — visible red glow fallback */
.page-aurora-host.aurora-fallback,
.aurora-container.aurora-fallback {
  background:
    radial-gradient(ellipse 120% 70% at 50% -10%, rgba(239, 68, 68, 0.45) 0%, transparent 55%),
    radial-gradient(ellipse 80% 50% at 20% 0%, rgba(255, 255, 255, 0.12) 0%, transparent 50%),
    #000000;
}

body.dash-page .user-dash-card {
  position: relative;
  z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
  .page-aurora-backdrop {
    animation: none;
    opacity: 1;
  }

  .page-aurora-backdrop .page-aurora-host .aurora-canvas {
    display: none;
  }
}
