/* login.css - 登录页面专用样式，不影响主应用 */
body {
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    margin: 0;
    padding: 0;
    overflow: hidden;
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
}
@media (max-width: 1000px) {
    body {
        height: auto;
        min-height: 100vh;
        overflow: auto;
        padding: 20px;
    }
}

.login-wrapper {
    width: 1200px;
    max-width: 95vw;
    height: 680px;
    max-height: 90vh;
    background: white;
    border-radius: 32px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.3);
    display: flex;
    overflow: hidden;
}

/* 左侧宣传区 */
.promo-section {
    flex: 1 1 55%;
    background: linear-gradient(145deg, #f8fafc 0%, #e9ecef 100%);
    padding: 1.5rem 1.8rem;
    display: flex;
    flex-direction: column;
}
.promo-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 0.8rem;
}
.promo-logo {
    width: 52px;
    height: 52px;
    object-fit: contain;
}
.promo-title h1 {
    font-size: 1.9rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
    line-height: 1.2;
}
.promo-title p {
    font-size: 0.85rem;
    color: #6c757d;
    margin: 0;
}
.promo-tagline {
    font-size: 1rem;
    font-weight: 500;
    color: #3498db;
    margin-bottom: 1rem;
    text-align: center;
}

/* 功能网格 */
.feature-grid {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -8px;
    flex: 1;
    overflow-y: auto;
}
.feature-item {
    flex: 0 0 calc(50% - 16px);
    margin: 0 8px 12px;
    display: flex;
    gap: 8px;
}
.feature-icon {
    width: 38px;
    height: 38px;
    background: #3498db;
    color: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.feature-text h4 {
    font-size: 0.92rem;
    font-weight: 600;
    margin: 0 0 3px 0;
    color: #2c3e50;
}
.feature-text p {
    font-size: 0.73rem;
    color: #5a6a7a;
    margin: 0;
    line-height: 1.3;
}

/* 右侧登录区 */
.login-section {
    flex: 0 0 45%;
    background: white;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 登录卡片 */
.login-card {
    background: white;
    border-radius: 24px;
    padding: 2.5rem 2rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    max-width: 400px;
    width: 100%;
    transition: transform 0.2s;
}
.login-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.2);
}
.login-card h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.3rem;
}
.login-card .subtitle {
    color: #6c757d;
    margin-bottom: 2rem;
    font-size: 1rem;
}

/* 表单控件 */
.login-card .form-control {
    border-radius: 40px;
    padding: 0.8rem 1.2rem;
    border: 1px solid #e2e8f0;
    font-size: 0.95rem;
    transition: all 0.2s;
}
.login-card .form-control:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52,152,219,0.15);
    outline: none;
}

/* 登录按钮 */
.btn-login {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border-radius: 40px;
    padding: 12px;
    font-weight: 600;
    border: none;
    width: 100%;
    transition: all 0.3s;
    font-size: 1.1rem;
    box-shadow: 0 8px 16px rgba(52,152,219,0.3);
    cursor: pointer;
}
.btn-login:hover {
    background: linear-gradient(135deg, #2980b9, #1f6a8a);
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(52,152,219,0.4);
}
.btn-login:active {
    transform: translateY(0);
    box-shadow: 0 4px 8px rgba(52,152,219,0.3);
}

.register-link {
    color: #3498db;
    font-weight: 500;
    text-decoration: none;
}
.register-link:hover {
    text-decoration: underline;
}

.error-message {
    border-radius: 40px;
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
}
.browser-tip {
    margin-top: 1.5rem;
    padding: 0.7rem;
    background: #f8f9fa;
    border-radius: 12px;
    font-size: 0.8rem;
    color: #6c757d;
    text-align: center;
    border: 1px solid #e9ecef;
}

/* 验证码样式（放大数字） */
.captcha-group {
    display: flex;
    gap: 10px;
}
.captcha-group .form-control {
    flex: 1;
}
.captcha-question {
    margin-top: 8px;
    font-size: 1.2rem;
    font-weight: 500;
    color: #2c3e50;
    background: #e9ecef;
    padding: 6px 12px;
    border-radius: 30px;
    display: inline-block;
    text-align: center;
    width: auto;
}
.fa-sync-alt {
    transition: transform 0.3s ease;
}
#refreshCaptchaBtn:active .fa-sync-alt {
    transform: rotate(180deg);
}
.feature-item {
    transition: transform 0.2s, background 0.2s;
    padding: 6px;
    border-radius: 16px;
}
.feature-item:hover {
    transform: translateX(4px);
    background: rgba(52,152,219,0.05);
}
.feature-grid::-webkit-scrollbar {
    width: 4px;
}
.feature-grid::-webkit-scrollbar-track {
    background: #e9ecef;
    border-radius: 4px;
}
.feature-grid::-webkit-scrollbar-thumb {
    background: #b0c4de;
    border-radius: 4px;
}
body {
    background: linear-gradient(135deg, #1a2a3a 0%, #2c3e50 50%, #3498db 100%);
    background-size: 200% 200%;
    animation: bgMove 15s ease infinite;
}
@keyframes bgMove {
    0% { background-position: 0% 0%; }
    50% { background-position: 100% 100%; }
    100% { background-position: 0% 0%; }
}

.login-card {
    backdrop-filter: blur(2px);
    background: rgba(255,255,255,0.98);
    transition: all 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}
.login-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.25);
}