/* 重置和基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans SC', '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;
    color: #333;
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* 登录包装器 */
.login-wrapper {
    display: flex;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    min-height: 700px;
    position: relative;
}

/* 左侧装饰区 */
.login-left {
    flex: 1;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    padding: 60px 40px;
    color: white;
    position: relative;
    overflow: hidden;
}

.login-left::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.3;
}

.logo-section {
    margin-bottom: 60px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.logo i {
    font-size: 3.5rem;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
}

.logo h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.login-left h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 10px;
    opacity: 0.9;
}

.slogan {
    font-size: 1.1rem;
    opacity: 0.8;
    font-weight: 300;
}

/* 功能列表 */
.feature-list {
    margin: 60px 0;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 35px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.feature-item i {
    font-size: 2.2rem;
    min-width: 50px;
    text-align: center;
    color: #4facfe;
    background: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.feature-item h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: white;
}

.feature-item p {
    font-size: 0.95rem;
    opacity: 0.9;
    font-weight: 300;
}

/* 引用部分 */
.quote {
    margin-top: 40px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    border-left: 5px solid white;
    position: relative;
}

.quote i:first-child {
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 1.5rem;
    opacity: 0.7;
}

.quote p {
    font-size: 1.2rem;
    font-style: italic;
    padding-left: 30px;
    line-height: 1.8;
}

/* 右侧登录表单 */
.login-right {
    flex: 1;
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #f8fafc;
    position: relative;
}

.login-form-wrapper {
    max-width: 420px;
    width: 100%;
    margin: 0 auto;
}

.login-header {
    text-align: center;
    margin-bottom: 50px;
}

.login-header h2 {
    font-size: 2.2rem;
    color: #1e293b;
    font-weight: 700;
    margin-bottom: 10px;
    background: linear-gradient(90deg, #4facfe, #00f2fe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-header p {
    color: #64748b;
    font-size: 1.1rem;
    font-weight: 400;
}

/* 表单样式 */
.login-form {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
}

.form-group {
    margin-bottom: 25px;
}

.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-icon i {
    position: absolute;
    left: 20px;
    color: #94a3b8;
    font-size: 1.1rem;
    z-index: 2;
}

.input-with-icon input {
    width: 100%;
    padding: 18px 20px 18px 55px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    font-family: 'Noto Sans SC', sans-serif;
    color: #1e293b;
    background: #f8fafc;
    transition: all 0.3s ease;
}

.input-with-icon input:focus {
    outline: none;
    border-color: #4facfe;
    background: white;
    box-shadow: 0 0 0 4px rgba(79, 172, 254, 0.1);
}

.input-with-icon input::placeholder {
    color: #94a3b8;
}

.toggle-password {
    position: absolute;
    right: 15px;
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 5px;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.toggle-password:hover {
    color: #4facfe;
}

/* 表单选项 */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    font-size: 0.95rem;
}

.checkbox-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    color: #64748b;
    user-select: none;
}

.checkbox-container input {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #cbd5e1;
    border-radius: 5px;
    margin-right: 10px;
    position: relative;
    transition: all 0.3s ease;
}

.checkbox-container input:checked + .checkmark {
    background: #4facfe;
    border-color: #4facfe;
}

.checkbox-container input:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.forgot-password {
    color: #4facfe;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.forgot-password:hover {
    color: #00f2fe;
    text-decoration: underline;
}

/* 登录按钮 */
.login-btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(79, 172, 254, 0.3);
    font-family: 'Noto Sans SC', sans-serif;
}

.login-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(79, 172, 254, 0.4);
}

.login-btn:active {
    transform: translateY(0);
}

.login-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* 分割线 */
.divider {
    display: flex;
    align-items: center;
    margin: 30px 0;
    color: #94a3b8;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

.divider span {
    padding: 0 20px;
    font-size: 0.9rem;
    background: white;
}

/* 社交登录 */
.social-login {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.social-btn {
    flex: 1;
    padding: 15px;
    border: 2px solid #e2e8f0;
    background: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    font-weight: 500;
    color: #475569;
    font-family: 'Noto Sans SC', sans-serif;
}

.social-btn:hover {
    border-color: #4facfe;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.social-btn.wechat {
    border-color: #2dd4bf;
    color: #2dd4bf;
}

.social-btn.wechat:hover {
    background: #f0fdfa;
}

.social-btn.phone {
    border-color: #8b5cf6;
    color: #8b5cf6;
}

.social-btn.phone:hover {
    background: #f5f3ff;
}

.social-btn i {
    font-size: 1.2rem;
}

/* 注册链接 */
.register-link {
    text-align: center;
    color: #64748b;
    font-size: 0.95rem;
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid #f1f5f9;
}

.register-link a {
    color: #4facfe;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.register-link a:hover {
    color: #00f2fe;
    text-decoration: underline;
}

/* 页脚 */
.login-footer {
    margin-top: 40px;
    text-align: center;
    color: #94a3b8;
    font-size: 0.9rem;
}

.login-footer p {
    margin-bottom: 15px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #4facfe;
}

/* 通知 */
.notification {
    position: fixed;
    top: 30px;
    right: 30px;
    padding: 20px 25px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateX(150%);
    transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 1000;
    border-left: 5px solid #10b981;
    max-width: 400px;
}

.notification.show {
    transform: translateX(0);
}

.notification i {
    font-size: 1.5rem;
    color: #10b981;
}

.notification.error {
    border-left-color: #ef4444;
}

.notification.error i {
    color: #ef4444;
}

#notificationText {
    font-size: 1rem;
    font-weight: 500;
    color: #1e293b;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .login-wrapper {
        flex-direction: column;
        max-width: 500px;
        margin: 0 auto;
        min-height: auto;
    }
    
    .login-left, .login-right {
        padding: 40px 30px;
    }
    
    .login-left {
        order: 2;
    }
    
    .login-right {
        order: 1;
    }
    
    .feature-list {
        margin: 40px 0;
    }
    
    .social-login {
        flex-direction: column;
    }
    
    /* 调整 logo 大小 */
    .logo h1 {
        font-size: 2rem;
    }
    
    .logo i {
        font-size: 2.5rem;
    }
    
    /* 调整表单大小 */
    .input-with-icon input {
        padding: 15px 20px 15px 50px;
    }
    
    .login-btn {
        padding: 15px;
    }
}

@media (max-width: 768px) {
    .login-wrapper {
        max-width: 100%;
        margin: 0 20px;
        border-radius: 15px;
    }
    
    .login-left, .login-right {
        padding: 30px 25px;
    }
    
    /* 调整标题大小 */
    .login-header h2 {
        font-size: 1.8rem;
    }
    
    .login-left h2 {
        font-size: 1.5rem;
    }
    
    /* 调整功能列表 */
    .feature-item {
        padding: 15px;
        margin-bottom: 25px;
    }
    
    .feature-item i {
        width: 50px;
        height: 50px;
        font-size: 1.8rem;
    }
    
    .feature-item h3 {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }
    
    .login-wrapper {
        margin: 0 10px;
        border-radius: 12px;
    }
    
    .login-left, .login-right {
        padding: 25px 20px;
    }
    
    .login-form-wrapper {
        max-width: 100%;
    }
    
    .login-form {
        padding: 30px 20px;
    }
    
    .notification {
        left: 20px;
        right: 20px;
        max-width: none;
        padding: 15px 20px;
    }
    
    /* 调整 logo 大小 */
    .logo {
        gap: 10px;
    }
    
    .logo h1 {
        font-size: 1.5rem;
    }
    
    .logo i {
        font-size: 2rem;
    }
    
    /* 调整表单大小 */
    .input-with-icon input {
        padding: 12px 15px 12px 45px;
        font-size: 0.9rem;
    }
    
    .input-with-icon i {
        font-size: 1rem;
        left: 15px;
    }
    
    .login-btn {
        padding: 12px;
        font-size: 1rem;
    }
    
    /* 调整功能列表 */
    .feature-item {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .feature-item i {
        width: 45px;
        height: 45px;
        font-size: 1.5rem;
    }
    
    /* 调整引用部分 */
    .quote {
        padding: 20px;
        margin-top: 30px;
    }
    
    .quote p {
        font-size: 1rem;
    }
    
    /* 调整统计信息 */
    .stats-info {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }
    
    .stat-item:not(:last-child) {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
        padding-bottom: 15px;
    }
    
    .stat-item h3 {
        font-size: 1.5rem;
    }
}

/* 加载动画 */
.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
    display: none;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.spinner.show {
    display: inline-block;
}

/* 简洁版登录界面样式更新 */
.role-hint {
    margin-top: 20px;
    padding: 15px;
    background: #e3f2fd;
    border-radius: 10px;
    border-left: 4px solid #2196f3;
    text-align: center;
    font-size: 0.9rem;
    color: #1565c0;
}

.role-hint i {
    color: #2196f3;
    margin-right: 8px;
}

.stats-info {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-item {
    text-align: center;
    flex: 1;
}

.stat-item:not(:last-child) {
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-item h3 {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 5px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.stat-item p {
    font-size: 0.85rem;
    opacity: 0.9;
    font-weight: 300;
}

/* 移除不需要的样式 */
.forgot-password,
.register-link,
.social-login,
.divider,
.checkbox-container {
    display: none;
}