* {
*     margin: 0;
*         padding: 0;
*             box-sizing: border-box;
*             }
*
*             body {
*                 font-family: 'Segoe UI', 'Poppins', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
*                     min-height: 100vh;
*                         background: radial-gradient(ellipse at 20% 30%, #0a0a2a, #050510);
*                             overflow: hidden;
*                                 position: relative;
*                                 }
*
*/* 背景动画 - 确保不阻挡点击 */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.5;
    animation: float 20s ease-in-out infinite;
    pointer-events: none;
}

.orb1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #667eea, #764ba2);
    top: -200px;
    right: -200px;
    animation-delay: 0s;
}

.orb2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #00d2ff, #3a7bd5);
    bottom: -150px;
    left: -150px;
    animation-delay: 5s;
}

.orb3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, #f093fb, #f5576c);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 10s;
    opacity: 0.3;
}

.grid-lines {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(102, 126, 234, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(102, 126, 234, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

/* 登录卡片容器 */
.login-container {
    position: relative;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    backdrop-filter: blur(2px);
}

.login-card {
    position: relative;
    z-index: 20;
    background: rgba(20, 20, 50, 0.85);
    backdrop-filter: blur(20px);
    border-radius: 32px;
    padding: 48px 40px;
    width: 450px;
    max-width: 90%;
    border: 1px solid rgba(102, 126, 234, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(102, 126, 234, 0.1) inset;
    transition: all 0.3s ease;
}

.login-card:hover {
    border-color: rgba(102, 126, 234, 0.6);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.6), 0 0 20px rgba(102, 126, 234, 0.2);
}

/* 头部 */
.login-header {
    text-align: center;
    margin-bottom: 40px;
}

.logo-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2), rgba(118, 75, 162, 0.2));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(102, 126, 234, 0.5);
}

.login-header h1 {
    font-size: 26px;
    font-weight: 600;
    background: linear-gradient(135deg, #fff, #a0a0ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.subtitle {
    color: rgba(200, 200, 255, 0.6);
    font-size: 12px;
    letter-spacing: 2px;
}

/* 表单 - 确保可点击 */
.login-form {
    margin-bottom: 30px;
    position: relative;
    z-index: 25;
}

.input-group {
    position: relative;
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.input-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(102, 126, 234, 0.6);
    transition: all 0.3s;
    pointer-events: none;
    z-index: 26;
}

.input-group input {
    width: 100%;
    padding: 14px 16px 14px 42px;
    background: rgba(10, 10, 30, 0.8);
    border: none;
    border-radius: 12px;
    font-size: 15px;
    color: #fff;
    transition: all 0.3s;
    outline: none;
    position: relative;
    z-index: 25;
    pointer-events: auto !important;
}

.input-group input:focus {
    background: rgba(10, 10, 30, 0.9);
    border: 1px solid rgba(102, 126, 234, 0.5);
}

.input-group input:focus + .input-border,
.input-group input:not(:placeholder-shown) + .input-border {
    width: 100%;
}

.input-border {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transition: width 0.3s;
    border-radius: 2px;
    pointer-events: none;
}

.input-group input:focus ~ .input-icon {
    color: #667eea;
}

/* 验证码组 */
.captcha-group {
    gap: 10px;
}

.captcha-group input {
    flex: 1;
    width: auto;
}

.captcha-code {
    width: 100px;
    height: 46px;
    background: linear-gradient(135deg, #1a1a3a, #0a0a2a);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: bold;
    letter-spacing: 6px;
    font-family: monospace;
    color: #667eea;
    cursor: pointer;
    border: 1px solid rgba(102, 126, 234, 0.3);
    transition: all 0.3s;
    pointer-events: auto !important;
}

.captcha-code span {
    display: inline-block;
}

.captcha-code:hover {
    border-color: #667eea;
    transform: scale(1.02);
}

.refresh-captcha {
    width: 40px;
    height: 46px;
    background: rgba(102, 126, 234, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    color: rgba(102, 126, 234, 0.7);
    pointer-events: auto !important;
}

.refresh-captcha:hover {
    background: rgba(102, 126, 234, 0.4);
    color: #fff;
    transform: rotate(180deg);
}

/* 登录按钮 */
.login-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
    margin-top: 20px;
    pointer-events: auto !important;
    z-index: 30;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.btn-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
    pointer-events: none;
}

.login-btn:hover .btn-glow {
    left: 100%;
}

/* 底部 */
.login-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    padding-top: 20px;
    border-top: 1px solid rgba(102, 126, 234, 0.2);
    color: rgba(200, 200, 255, 0.5);
    font-size: 12px;
    position: relative;
    z-index: 20;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #28a745;
    border-radius: 50%;
    box-shadow: 0 0 8px #28a745;
    animation: pulse 2s infinite;
}

.version {
    margin-left: auto;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

/* 错误提示 */
.error-message {
    background: rgba(220, 53, 69, 0.2);
    border: 1px solid rgba(220, 53, 69, 0.5);
    border-radius: 10px;
    padding: 10px;
    margin-bottom: 20px;
    color: #ff6b6b;
    font-size: 13px;
    text-align: center;
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 25;
}

/* 响应式 */
@media (max-width: 500px) {
    .login-card {
        padding: 30px 25px;
    }
    
    .login-header h1 {
        font-size: 22px;
    }
    
    .captcha-group input {
        width: 120px;
    }
    
    .captcha-code {
        width: 80px;
        font-size: 18px;
        letter-spacing: 3px;
    }
}

/* 粒子效果 */
.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(102, 126, 234, 0.5);
    border-radius: 50%;
    pointer-events: none;
}

/* 确保所有可交互元素都可点击 */
input, button, .captcha-code, .refresh-captcha, .login-btn {
    cursor: pointer;
}

input {
    cursor: text;
}

/* 修复placeholder颜色 */
input::placeholder {
    color: rgba(200, 200, 255, 0.4);
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-background-clip: text;
    -webkit-text-fill-color: #fff;
    transition: background-color 5000s ease-in-out 0s;
    background-color: rgba(10, 10, 30, 0.8) !important;
}
