:root {
    --primary-color: #6c63ff;
    --secondary-color: #f5f5f5;
    --accent-color: #4d44ff;
    --text-color: #333333;
    --light-text: #ffffff;
    --muted-text: #6c757d;
    --border-color: #e0e0e0;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 5px 15px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.12);
    --transition: all 0.3s ease;
    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 20px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--secondary-color);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* 登录卡片容器 */
.login-container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

.login-card {
    display: flex;
    background-color: var(--light-text);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    min-height: 600px;
}

/* 左侧内容区域 */
.login-content {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
}

/* 品牌标识 */
.brand {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.logo {
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
}

.logo-icon {
    color: white;
    font-size: 20px;
}

.brand-name {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-color);
}

.brand-name span {
    color: var(--primary-color);
}

/* 欢迎文本 */
.welcome-text {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 8px;
}

.welcome-subtext {
    color: var(--muted-text);
    margin-bottom: 30px;
}

/* 表单样式 */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-color);
}

.input-group {
    position: relative;
    display: flex;
    align-items: center;
    background-color: var(--secondary-color);
    border-radius: var(--border-radius-sm);
    transition: var(--transition);
}

.input-group:focus-within {
    box-shadow: 0 0 0 2px var(--primary-color);
}

.input-group.has-error {
    box-shadow: 0 0 0 2px var(--danger-color);
}

.input-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    color: var(--muted-text);
}

.input-group input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 15px 15px 15px 0;
    font-size: 16px;
    outline: none;
    color: var(--text-color);
}

.input-group input::placeholder {
    color: #aaa;
}

.password-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.forgot-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
}

.forgot-link:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

.password-toggle {
    padding: 0 15px;
    cursor: pointer;
    color: var(--muted-text);
    transition: var(--transition);
}

.password-toggle:hover {
    color: var(--primary-color);
}

/* 错误文本 */
.error-text {
    color: var(--danger-color);
    font-size: 12px;
    margin-top: 5px;
    display: block;
}

/* 复选框样式 */
.form-check {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
}

.form-check-input {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    accent-color: var(--primary-color);
    cursor: pointer;
}

.form-check-label {
    font-size: 14px;
    color: var(--muted-text);
    cursor: pointer;
}

/* 登录按钮 */
.login-btn {
    width: 100%;
    padding: 15px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius-sm);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: 20px;
}

.login-btn:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.login-btn:active {
    transform: translateY(0);
}

/* 分隔线 */
.divider {
    position: relative;
    text-align: center;
    margin: 20px 0;
}

.divider::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background-color: var(--border-color);
}

.divider span {
    position: relative;
    background-color: white;
    padding: 0 15px;
    font-size: 14px;
    color: var(--muted-text);
}

/* 社交登录按钮 */
.social-login {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.social-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.social-btn i {
    font-size: 20px;
}

.social-btn.wechat i {
    color: #07C160;
}

.social-btn.qq i {
    color: #12B7F5;
}

.social-btn.weibo i {
    color: #E6162D;
}

.social-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-sm);
}

/* 注册文本 */
.register-text {
    text-align: center;
    font-size: 14px;
    color: var(--muted-text);
}

.register-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.register-link:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

/* 右侧装饰区域 */
.login-decoration {
    flex: 1;
    background: linear-gradient(135deg, #6c63ff 0%, #3b32e0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.decoration-content {
    text-align: center;
    padding: 40px;
    color: white;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.decoration-image {
    width: 250px;
    height: 250px;
    background-image: url('https://cdn.pixabay.com/photo/2018/09/24/08/31/pixel-cells-3699334_1280.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    margin-bottom: 30px;
}

.decoration-text h2 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 10px;
}

.decoration-text p {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 30px;
}

.decoration-dots {
    display: flex;
    gap: 8px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    transition: var(--transition);
}

.dot.active {
    background-color: white;
    transform: scale(1.2);
}

/* 通知样式 */
#notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.notification {
    padding: 15px 20px;
    margin-bottom: 10px;
    border-radius: var(--border-radius-sm);
    color: white;
    display: flex;
    align-items: center;
    box-shadow: var(--shadow-md);
    animation: slideIn 0.3s ease-out forwards;
    max-width: 350px;
}

.notification.success {
    background-color: var(--success-color);
}

.notification.error {
    background-color: var(--danger-color);
}

.notification.warning {
    background-color: var(--warning-color);
    color: #333;
}

.notification.info {
    background-color: var(--info-color);
}

.notification-icon {
    margin-right: 10px;
    font-size: 18px;
}

.notification-message {
    flex: 1;
}

.notification-close {
    margin-left: 10px;
    cursor: pointer;
    opacity: 0.7;
    transition: var(--transition);
}

.notification-close:hover {
    opacity: 1;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* 底部版权和备案信息 */
.copyright-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 10px 0;
    text-align: center;
    font-size: 12px;
    color: var(--muted-text);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
    z-index: 100;
}

.copyright-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.copyright-footer p {
    margin: 0;
    line-height: 1.5;
}

.icp-info {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 5px;
}

.icp-info a {
    display: flex;
    align-items: center;
    color: var(--muted-text);
    text-decoration: none;
    transition: var(--transition);
}

.icp-info a:hover {
    color: var(--primary-color);
}

.icp-info img {
    height: 14px;
    margin-right: 5px;
}

.divider-dot {
    display: inline-block;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background-color: var(--muted-text);
    margin: 0 10px;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .login-card {
        flex-direction: column-reverse;
    }
    
    .login-decoration {
        min-height: 300px;
    }
}

@media (max-width: 576px) {
    .login-content {
        padding: 30px 20px;
    }
    
    .welcome-text {
        font-size: 24px;
    }
    
    .decoration-image {
        width: 180px;
        height: 180px;
    }
    
    .decoration-text h2 {
        font-size: 24px;
    }
    
    .copyright-footer {
        padding: 8px 0;
    }
    
    .icp-info {
        flex-direction: column;
        gap: 5px;
    }
    
    .divider-dot {
        display: none;
    }
}

/* 警告框样式 */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: var(--border-radius-sm);
    font-size: 14px;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.alert-link {
    font-weight: 600;
    text-decoration: none;
}

.alert-link:hover {
    text-decoration: underline;
}

/* 服务条款链接 */
.terms-link {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.terms-link:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

/* 列表组样式 */
.list-group {
    border-radius: var(--border-radius-sm);
    overflow: hidden;
}

.list-group-item {
    padding: 12px 15px;
    border-color: var(--border-color);
    transition: var(--transition);
}

.list-group-item:hover {
    background-color: var(--secondary-color);
}

.list-group-item-action {
    color: var(--text-color);
}

.list-group-item-action:hover {
    color: var(--primary-color);
}