/* 登录落地页 · 浅色流动极光渐变背景 */
.aurora-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: linear-gradient(135deg, #f4f8ff 0%, #faf5ff 45%, #f1fbff 100%);
  opacity: 0;
  transition: opacity 1.1s ease;
}
.aurora-bg.is-visible {
  opacity: 1;
}
.aurora-bg .blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  will-change: transform;
}
.aurora-bg .b1 {
  width: 62vmax;
  height: 62vmax;
  top: -22%;
  left: -14%;
  background: radial-gradient(circle at 35% 35%, rgba(104, 178, 255, 0.80) 0%, rgba(104, 178, 255, 0) 62%);
  animation: aurora-drift-1 26s ease-in-out infinite;
}
.aurora-bg .b2 {
  width: 56vmax;
  height: 56vmax;
  top: 18%;
  right: -18%;
  background: radial-gradient(circle at 60% 40%, rgba(181, 146, 255, 0.72) 0%, rgba(181, 146, 255, 0) 62%);
  animation: aurora-drift-2 32s ease-in-out infinite;
}
.aurora-bg .b3 {
  width: 52vmax;
  height: 52vmax;
  bottom: -22%;
  left: 22%;
  background: radial-gradient(circle at 50% 50%, rgba(255, 150, 196, 0.72) 0%, rgba(255, 150, 196, 0) 62%);
  animation: aurora-drift-3 30s ease-in-out infinite;
}
.aurora-bg .b4 {
  width: 46vmax;
  height: 46vmax;
  top: 6%;
  left: 38%;
  background: radial-gradient(circle at 50% 50%, rgba(120, 228, 206, 0.66) 0%, rgba(120, 228, 206, 0) 60%);
  animation: aurora-drift-4 24s ease-in-out infinite;
}
@keyframes aurora-drift-1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(14vw, 9vh) scale(1.18); }
}
@keyframes aurora-drift-2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-12vw, 12vh) scale(1.15); }
}
@keyframes aurora-drift-3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(10vw, -14vh) scale(1.22); }
}
@keyframes aurora-drift-4 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-16vw, -7vh) scale(1.10); }
}

/* 让应用内容浮在极光之上（登录卡片保持白底可读） */
#root {
  position: relative;
  z-index: 1;
}

/* 控制台：让极光从半透明表面透出（卡片 --card 仍不透明，保证可读） */
body:has(:is(div[data-variant="inset"], div[data-variant="sidebar"])) {
  --background: rgba(255, 255, 255, 0.82);
  --sidebar: rgba(246, 247, 251, 0.80);
}

@media (prefers-reduced-motion: reduce) {
  .aurora-bg .blob { animation: none; }
}
