/* ============================================================
   Signup pages — animation layers only
   Scoped to .page-signup, .page-signup-landing
   ============================================================ */

.page-signup .auth-page,
.page-signup-landing .auth-page {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.page-signup .auth-page__ambient,
.page-signup-landing .auth-page__ambient {
  position: absolute;
  inset: 0;
  left: 50%;
  width: 100vw;
  margin-left: -50vw;
  pointer-events: none;
  z-index: 0;
}

.page-signup .auth-page__card,
.page-signup-landing .auth-page__shell {
  position: relative;
  z-index: 1;
}

.page-signup .auth-page__ambient .core-glow,
.page-signup-landing .auth-page__ambient .core-glow {
  left: 50%;
  top: 42%;
  transform: translate(-50%, -50%);
  z-index: 1;
  animation: signupGlowFloat 8s ease-in-out infinite;
}

@keyframes signupGlowFloat {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.14; }
  50% { transform: translate(-47%, -54%) scale(1.1); opacity: 0.22; }
}

.page-signup .auth-page__ambient .galaxy-container,
.page-signup-landing .auth-page__ambient .galaxy-container {
  z-index: 0;
  animation: signupGalaxyDrift 22s ease-in-out infinite alternate;
}

@keyframes signupGalaxyDrift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(1.5%, -2%) scale(1.04); }
}

.page-signup .auth-page__ambient .star-layer,
.page-signup-landing .auth-page__ambient .star-layer {
  animation-duration: 38s;
  opacity: 0.58;
}

.page-signup .auth-page__ambient .star-layer.warp,
.page-signup-landing .auth-page__ambient .star-layer.warp {
  animation-duration: 7s;
  opacity: 0.32;
}

.page-signup .signup__float-pixels,
.page-signup-landing .signup__float-pixels {
  position: absolute;
  inset: -8%;
  z-index: 2;
  overflow: hidden;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 82% 68% at 50% 44%, #000 14%, transparent 72%);
}

.page-signup .hero__float-pixel-wrap,
.page-signup-landing .hero__float-pixel-wrap,
.page-signup .hero__float-pixel-repel,
.page-signup-landing .hero__float-pixel-repel,
.page-signup .hero__float-pixel,
.page-signup-landing .hero__float-pixel {
  pointer-events: none;
}

.page-signup .hero__float-pixel-wrap,
.page-signup-landing .hero__float-pixel-wrap {
  position: absolute;
  display: block;
  will-change: transform;
}

.page-signup .hero__float-pixel-repel,
.page-signup-landing .hero__float-pixel-repel {
  display: block;
  will-change: transform;
}

.page-signup .hero__float-pixel,
.page-signup-landing .hero__float-pixel {
  position: relative;
  display: block;
  border-radius: 3px;
  box-shadow: 0 2px 10px rgba(26, 20, 40, 0.1);
  will-change: transform, opacity;
  transform-origin: center center;
  backface-visibility: hidden;
}

.page-signup .hero__float-pixel--soft,
.page-signup-landing .hero__float-pixel--soft {
  filter: blur(1.5px);
  border-radius: 4px;
}

.page-signup .hero__float-pixel--tiny,
.page-signup-landing .hero__float-pixel--tiny {
  border-radius: 2px;
  opacity: 0.85;
}

@media (prefers-reduced-motion: reduce) {
  .page-signup .auth-page__ambient .star-layer,
  .page-signup-landing .auth-page__ambient .star-layer,
  .page-signup .auth-page__ambient .galaxy-container,
  .page-signup-landing .auth-page__ambient .galaxy-container,
  .page-signup .auth-page__ambient .core-glow,
  .page-signup-landing .auth-page__ambient .core-glow {
    animation: none !important;
  }

  .page-signup .signup__float-pixels,
  .page-signup-landing .signup__float-pixels {
    display: none;
  }
}
