/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
}

body {
    background-color: #f5f7fa;
    color: #333;
    height: 100vh;
    overflow: hidden;
}

/* 登录容器 */
.login-container {
    display: flex;
    height: 100vh;
}

/* 左侧区域 */
.login-left {
    flex: 1;
    background: linear-gradient(135deg, #6e8efb, #a777e3);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    position: relative;
}

.login-logo {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
}

.login-logo i {
    font-size: 3rem;
    margin-right: 1rem;
}

.login-logo h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

.login-slogan {
    text-align: center;
    margin-bottom: 3rem;
}

.login-slogan h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.login-slogan p {
    font-size: 1rem;
    opacity: 0.8;
}

.login-features {
    margin-top: 3rem;
    width: 100%;
    max-width: 300px;
}

#inadmin a {
    text-decoration: none;
    color: #fff;
    cursor: text;
}

#inadmin p {
    text-align: center;
}

.feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.feature-item i {
    font-size: 1.2rem;
    margin-right: 1rem;
    color: rgba(255, 255, 255, 0.8);
}

.login-footer {
    position: absolute;
    bottom: 2rem;
    font-size: 0.9rem;
    opacity: 0.7;
}

/* 右侧区域 */
.login-right {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.login-form-container {
    width: 100%;
    max-width: 500px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.1);
    padding: 2.5rem;
}

.login-header {
    margin-bottom: 1.5rem;
    text-align: center;
}

.login-header h2 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.login-header p {
    color: #666;
    font-size: 0.9rem;
}

/* 选项卡样式 */
.login-tabs {
    border-bottom: 1px solid #eee;
    margin-bottom: 1.5rem;
    justify-content: center;
}

.login-tabs .nav-item {
    margin: 0 0.5rem;
}

.login-tabs .nav-link {
    border: none;
    color: #999;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: all 0.3s;
}

.login-tabs .nav-link i {
    margin-right: 0.5rem;
}

.login-tabs .nav-link.active {
    color: #6e8efb;
    background-color: rgba(110, 142, 251, 0.1);
}

.login-tabs .nav-link:hover:not(.active) {
    color: #666;
    background-color: rgba(0, 0, 0, 0.05);
}

/* 表单样式 */
.login-form {
    width: 100%;
}

.form-group {
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #555;
}

.form-group label i {
    margin-right: 0.5rem;
    color: #6e8efb;
}

.form-group input {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: all 0.3s;
}

.form-group input:focus {
    border-color: #6e8efb;
    outline: none;
    box-shadow: 0 0 0 3px rgba(110, 142, 251, 0.2);
}

.form-row {
    display: flex;
    gap: 0.5rem;
}

.form-row input {
    flex: 1;
}

.sms-code-btn {
    flex: 0 0 120px;
    background: linear-gradient(to right, #6e8efb, #a777e3);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
}

.sms-code-btn:hover {
    background: linear-gradient(to right, #5d7de8, #9666d8);
    box-shadow: 0 3px 10px rgba(110, 142, 251, 0.3);
}

.sms-code-btn:disabled {
    background: #ddd;
    cursor: not-allowed;
    box-shadow: none;
}

/* 密码输入框 */
.password-input {
    position: relative;
}

.show-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 1rem;
}

.show-password:hover {
    color: #6e8efb;
}

/* 表单选项 */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.remember-me {
    display: flex;
    align-items: center;
}

.remember-me input {
    margin-right: 0.5rem;
}

.forgot-password {
    color: #6e8efb;
    text-decoration: none;
}

.forgot-password:hover {
    text-decoration: underline;
}

/* 用户协议 */
.form-agreement {
    margin: 1.5rem 0;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
}

.form-agreement input {
    margin-right: 0.5rem;
}

.form-agreement a {
    color: #6e8efb;
    text-decoration: none;
}

.form-agreement a:hover {
    text-decoration: underline;
}

/* 登录按钮 */
.login-btn {
    width: 100%;
    padding: 0.8rem;
    background: linear-gradient(to right, #6e8efb, #a777e3);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 1rem;
}

.login-btn:hover {
    background: linear-gradient(to right, #5d7de8, #9666d8);
    box-shadow: 0 3px 10px rgba(110, 142, 251, 0.3);
}

/* 注册链接 */
.login-register {
    text-align: center;
    font-size: 0.9rem;
    color: #666;
}

.login-register a {
    color: #6e8efb;
    text-decoration: none;
}

.login-register a:hover {
    text-decoration: underline;
}

/* 扫码登录 */
.scan-container {
    text-align: center;
}

.qrcode-container {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto 1.5rem;
}

.qrcode-img {
    width: 100%;
    height: 100%;
    border: 1px solid #eee;
    border-radius: 5px;
}

.qrcode-mask {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #666;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s;
}

.qrcode-mask i {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.qrcode-mask p {
    font-size: 0.9rem;
}

.qrcode-container:hover .qrcode-mask {
    opacity: 1;
}

.scan-tip {
    color: #666;
    margin-bottom: 1.5rem;
}

.scan-tip i {
    color: #09bb07;
    margin: 0 0.3rem;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .login-container {
        flex-direction: column;
    }
    
    .login-left {
        padding: 1.5rem;
        flex: none;
        height: auto;
    }
    
    .login-logo {
        margin-bottom: 1rem;
    }
    
    .login-slogan h2 {
        font-size: 1.5rem;
    }
    
    .login-features {
        display: none;
    }
    
    .login-footer {
        position: static;
        margin-top: 1.5rem;
    }
    
    .login-right {
        padding: 1.5rem;
    }
    
    .login-form-container {
        padding: 1.5rem;
    }
}

@media (max-width: 576px) {
    .form-row {
        flex-direction: column;
        gap: 1rem;
    }
    
    .sms-code-btn {
        width: 100%;
    }
    
    .login-tabs .nav-link {
        padding: 0.5rem;
        font-size: 0.9rem;
    }
}

/* 算术验证码样式 */
.math-captcha {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1.5rem;
}

.math-captcha-text {
    font-size: 1rem;
    font-weight: bold;
    padding: 0.5rem;
    background: #f5f5f5;
    border-radius: 5px;
    white-space: nowrap;
}

.math-captcha-input {
    flex: 1;
    min-width: 100px;
}

.refresh-captcha {
    cursor: pointer;
    color: #6e8efb;
    margin-left: 5px;
    font-size: 1rem;
    transition: color 0.3s;
}

.refresh-captcha:hover {
    color: #5d7de8;
}

/* 修改表单组样式，去掉默认的margin-bottom */
.form-group.math-captcha-group {
    margin-bottom: 0;
}