/* 首页样式 */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #f8f9fa;
}

.index-container {
    padding: 20px;
    text-align: center;
}

.index-header {
    background-color: #007bff;
    color: white;
    padding: 30px;
    margin-bottom: 30px;
    border-radius: 5px;
}

.index-features {
    margin-top: 40px;
}

.feature-card {
    margin-bottom: 30px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.feature-card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    transform: translateY(-5px);
    transition: all 0.3s ease;
}

/* 自定义样式 - 侧边栏 */
.sidebar {
    min-height: 100vh;
    background-color: #2c3e50;
    color: white;
}

.sidebar a {
    color: white;
    text-decoration: none;
    display: block;
    padding: 10px 15px;
    transition: background-color 0.3s;
}

.sidebar a:hover {
    background-color: #34495e;
}

.sidebar .active {
    background-color: #16a085;
}

/* 卡片样式 */
.card {
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* 统计卡片样式 */
.stats-card {
    text-align: center;
}

.stats-card .icon {
    font-size: 3rem;
    margin-bottom: 10px;
}

/* 最近活动样式 */
.recent-activity {
    max-height: 300px;
    overflow-y: auto;
}

/* 模块卡片样式 */
.module-card {
    height: 100%;
}

.module-card i {
    font-size: 2rem;
    margin-bottom: 10px;
}

/* 登录页面样式 */
body.login-page {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* 左右分布布局容器 */
.login-layout {
    display: flex;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    max-width: 1000px;
    width: 100%;
    min-height: 600px;
}

/* 左侧品牌展示区域 */
.login-left {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 40px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.login-left .brand-logo {
    width: 100%;
    height: auto;
    min-height: 350px;
    background: transparent;
    border-radius: 15px;
    display: block;
    margin: 0 0 15px 0;
    padding: 0;
    border: none;
    overflow: hidden;
}

.login-left .brand-logo img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    display: block;
    border-radius: 15px;
}

.login-left .brand-logo i {
    font-size: 48px;
    color: white;
}

.login-left h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
}

.login-left p {
    font-size: 16px;
    line-height: 1.6;
    opacity: 0.9;
    margin-bottom: 0;
    max-width: 300px;
}

/* 右侧登录表单区域 */
.login-right {
    flex: 1;
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-right .login-logo {
    text-align: center;
    margin-bottom: 10px;
}

.login-right .login-logo img {
    display: block;
    margin: 0 auto;
}

.login-right .login-title {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    text-align: center;
}

.login-right .login-subtitle {
    font-size: 14px;
    color: #666;
    margin-bottom: 40px;
    text-align: center;
}

.login-body {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

/* 旧的登录容器样式（兼容单栏布局） */
.login-container {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    max-width: 450px;
    width: 100%;
    display: none; /* 隐藏旧的单栏布局 */
}
.form-group {
    margin-bottom: 25px;
}
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}
.form-control {
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    padding: 12px 15px;
    font-size: 16px;
    transition: all 0.3s ease;
    width: 100%; /* 与登录按钮保持一致的宽度 */
}
.form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}
.form-check {
    margin-bottom: 25px;
}
.btn-login {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 8px;
    padding: 12px;
    font-size: 18px;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* 响应式设计 - 移动端适配 */
@media (max-width: 768px) {
    body.login-page {
        padding: 10px;
    }
    
    .login-layout {
        min-height: auto;
        max-width: 100%;
    }
    
    /* 在移动端隐藏左侧内容 */
    .login-left {
        display: none;
    }
    
    /* 调整右侧登录区域在移动端的布局 */
    .login-right {
        flex: 1 1 100%;
        padding: 40px 20px;
    }
    
    /* 优化表单元素在移动端的显示效果 */
    .login-right .login-title {
        font-size: 20px;
    }
    
    .login-right .login-subtitle {
        font-size: 13px;
    }
    
    .form-control {
        font-size: 15px;
        padding: 10px 12px;
    }
    
    .btn-login {
        font-size: 16px;
        padding: 10px;
    }
}
.btn-login:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}
.alert {
    margin-bottom: 20px;
    border-radius: 8px;
}
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
    margin-right: 10px;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}