* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%);
    min-height: 100vh;
    overflow: hidden;
}

.login-container {
    display: flex;
    height: 100vh;
    width: 100vw;
}

/* 左侧品牌区域 */
.left-section {
    flex: 1;
    background: linear-gradient(135deg, #ffffff 0%, #f0f4f8 100%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.left-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(91, 125, 177, 0.05) 100%);
}

.brand-header {
    position: relative;
    z-index: 1;
}

.logo-small {
    max-width: 180px;
    height: auto;
}

.brand-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.logo-large {
    max-width: 350px;
    height: auto;
}

.brand-footer {
    position: relative;
    z-index: 1;
    padding-top: 20px;
    border-top: 1px solid #e0e4e8;
}

.brand-footer p {
    color: #8c95a1;
    font-size: 12px;
}

/* 右侧登录区域 */
.right-section {
    width: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: linear-gradient(135deg, #f8f9fb 0%, #ffffff 100%);
    border-left: 1px solid #e8ecf0;
}

.login-box {
    width: 100%;
    max-width: 360px;
}

.login-title {
    font-size: 18px;
    font-weight: 500;
    color: #2c3e50;
    margin-bottom: 30px;
}

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

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d0d5dd;
    border-radius: 24px;
    font-size: 14px;
    color: #344054;
    background: #ffffff;
    transition: all 0.3s ease;
    outline: none;
}

.form-group input::placeholder {
    color: #98a2b3;
}

.form-group input:focus {
    border-color: #5B7DB1;
    box-shadow: 0 0 0 3px rgba(91, 125, 177, 0.1);
}

.form-actions {
    margin-top: 24px;
}

.links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-bottom: 16px;
    gap: 8px;
}

.links a {
    color: #5B7DB1;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s ease;
}

.links a:hover {
    color: #4a6a94;
    text-decoration: underline;
}

.divider {
    color: #d0d5dd;
}

.login-btn {
    width: 140px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #2c3e50 0%, #1a252f 100%);
    color: #ffffff;
    border: none;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    float: right;
}

.login-btn:hover {
    background: linear-gradient(135deg, #1a252f 0%, #0f1419 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(44, 62, 80, 0.3);
}

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

.login-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.modal-content {
    background: #ffffff;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateY(-30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid #e8ecf0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 18px;
    font-weight: 500;
    color: #2c3e50;
}

.close {
    font-size: 24px;
    color: #98a2b3;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: #344054;
}

.modal-body {
    padding: 24px;
}

.modal-body .form-group {
    margin-bottom: 16px;
}

.modal-body .form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    font-size: 14px;
    color: #344054;
    outline: none;
    transition: all 0.3s ease;
}

.modal-body .form-group input:focus {
    border-color: #5B7DB1;
    box-shadow: 0 0 0 3px rgba(91, 125, 177, 0.1);
}

.submit-btn {
    width: 100%;
    padding: 12px 24px;
    background: linear-gradient(135deg, #5B7DB1 0%, #4a6a94 100%);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 8px;
}

.submit-btn:hover {
    background: linear-gradient(135deg, #4a6a94 0%, #3d5a7d 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(91, 125, 177, 0.3);
}

.forgot-message {
    color: #667085;
    font-size: 14px;
    line-height: 1.6;
    text-align: center;
    padding: 20px 0;
}

/* 错误提示 */
.error-message {
    color: #dc3545;
    font-size: 13px;
    margin-top: 8px;
    text-align: center;
    display: none;
}

.error-message.show {
    display: block;
}

.success-message {
    color: #28a745;
    font-size: 13px;
    margin-top: 8px;
    text-align: center;
    display: none;
}

.success-message.show {
    display: block;
}

/* 响应式设计 */
@media (max-width: 960px) {
    .login-container {
        flex-direction: column;
    }
    
    .left-section {
        min-height: 200px;
        padding: 20px;
    }
    
    .logo-large {
        width: 250px;
        height: 50px;
    }
    
    .right-section {
        width: 100%;
        padding: 40px 20px;
        border-left: none;
        border-top: 1px solid #e8ecf0;
    }
}

@media (max-width: 480px) {
    .right-section {
        padding: 30px 20px;
    }
    
    .login-box {
        max-width: 100%;
    }
}
