/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    background: url('../images/login-bg.svg') no-repeat center center fixed;
    background-size: cover;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    position: relative;
    overflow: hidden;
}

/* 登录页面样式 - 左右分栏布局 */
.login-container {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 8%;
    position: relative;
    z-index: 1;
}

/* 左侧装饰区域 - 使用SVG背景 */
.login-decoration {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
}

.decoration-content {
    position: relative;
    width: 100%;
    max-width: 700px;
    height: 500px;
    background: url('../images/login-bg.svg') no-repeat center center;
    background-size: contain;
}

/* 右侧登录表单 */
.login-form-wrapper {
    flex: 0 0 450px;
    max-width: 450px;
    margin-left: auto;
}

.login-form {
    background: white;
    border-radius: 4px;
    padding: 55px 45px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    text-align: center;
    position: relative;
    z-index: 1;
}

.logo {
    margin-bottom: 30px;
}

.logo i {
    font-size: 36px;
    color: #1890ff;
    margin-bottom: 15px;
    display: inline-block;
}

.logo h1 {
    color: #1890ff;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.input-group {
    position: relative;
    margin-bottom: 25px;
}

.input-group i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #bfbfbf;
    font-size: 16px;
}

.input-group input {
    width: 100%;
    padding: 14px 15px 14px 45px;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: #fafafa;
}

.input-group input:focus {
    outline: none;
    border-color: #1890ff;
    background: white;
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.1);
}

.login-btn {
    width: 100%;
    padding: 14px;
    background: #1890ff;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    letter-spacing: 2px;
}

.login-btn:hover {
    background: #40a9ff;
    box-shadow: 0 4px 12px rgba(24, 144, 255, 0.3);
}

.login-btn:active {
    background: #096dd9;
}

.footer {
    margin-top: 30px;
    color: #8c8c8c;
    font-size: 12px;
    text-align: center;
}

.footer p {
    margin: 0;
}

.social-login {
    margin-bottom: 15px;
}

.wechat-login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #1677FF;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(22, 119, 255, 0.2);
}

.wechat-login:hover {
    background: #4096FF;
    box-shadow: 0 4px 10px rgba(22, 119, 255, 0.3);
    transform: translateY(-2px);
}

.wechat-login i {
    color: white;
    font-size: 18px;
}

/* 企业微信扫码弹窗 */
.wework-qr-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.wework-qr-overlay.active {
    display: flex;
}

.wework-qr-modal {
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    position: relative;
    max-width: 360px;
    width: 90%;
}

.wework-qr-close {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 22px;
    color: #8c8c8c;
    cursor: pointer;
    transition: color 0.3s;
    background: none;
    border: none;
    line-height: 1;
}

.wework-qr-close:hover {
    color: #333;
}

.wework-qr-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
}

.wework-qr-subtitle {
    font-size: 13px;
    color: #8c8c8c;
    margin-bottom: 20px;
}

.wework-qr-code {
    display: inline-block;
    padding: 10px;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
}

.wework-qr-code img {
    display: block;
}

.wework-qr-loading {
    color: #8c8c8c;
    font-size: 14px;
    padding: 40px 0;
}

.wework-qr-tip {
    margin-top: 16px;
    font-size: 12px;
    color: #bfbfbf;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .login-decoration {
        display: none;
    }
    
    .login-form-wrapper {
        flex: 1;
        max-width: 450px;
        margin: 0 auto;
    }
    
    .login-container {
        justify-content: center;
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .login-form {
        padding: 40px 30px;
    }
    
    .logo h1 {
        font-size: 18px;
    }
}