/* 登录页面样式 */

.login-body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: linear-gradient(135deg, #e8f2ff 0%, #d1e4ff 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-container {
    width: 100%;
    max-width: 1200px;
    padding: 20px;
}

.login-wrapper {
    display: flex;
    background-color: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(26, 86, 219, 0.15);
    min-height: 700px;
}

/* 左侧品牌区域 */
.login-brand {
    flex: 1;
    background: linear-gradient(135deg, #1a56db 0%, #1e40af 100%);
    color: white;
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.brand-logo {
    margin-bottom: 40px;
}

.brand-logo .logo-img {
    height: 60px;
    width: auto;
    border-radius: 8px;
}

.brand-content h1 {
    font-size: 36px;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: white;
}

.brand-subtitle {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 30px 0;
    font-weight: 500;
}

.brand-description {
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.brand-features {
    margin-top: 60px;
}

.feature {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
}

.feature i {
    font-size: 24px;
    color: rgba(255, 255, 255, 0.9);
    margin-right: 15px;
    margin-top: 5px;
}

.feature h4 {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 5px 0;
    color: white;
}

.feature p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    line-height: 1.5;
}

/* 右侧登录表单 */
.login-form-container {
    flex: 1;
    padding: 60px 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-form-wrapper {
    width: 100%;
    max-width: 400px;
}

.form-header {
    text-align: center;
    margin-bottom: 40px;
}

.form-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 10px 0;
}

.form-header p {
    font-size: 16px;
    color: #64748b;
    margin: 0;
}

/* 登录表单 */
.login-form {
    width: 100%;
}

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

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

.form-group label i {
    color: #1a56db;
}

.input-group {
    position: relative;
}

.input-group input {
    width: 100%;
    padding: 16px 20px 16px 50px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 16px;
    color: #1e293b;
    background-color: #f8fafc;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.input-group input:focus {
    outline: none;
    border-color: #1a56db;
    background-color: white;
    box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.1);
}

.input-group input::placeholder {
    color: #94a3b8;
}

.input-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 18px;
}

.password-toggle {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 18px;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

.password-toggle:hover {
    color: #1a56db;
}

/* 表单选项 */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: #4b5563;
    user-select: none;
}

.checkbox-label input {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #cbd5e1;
    border-radius: 4px;
    margin-right: 10px;
    position: relative;
    transition: all 0.3s ease;
}

.checkbox-label input:checked + .checkmark {
    background-color: #1a56db;
    border-color: #1a56db;
}

.checkbox-label input:checked + .checkmark::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.forgot-password {
    color: #1a56db;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.forgot-password:hover {
    color: #1e40af;
    text-decoration: underline;
}

/* 登录按钮 */
.login-btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #1a56db 0%, #1e40af 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    margin-bottom: 30px;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(26, 86, 219, 0.3);
}

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

/* 分割线 */
.divider {
    display: flex;
    align-items: center;
    margin: 30px 0;
    color: #94a3b8;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background-color: #e2e8f0;
}

.divider span {
    padding: 0 15px;
    font-size: 14px;
}

/* 社交登录 */
.social-login {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.social-btn {
    padding: 16px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    background-color: white;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.social-btn:hover {
    border-color: #cbd5e1;
    background-color: #f8fafc;
}

.social-btn:active {
    transform: translateY(1px);
}

.google-btn {
    color: #4b5563;
}

.wechat-btn {
    color: #07c160;
}

.social-btn i {
    font-size: 18px;
}

/* 表单页脚 */
.form-footer {
    text-align: center;
    margin-top: 30px;
}

.form-footer p {
    font-size: 14px;
    color: #64748b;
    margin: 10px 0;
}

.form-footer a {
    color: #1a56db;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.form-footer a:hover {
    color: #1e40af;
    text-decoration: underline;
}

.copyright {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 20px;
}

/* 登录成功提示 */
.success-message {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease-out;
}

.success-content {
    background-color: white;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    animation: slideUp 0.3s ease-out;
}

.success-content i {
    font-size: 60px;
    color: #10b981;
    margin-bottom: 20px;
}

.success-content h3 {
    font-size: 24px;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 10px 0;
}

.success-content p {
    font-size: 16px;
    color: #64748b;
    margin: 0 0 20px 0;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f3f4f6;
    border-top-color: #1a56db;
    border-radius: 50%;
    margin: 0 auto;
    animation: spin 1s linear infinite;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 响应式设计 */
@media (max-width: 992px) {
    .login-wrapper {
        flex-direction: column;
        min-height: auto;
    }
    
    .login-brand {
        padding: 40px 30px;
    }
    
    .login-form-container {
        padding: 40px 30px;
    }
    
    .brand-content h1 {
        font-size: 28px;
    }
    
    .brand-subtitle {
        font-size: 18px;
    }
}

@media (max-width: 576px) {
    .login-container {
        padding: 10px;
    }
    
    .login-wrapper {
        border-radius: 15px;
    }
    
    .login-brand {
        padding: 30px 20px;
    }
    
    .login-form-container {
        padding: 30px 20px;
    }
    
    .form-header h2 {
        font-size: 24px;
    }
    
    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .social-login {
        gap: 10px;
    }
    
    .social-btn {
        padding: 14px;
    }
}

/* 错误状态 */
.input-group.error input {
    border-color: #ef4444;
    background-color: #fef2f2;
}

.input-group.error .input-icon {
    color: #ef4444;
}

.error-message {
    color: #ef4444;
    font-size: 12px;
    margin-top: 5px;
    display: none;
}

.input-group.error + .error-message {
    display: block;
}

/* 成功状态 */
.input-group.success input {
    border-color: #10b981;
    background-color: #f0fdf4;
}

.input-group.success .input-icon {
    color: #10b981;
}