* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
}

body {
    background-color: #f8fafc;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    color: #333;
}

.login-container {
    display: flex;
    width: 900px;
    height: 500px;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.login-banner {
    flex: 1;
    background-color: #f8fafc;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #333;
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.login-banner-image {
    width: 100%;
    max-width: 320px;
    margin-bottom: 20px;
}

.login-banner h2 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #333;
}

.login-banner p {
    font-size: 14px;
    text-align: center;
    line-height: 1.6;
    color: #666;
}

.login-form-container {
    flex: 1;
    padding: 40px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: #fff;
}

/* 标签页样式 */
.login-tabs {
    width: 100%;
}

.tab-header {
    display: flex;
    margin-bottom: 20px;
}

.tab-item {
    flex: 1;
    text-align: center;
    padding: 12px 0;
    font-size: 18px;
    color: #666;
    cursor: pointer;
    position: relative;
    transition: all 0.3s;
}

.tab-item.active {
    color: #ff6600;
    font-weight: 500;
}

.tab-item.active:after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 55%;
    height: 3.2px;
    background-color: #ff6600;
    border-radius: 30px;
}

.tab-content {
    position: relative;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.login-form {
    width: 100%;
}

.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-group input {
    width: 100%;
    height: 44px;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    padding: 0 15px;
    font-size: 14px;
    transition: all 0.3s;
    background-color: #f8f8f8;
}

.form-group input:focus {
    border-color: #ff6600;
    outline: none;
    background-color: #fff;
    box-shadow: 0 0 0 2px rgba(255, 102, 0, 0.1);
}

/* 验证码输入框样式 */
.verification-code {
    display: flex;
    align-items: center;
}

.verification-code input {
    flex: 1;
    margin-right: 10px;
}

.send-code-btn {
    width: 110px;
    height: 44px;
    background-color: #f8f8f8;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    color: #ff6600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.send-code-btn:hover:not(:disabled) {
    background-color: #fff;
    border-color: #ff6600;
}

.send-code-btn:disabled {
    color: #999;
    cursor: not-allowed;
}

.form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 14px;
    flex-wrap: wrap;
}

.remember-me,
.agreement {
    display: flex;
    align-items: center;
}

.remember-me input,
.agreement input {
    margin-right: 5px;
}

.forgot-password,
.forgot-account {
    color: #999;
    text-decoration: none;
    margin-left: 10px;
}

.forgot-password:hover,
.forgot-account:hover {
    color: #ff6600;
}

.login-button {
    width: 100%;
    height: 44px;
    background-color: #ff6600;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
}

.login-button:hover {
    background-color: #e55c00;
    box-shadow: 0 4px 8px rgba(255, 102, 0, 0.2);
}

.login-options {
    margin-top: 15px;
    text-align: center;
    font-size: 14px;
    color: #999;
}

.register-link {
    color: #ff6600;
    text-decoration: none;
}

.qrcode-image img {
    width: 100%;
    height: 100%;
}

.qrcode-tip {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.qrcode-status {
    display: none;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 15px;
    border-radius: 4px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
}

/* 协议勾选框样式 */
.agreement-policy {
    display: flex;
    align-items: center;
}

.agreement-policy input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border: 1px solid #ddd;
    border-radius: 3px;
    margin-right: 8px;
    position: relative;
    cursor: pointer;
    vertical-align: middle;
    transition: all 0.3s;
}

.agreement-policy input[type="checkbox"]:checked {
    background-color: #ff6600;
    border-color: #ff6600;
}

.agreement-policy input[type="checkbox"]:checked:after {
    content: '';
    position: absolute;
    left: 4px;
    top: 1px;
    width: 5px;
    height: 9px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.policy-link {
    color: #ff6600;
    text-decoration: none;
}

.policy-link:hover {
    text-decoration: underline;
}

/* 禁用状态的登录按钮 */
.login-button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
    box-shadow: none;
}

/* 确保两种登录表单高度一致 */
.tab-pane {
    min-height: 280px;
}

/* 响应式设计 */
@media (max-width: 900px) {
    .login-container {
        width: 100%;
        height: auto;
        flex-direction: column;
    }

    .login-banner {
        padding: 20px;
    }

    .login-form-container {
        padding: 20px;
    }
}

.scan-login-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

.qrcode-container {
    width: 180px;
    height: 180px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    position: relative;
}

.qrcode-container img {
    max-width: 100%;
    max-height: 100%;
}

.qrcode-container .scanned {
    filter: blur(3px);
}

.qrcode-loading {
    color: #666;
}

.scan-status {
    width: 100%;
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    gap: 8px;
}

.scan-status i {
    font-size: 40px;
}

.scan-status p {
    color: #1f1f1f;
    font-size: 16px;
}

.scan-tip {
    color: #000;
    font-size: 15px;
    font-weight: bold;
}

.refresh-btn {
    color: #003eb3;
    font-weight: bold;
    cursor: pointer;
    font-size: 14px;
}