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

body {
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-container {
    width: 100%;
    max-width: 1200px;
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: center;
    border: 1px solid #888;

}

.login-box {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 450px;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 10px;
}

.logo i {
    font-size: 36px;
    color: #667eea;
}

.logo h1 {
    color: #333;
    font-size: 28px;
    font-weight: 600;
}

.subtitle {
    color: #666;
    font-size: 14px;
    margin-top: 5px;
}

/* 错误消息 */
.error-message {
    background: #fee;
    border: 1px solid #fcc;
    color: #c33;
    padding: 12px 20px;
    border-radius: 10px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.error-message i {
    font-size: 18px;
}

/* 表单样式 */
.login-form {
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 500;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-group label i {
    color: #667eea;
    font-size: 16px;
}

.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 15px;
    color: #999;
    font-size: 18px;
    z-index: 1;
}

.input-with-icon input {
    width: 100%;
    padding: 15px 15px 15px 50px;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s;
    background: #f8f9fa;
}

.input-with-icon input:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.show-password {
    position: absolute;
    right: 15px;
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 18px;
    padding: 5px;
    transition: color 0.3s;
}

.show-password:hover {
    color: #667eea;
}

/* 验证码 */
.captcha-container {
    display: flex;
    gap: 15px;
    align-items: center;
}

.captcha-container .input-with-icon {
    flex: 1;
}

.captcha-image {
    display: flex;
    align-items: center;
    gap: 10px;
}

#captcha-img {
    height: 50px;
    border-radius: 8px;
    border: 2px solid #e1e5e9;
    cursor: pointer;
    transition: transform 0.3s;
}

#captcha-img:hover {
    transform: scale(1.05);
}

.refresh-captcha {
    background: #f8f9fa;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #666;
    font-size: 18px;
    transition: all 0.3s;
}

.refresh-captcha:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

/* 记住登录选择 */
.remember-select {
    width: 100%;
    padding: 15px;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    font-size: 16px;
    background: #f8f9fa;
    color: #333;
    cursor: pointer;
    transition: all 0.3s;
}

.remember-select:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* 登录按钮 */
.form-actions {
    margin-top: 30px;
}

.login-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s;
}

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

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

/* 登录页脚 */
.login-footer {
    border-top: 1px solid #eee;
    padding-top: 20px;
    text-align: center;
}

.demo-credentials {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 15px;
    text-align: left;
}

.demo-credentials h4 {
    color: #333;
    margin-bottom: 10px;
    font-size: 14px;
}

.demo-credentials p {
    color: #666;
    font-size: 13px;
    margin-bottom: 5px;
}

.demo-credentials strong {
    color: #667eea;
}

.tip {
    color: #999;
    font-size: 12px;
    margin-top: 10px;
}

/* 锁定状态 */
.login-locked {
    text-align: center;
    padding: 40px 20px;
}

.locked-icon {
    font-size: 60px;
    color: #ff6b6b;
    margin-bottom: 20px;
}

.login-locked h3 {
    color: #333;
    margin-bottom: 10px;
}

.login-locked p {
    color: #666;
    margin-bottom: 10px;
    line-height: 1.6;
}

.countdown {
    color: #ff6b6b;
    font-weight: bold;
    font-size: 20px;
}

/* 功能特点 */
.login-features {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 400px;
}

.feature {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 25px;
    border-radius: 15px;
    color: white;
    text-align: center;
    transition: transform 0.3s;
}

.feature:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.feature i {
    font-size: 40px;
    margin-bottom: 15px;
    opacity: 0.9;
}

.feature h3 {
    font-size: 20px;
    margin-bottom: 10px;
    font-weight: 500;
}

.feature p {
    font-size: 14px;
    opacity: 0.8;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .login-container {
        flex-direction: column;
        gap: 30px;
    }
    
    .login-features {
        max-width: 100%;
        flex-direction: row;
        justify-content: center;
    }
    
    .feature {
        flex: 1;
        max-width: 200px;
    }
}

@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .login-box {
        padding: 30px 25px;
    }
    
    .login-features {
        flex-direction: column;
        align-items: center;
    }
    
    .feature {
        max-width: 100%;
        width: 100%;
    }
    
    .captcha-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .captcha-image {
        justify-content: center;
        margin-top: 10px;
    }
}

@media (max-width: 480px) {
    .login-box {
        padding: 25px 20px;
    }
    
    .logo {
        flex-direction: column;
        gap: 10px;
    }
    
    .logo h1 {
        font-size: 24px;
    }
    
    .feature {
        padding: 20px;
    }
    
    .feature h3 {
        font-size: 18px;
    }
}