/* 全局设定 */
body { 
    margin: 0; 
    padding: 0; 
    height: 100vh; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; 
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #020617 100%); 
    color: #fff; 
    overflow: hidden; 
}

/* 背景光斑动画优化 */
.glow { 
    position: absolute; 
    border-radius: 50%; 
    pointer-events: none; 
    filter: blur(100px); /* 增加模糊度，使光效更柔和 */
    opacity: 0.5; 
}
.g1 { 
    width: 700px; height: 700px;
    top: -200px; left: -200px; 
    background: radial-gradient(circle, rgba(59,130,246,0.4) 0%, rgba(0,0,0,0) 70%); 
    animation: float 15s infinite alternate ease-in-out; 
}
.g2 { 
    width: 600px; height: 600px;
    bottom: -150px; right: -150px; 
    background: radial-gradient(circle, rgba(139,92,246,0.4) 0%, rgba(0,0,0,0) 70%); 
    animation: float 18s infinite alternate-reverse ease-in-out; 
}
@keyframes float { 
    0% { transform: translate(0, 0); } 
    100% { transform: translate(40px, 60px); } 
}

/* 卡片主体：增强高级感的核心 */
.card { 
    position: relative; 
    z-index: 10; 
    width: 380px; 
    padding: 60px 50px; 
    background: rgba(255, 255, 255, 0.02); /* 降低背景透明度 */
    backdrop-filter: blur(20px); 
    -webkit-backdrop-filter: blur(20px); 
    border-radius: 24px; 
    /* 复杂的边框和阴影组合，制造立体玻璃感 */
    border: 1px solid rgba(255, 255, 255, 0.08); 
    border-top: 1px solid rgba(255, 255, 255, 0.15); /* 顶部高光 */
    border-left: 1px solid rgba(255, 255, 255, 0.15); /* 左侧高光 */
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.6),
        inset 0 0 30px rgba(255, 255, 255, 0.02); /* 内发光 */
    text-align: center; 
    animation: fadeInUp 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 头部设计 */
.card-header { margin-bottom: 40px; }
.logo-icon {
    width: 50px; height: 50px;
    margin: 0 auto 15px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 10px 20px -5px rgba(59, 130, 246, 0.5);
}
.logo-icon svg { width: 28px; height: 28px; stroke: #fff; }

.card h2 { 
    margin: 0; 
    font-weight: 500; 
    letter-spacing: 2px; 
    color: #fff; 
    font-size: 26px; 
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}
.subtitle {
    margin-top: 8px;
    color: rgba(255,255,255,0.5);
    font-size: 13px;
    font-weight: 300;
}

/* 输入框组：带图标的布局 */
.input-group { 
    position: relative; 
    margin-bottom: 35px; 
    display: flex;
    align-items: center;
}
.icon-wrapper {
    position: absolute;
    left: 0;
    color: rgba(255,255,255,0.4);
    display: flex; align-items: center;
    transition: 0.3s;
}

.icon-wrapper svg { width: 20px; height: 20px; }

.cf-wrapper {
    margin: 25px 0 15px;
    display: flex;
    justify-content: center;
    opacity: 0.9;
}

.cf-wrapper iframe,
.cf-wrapper .cf-turnstile {
    filter: invert(1) hue-rotate(180deg) saturate(0%) brightness(0.7) contrast(1.4) !important;
    
    /* 边框光晕：把原本的亮蓝改成很淡的蓝灰色，且范围缩小 */
    box-shadow: 0 0 8px rgba(148, 163, 184, 0.2) !important;
    
    border-radius: 6px !important;
    
    /* 增加透明度，让背后的卡片质感透出来 */
    opacity: 0.7 !important;
    mix-blend-mode: normal !important; /* 关掉混合模式，防止颜色乱跑 */
    
    transition: all 0.3s ease;
}

.cf-wrapper:hover iframe,
.cf-wrapper:hover .cf-turnstile {
    /* 鼠标放上去时，饱和度恢复到 50%，泛起淡淡的蓝光 */
    filter: invert(1) hue-rotate(180deg) saturate(50%) brightness(0.9) contrast(1.4) !important;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.4) !important;
    opacity: 1 !important;
}

input { 
    width: 100%; 
    padding: 12px 0 12px 35px; /* 左侧留出图标位置 */
    font-size: 15px; 
    color: #fff; 
    background: transparent; 
    border: none; 
    border-bottom: 1px solid rgba(255, 255, 255, 0.15); 
    outline: none; 
    transition: 0.3s; 
    font-weight: 300;
    letter-spacing: 1px;
}
input::placeholder { color: rgba(255, 255, 255, 0.25); letter-spacing: 1px; }

/* 底部线条动画 */
.bar { 
    position: absolute; display: block; width: 0; height: 1px; bottom: 0; left: 0; 
    background: #60a5fa; transition: width 0.4s ease; 
    box-shadow: 0 0 10px rgba(96, 165, 250, 0.6);
}

/* 聚焦状态 */
input:focus { border-bottom-color: transparent; }
input:focus ~ .bar { width: 100%; }
input:focus ~ .icon-wrapper { color: #60a5fa; transform: translateY(-2px); }

/* 按钮优化 */
button { 
    width: 100%; 
    padding: 16px; 
    background: linear-gradient(95deg, #3b82f6, #6366f1); /* 稍微调整渐变色 */
    color: white; 
    border: none; 
    border-radius: 12px; 
    font-size: 15px; 
    font-weight: 600;
    letter-spacing: 2px;
    cursor: pointer; 
    transition: all 0.3s ease; 
    margin-top: 10px; 
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 25px -5px rgba(59, 130, 246, 0.4);
}
button:hover { 
    transform: translateY(-2px) scale(1.02); 
    box-shadow: 0 15px 30px -5px rgba(59, 130, 246, 0.6); 
}
button:active { transform: scale(0.98); }

/* 错误提示美化 */
.error { 
    color: #fca5a5; 
    font-size: 13px; 
    margin-bottom: 25px; 
    background: rgba(239, 68, 68, 0.15); 
    border: 1px solid rgba(239, 68, 68, 0.2);
    padding: 12px; 
    border-radius: 10px; 
    display: flex; align-items: center; justify-content: center; gap: 8px;
    animation: shake 0.4s ease-in-out;
}
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}
