/* Shared signup page background — matches Personal Detail page exactly */
:root {
  --pi-bg-deep: var(--dvc-bg-dark);
  --pi-navy: var(--dvc-bg-secondary);
  --pi-navy-mid: var(--dvc-card-bg);
  --pi-gold-light: var(--dvc-soft-purple);
}

html.pi-page-root,
body.pi-page {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  font-family: Arial, Helvetica, sans-serif;
  color: #FFFFFF;
  background: var(--pi-bg-deep);
  overflow-x: hidden;
}

.pi-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 70% 55% at 22% 50%, rgba(33, 21, 44, 0.55) 0%, transparent 68%),
    linear-gradient(180deg, var(--dvc-bg-dark) 0%, var(--dvc-bg-secondary) 48%, var(--dvc-card-bg) 72%, var(--dvc-bg-dark) 100%);
  opacity: 0;
  transition: opacity 1s ease;
}

.pi-bg.is-visible {
  opacity: 1;
}

.pi-deco {
  position: absolute;
  pointer-events: none;
}

.pi-deco--curve-tl {
  top: 0;
  left: 0;
  width: 420px;
  height: 320px;
  opacity: 0;
  transition: opacity 1.1s ease 0.2s;
}

.pi-deco--curve-br {
  bottom: 0;
  right: 0;
  width: 380px;
  height: 260px;
  opacity: 0;
  transition: opacity 1.1s ease 0.3s;
}

.pi-bg.is-visible .pi-deco--curve-tl,
.pi-bg.is-visible .pi-deco--curve-br {
  opacity: 1;
}

.pi-deco--curve-tl svg,
.pi-deco--curve-br svg {
  width: 100%;
  height: 100%;
}

.pi-deco--dots-tl {
  top: 32px;
  left: 36px;
  width: 68px;
  height: 68px;
  background-image: radial-gradient(rgba(168, 85, 247, 0.45) 1.5px, transparent 1.5px);
  background-size: 9px 9px;
  opacity: 0;
  transition: opacity 1s ease 0.4s;
}

.pi-deco--dots-br {
  bottom: 40px;
  right: 44px;
  width: 60px;
  height: 60px;
  background-image: radial-gradient(rgba(168, 85, 247, 0.38) 1.5px, transparent 1.5px);
  background-size: 8px 8px;
  opacity: 0;
  transition: opacity 1s ease 0.5s;
}

.pi-bg.is-visible .pi-deco--dots-tl,
.pi-bg.is-visible .pi-deco--dots-br {
  opacity: 0.35;
}

.pi-deco--spark {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--pi-gold-light);
  box-shadow: 0 0 8px rgba(168, 85, 247, 0.85);
  opacity: 0;
  transition: opacity 0.8s ease;
}

.pi-bg.is-visible .pi-deco--spark {
  opacity: 0.7;
}

.pi-deco--spark-1 { top: 16%; left: 10%; transition-delay: 0.55s; }
.pi-deco--spark-2 { top: 24%; left: 6%; transition-delay: 0.7s; }
.pi-deco--spark-3 { bottom: 18%; right: 12%; transition-delay: 0.6s; }
.pi-deco--spark-4 { bottom: 28%; right: 7%; transition-delay: 0.75s; }

.pi-deco--wave {
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background:
    linear-gradient(180deg, transparent 0%, rgba(23, 16, 32, 0.35) 100%),
    repeating-linear-gradient(90deg, rgba(168, 85, 247, 0.04) 0, rgba(168, 85, 247, 0.04) 1px, transparent 1px, transparent 52px);
  opacity: 0;
  transition: opacity 1s ease 0.35s;
}

.pi-bg.is-visible .pi-deco--wave {
  opacity: 0.5;
}

@media (prefers-reduced-motion: reduce) {
  .pi-bg,
  .pi-deco--curve-tl,
  .pi-deco--curve-br,
  .pi-deco--dots-tl,
  .pi-deco--dots-br,
  .pi-deco--spark,
  .pi-deco--wave {
    opacity: 1;
    transform: none;
    transition: none;
    animation: none;
  }
}
