/* ==========================================================================
   GSAP 动效系统配套样式
   覆盖：极光背景、入场过渡、交互反馈、无障碍降级
   ========================================================================== */

/* ---------- 极光背景 ---------- */
.aurora-layer {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
    contain: strict;
}

.aurora-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(42px);
    will-change: transform;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
}

/* 极光层之上保持内容可读（只提升层级，不改变原有定位方式） */
.has-aurora .image-overlay {
    z-index: 2;
}

/* ---------- 入场过渡 ---------- */
/* 首屏内容在 GSAP 接管前保持可见，避免闪烁空屏 */
.page-reveal-ready #page-reveal-wrapper {
    opacity: 1;
}

/* ---------- 交互反馈 ---------- */
.inline-captcha,
.reg-mode-card {
    will-change: transform;
}

/* 按钮按下反馈（CSS 兜底，GSAP 不可用时依然有手感） */
.btn-login:active,
.btn-back:active,
.inline-captcha:active {
    transform: scale(0.985);
}

/* ---------- 无障碍：尊重系统「减少动态效果」 ---------- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }

    .aurora-blob {
        filter: blur(48px);
    }
}

/* ---------- 移动端性能与观感 ---------- */
@media (max-width: 768px) {
    .aurora-blob {
        filter: blur(36px);
        opacity: 0.85;
    }
}
