/* ============================================
   AnimeHub 登录页 - 赛博朋克 × 极光渐变
   ============================================ */

:root {
    --neon-pink: #ff2d95;
    --neon-blue: #00f0ff;
    --neon-purple: #bf00ff;
    --aurora-1: #ff8ccf;
    --aurora-2: #6aa8ff;
    --aurora-3: #a855f7;
    --aurora-4: #22d3ee;
    --dark-bg: #0a0a1a;
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.15);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body.auth-page {
    min-height: 100vh;
    background: var(--dark-bg);
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    overflow-x: hidden;
    position: relative;
    /* 防止闪屏：初始隐藏，JS加载完成后显示 */
    opacity: 0;
    animation: pageFadeIn 0.4s ease 0.1s forwards;
}

@keyframes pageFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ==================== 粒子星空背景 ==================== */
.bg-stage {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.bg-slide {
    position: absolute;
    inset: 0;
    background: var(--bg-url) center/cover no-repeat;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    filter: brightness(0.4) saturate(1.2);
}

.bg-slide.active {
    opacity: 1;
}

/* 极光叠加层 */
.bg-stage::after {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse 80% 50% at 20% 40%, rgba(255,45,149,0.15), transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 20%, rgba(0,240,255,0.12), transparent 45%),
        radial-gradient(ellipse 70% 60% at 50% 80%, rgba(191,0,255,0.1), transparent 50%);
    animation: auroraShift 15s ease-in-out infinite;
    pointer-events: none;
}

@keyframes auroraShift {
    0%, 100% { 
        background-position: 0% 0%, 100% 0%, 50% 100%;
        opacity: 0.8;
    }
    33% { 
        background-position: 30% 20%, 70% 30%, 40% 80%;
        opacity: 1;
    }
    66% { 
        background-position: 10% 40%, 90% 10%, 60% 90%;
        opacity: 0.9;
    }
}

/* 粒子效果 */
.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    animation: particleFloat 8s ease-in-out infinite;
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.4);
}

@keyframes particleFloat {
    0%, 100% { transform: translateY(0) translateX(0); opacity: 0.3; }
    50% { transform: translateY(-30px) translateX(10px); opacity: 0.8; }
}

/* ==================== 顶部滚动横幅 ==================== */
.auth-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 36px;
    background: linear-gradient(90deg, 
        rgba(255,45,149,0.2), 
        rgba(0,240,255,0.2), 
        rgba(191,0,255,0.2),
        rgba(255,45,149,0.2));
    background-size: 300% 100%;
    animation: bannerGradient 8s linear infinite;
    display: flex;
    align-items: center;
    overflow: hidden;
    z-index: 100;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
}

@keyframes bannerGradient {
    0% { background-position: 0% 50%; }
    100% { background-position: 300% 50%; }
}

.marquee {
    white-space: nowrap;
    animation: marqueeScroll 25s linear infinite;
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-shadow: 0 0 10px rgba(0,240,255,0.5);
}

@keyframes marqueeScroll {
    0% { transform: translateX(100vw); }
    100% { transform: translateX(-100%); }
}

/* ==================== 左右箭头 ==================== */
.side-arrow {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    z-index: 50;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.side-arrow:hover {
    background: rgba(255,45,149,0.2);
    border-color: var(--neon-pink);
    color: #fff;
    box-shadow: 0 0 20px rgba(255,45,149,0.4), inset 0 0 20px rgba(255,45,149,0.1);
    transform: translateY(-50%) scale(1.1);
}

.side-arrow.left { left: 24px; }
.side-arrow.right { right: 24px; }

.side-arrow.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

/* ==================== 滑动容器 ==================== */
.auth-wrapper {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    padding-top: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.auth-slider {
    display: flex;
    width: 300%;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.auth-slide {
    flex: 0 0 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

/* ==================== 玻璃拟态登录卡片 ==================== */
.auth-card {
    width: 420px;
    max-width: 90vw;
    padding: 40px 36px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    backdrop-filter: blur(20px);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.4),
        inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

/* 霓虹边框呼吸灯 */
.auth-card::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 26px;
    background: linear-gradient(45deg, 
        var(--neon-pink), 
        var(--neon-blue), 
        var(--neon-purple), 
        var(--neon-pink));
    background-size: 400% 400%;
    animation: neonBreathe 4s ease-in-out infinite;
    z-index: -1;
    opacity: 0.6;
    filter: blur(3px);
}

@keyframes neonBreathe {
    0%, 100% { 
        background-position: 0% 50%;
        opacity: 0.4;
    }
    50% { 
        background-position: 100% 50%;
        opacity: 0.7;
    }
}

.auth-card h2 {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
    text-shadow: 0 0 20px rgba(255,45,149,0.5);
}

/* 每日名言区域 */
.daily-quote {
    text-align: center;
    margin-bottom: 28px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.quote-content {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    font-style: italic;
    margin-bottom: 8px;
}

.quote-source {
    font-size: 12px;
    color: var(--neon-blue);
    opacity: 0.8;
}

/* 表单字段 */
.field {
    margin-bottom: 20px;
}

.field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.field input {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    font-size: 15px;
    color: #fff;
    outline: none;
    transition: all 0.3s ease;
}

.field input::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.field input:focus {
    border-color: var(--neon-pink);
    background: rgba(255,45,149,0.05);
    box-shadow: 0 0 0 3px rgba(255,45,149,0.15), 0 0 20px rgba(255,45,149,0.1);
}

/* 登录按钮 */
.auth-card button#loginBtn {
    width: 100%;
    padding: 16px;
    margin-top: 8px;
    background: linear-gradient(135deg, var(--neon-pink), var(--neon-purple));
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(255,45,149,0.35);
}

.auth-card button#loginBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(255,45,149,0.5);
}

.auth-card button#loginBtn:active {
    transform: translateY(0);
}

/* 按钮光效 */
.auth-card button#loginBtn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    transform: rotate(45deg);
    animation: buttonShine 3s ease-in-out infinite;
}

@keyframes buttonShine {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}

/* 链接行 */
.link-row {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 20px;
}

.link-row a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 13px;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border-radius: 8px;
}

.link-row a:hover {
    color: var(--neon-blue);
    text-shadow: 0 0 10px var(--neon-blue);
    background: rgba(0, 240, 255, 0.08);
}

/* 页面切换过渡 - 点击链接时的效果 */
.page-transition {
    position: fixed;
    inset: 0;
    background: var(--dark-bg);
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.page-transition.active {
    opacity: 1;
    pointer-events: all;
}

/* 消息提示 */
.msg {
    text-align: center;
    margin-top: 16px;
    font-size: 13px;
    color: #ff6b6b;
    min-height: 20px;
}

/* ==================== 信息卡片（左右两侧） ==================== */
.info-card {
    width: 480px;
    max-width: 90vw;
    padding: 36px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(16px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.info-card h3 {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.info-card h3::before {
    content: '';
    width: 4px;
    height: 24px;
    background: linear-gradient(180deg, var(--neon-pink), var(--neon-blue));
    border-radius: 2px;
}

.info-card ul {
    list-style: none;
    padding: 0;
}

.info-card li {
    position: relative;
    padding: 14px 0 14px 28px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    line-height: 1.7;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.info-card li:last-child {
    border-bottom: none;
}

.info-card li::before {
    content: '◆';
    position: absolute;
    left: 0;
    color: var(--neon-blue);
    font-size: 10px;
    text-shadow: 0 0 10px var(--neon-blue);
}

/* ==================== 底部圆点指示器 ==================== */
.bg-dots {
    position: fixed;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 50;
    padding: 10px 16px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.bg-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.bg-dot:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: scale(1.2);
}

.bg-dot.active {
    width: 14px;
    height: 14px;
    background: var(--neon-pink);
    border-color: rgba(255,45,149,0.5);
    box-shadow: 0 0 15px var(--neon-pink);
}

/* ==================== 护眼提示 ==================== */
.eye-protect {
    position: fixed;
    bottom: 16px;
    right: 20px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    z-index: 50;
    display: flex;
    align-items: center;
    gap: 6px;
}

.eye-protect::before {
    content: '👁️';
    font-size: 14px;
}

/* ==================== 登录成功动画 ==================== */
.login-success-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.login-success-overlay.show {
    display: flex;
    opacity: 1;
}

.success-content {
    text-align: center;
    color: #fff;
}

.success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--neon-pink), var(--neon-purple));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    animation: successPulse 0.6s ease;
    box-shadow: 0 0 40px rgba(255,45,149,0.5);
}

@keyframes successPulse {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); opacity: 1; }
}

.success-text {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    text-shadow: 0 0 20px rgba(255,45,149,0.5);
}

.success-sub {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

/* ==================== 响应式 ==================== */
@media (max-width: 768px) {
    .side-arrow {
        width: 40px;
        height: 40px;
        font-size: 22px;
    }
    .side-arrow.left { left: 12px; }
    .side-arrow.right { right: 12px; }
    
    .auth-card, .info-card {
        padding: 28px 24px;
    }
    
    .auth-card h2 {
        font-size: 24px;
    }
    
    .info-card {
        width: 100%;
        max-width: 400px;
    }
}
