/* 登录页面样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    background: linear-gradient(135deg, #0a0e27 0%, #1a1f4a 100%);
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* 粒子背景 */
#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
}

/* 登录容器 */
.login-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 400px;
    padding: 0 20px;
}

/* 登录卡片 */
.login-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    padding: 40px;
    text-align: center;
    transition: all 0.3s ease;
}

.login-card:hover {
    box-shadow: 0 12px 40px rgba(0, 212, 255, 0.15);
    border-color: rgba(0, 212, 255, 0.3);
}

/* 登录头部 */
.login-header {
    margin-bottom: 30px;
}

.logo {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #00d4ff, #7b61ff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
    animation: pulse 2s infinite;
}

.logo i {
    font-size: 40px;
    color: white;
}

.login-header h2 {
    color: white;
    font-size: 24px;
    margin-bottom: 5px;
}

.login-header p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

/* 表单样式 */
.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 8px;
    font-size: 14px;
}

.form-group label i {
    margin-right: 8px;
    color: #00d4ff;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    color: #333;
    font-size: 14px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.form-control:focus {
    outline: none;
    border-color: #00d4ff;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.4);
    background: white;
}

.form-control::placeholder {
    color: #999;
}

/* 验证码容器 */
.captcha-container {
    display: flex;
    gap: 10px;
}

.captcha-container .form-control {
    flex: 1;
}

.captcha-image {
    width: 100px;
    height: 45px;
    border-radius: 8px;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* 登录按钮 */
.btn-login {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #00d4ff, #7b61ff);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 212, 255, 0.4);
}

.btn-login:active {
    transform: translateY(0);
}

.btn-login span {
    position: relative;
    z-index: 2;
}

.btn-login::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s;
}

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

/* 错误信息 */
.error-message {
    margin-top: 15px;
    padding: 10px;
    background: rgba(255, 70, 70, 0.2);
    border: 1px solid rgba(255, 70, 70, 0.4);
    border-radius: 8px;
    color: #ff6b6b;
    font-size: 14px;
}

/* 版权信息 */
.copyright {
    margin-top: 20px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
}

/* 动画 */
@keyframes pulse {
    0% {
        box-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
    }
    50% {
        box-shadow: 0 0 30px rgba(0, 212, 255, 0.8);
    }
    100% {
        box-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .login-card {
        padding: 30px 20px;
    }
    
    .logo {
        width: 60px;
        height: 60px;
    }
    
    .logo i {
        font-size: 30px;
    }
    
    .login-header h2 {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .login-container {
        padding: 0 15px;
    }
    
    .login-card {
        padding: 25px 15px;
    }
}