* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html, body {
    width: 100%;
    height: 100%;
    font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background-color: #f7f9fc;
}

/* 主布局 */
.sso-login-wrap {
    width: 100%;
    min-height: 100vh;
    display: flex;
}
/* 左侧品牌区域 */
.login-left {
    flex: 1;
    background: linear-gradient(150deg, #165DFF 0%, #0E42C4 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 40px;
}
/* 背景装饰光晕 */
.login-left::before {
    content: "";
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    top: -200px;
    left: -200px;
}
.login-left::after {
    content: "";
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    bottom: -120px;
    right: -100px;
}
.left-content {
    position: relative;
    z-index: 2;
}
.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 48px;
}
.brand-logo i {
    font-size: 40px;
    color: #ffffff;
}
.brand-logo span {
    font-size: 32px;
    color: #fff;
    font-weight: 600;
    letter-spacing: 1px;
}
.brand-desc h1 {
    font-size: 38px;
    color: #fff;
    font-weight: 500;
    margin-bottom: 20px;
    line-height: 1.35;
}
.brand-desc p {
    font-size: 17px;
    color: rgba(255,255,255,0.82);
    line-height: 1.8;
}
.left-copyright {
    position: absolute;
    left: 0;
    bottom: 40px;
    width: 100%;
    text-align: center;
    z-index: 2;
    color: rgba(255,255,255,0.65);
    font-size: 13px;
}
.left-copyright a {
    color: rgba(255,255,255,0.75);
    text-decoration: none;
}
.left-copyright a:hover {
    text-decoration: underline;
}

/* 右侧表单区域 */
.login-right {
    width: 480px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}
.form-container {
    width: 100%;
    max-width: 400px;
}
.form-box {
    display: none;
}
.form-box.active {
    display: block;
    animation: fadeIn 0.3s ease;
}
@keyframes fadeIn {
    from {opacity: 0; transform: translateY(8px);}
    to {opacity: 1; transform: translateY(0);}
}
.form-header {
    margin-bottom: 36px;
}
.form-header h2 {
    font-size: 28px;
    color: #1d2129;
    font-weight: 600;
    margin-bottom: 8px;
}
.form-header p {
    color: #86909c;
    font-size: 15px;
}

/* 输入框通用 */
.input-group {
    margin-bottom: 18px;
    position: relative;
}
.form-input {
    width: 100%;
    height: 50px;
    border: 1px solid #dcdfe6;
    border-radius: 10px;
    padding: 0 16px 0 46px;
    font-size: 15px;
    transition: all 0.24s;
    background: #fff;
    outline: none;
}
.form-input:focus {
    border-color: #165DFF;
    box-shadow: 0 0 0 3px rgba(22, 93, 255, 0.12);
}
.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: #86909c;
}
.eye-toggle {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: #86909c;
    cursor: pointer;
}

/* 验证码行布局 */
.row-two {
    display: flex;
    gap: 12px;
    margin-bottom: 10px;
}
.row-two .input-group {
    flex: 1;
    margin-bottom: 0;
}
.captcha-img-box {
    width: 200px;
    height: 50px;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid #dcdfe6;
}
.captcha-img-box img {
    width: 100%;
    height: 100%;
}

/* 点选验证码输入框 */
.click-captcha-trigger {
    cursor: pointer;
}
.form-input-read {
    background-color: #fafafa;
}

/* 点选验证码弹窗 */
.click-captcha-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.55);
    z-index: 9998;
    display: none;
    align-items: center;
    justify-content: center;
}
.click-captcha-wrap {
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    width: 320px;
}
.captcha-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}
.captcha-tip-text {
    font-size:14px;
    color:#333;
}
.captcha-refresh-btn {
    color:#165DFF;
    cursor:pointer;
    font-size:14px;
}
.captcha-close-btn {
    color:#888;
    cursor:pointer;
    font-size:18px;
}
.captcha-image-box {
    width:100%;
    height:180px;
    position:relative;
    border-radius:8px;
    overflow:hidden;
    border:1px solid #eee;
}
#captchaCanvas {
    width:100%;
    height:100%;
    display:block;
}
.captcha-point-mark {
    position:absolute;
    width:24px;
    height:24px;
    border-radius:50%;
    border:2px solid #165DFF;
    background:rgba(22,93,255,0.15);
    transform:translate(-50%,-50%);
    pointer-events:none;
}
.captcha-bottom-desc {
    font-size:12px;
    color:#999;
    margin-top:10px;
    text-align:center;
}

/* 复选框与行 */
.row-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 12px 0 26px;
}
.checkbox-wrap {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: #4e5969;
}
.checkbox-ui {
    width: 18px;
    height: 18px;
    border: 1px solid #dcdfe6;
    border-radius: 4px;
    margin-right: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.checkbox-ui.checked {
    background-color: #165DFF;
    border-color: #165DFF;
}
.checkbox-ui.checked::after {
    content: "✓";
    color: #fff;
    font-size: 13px;
}
.link-text {
    color: #165DFF;
    font-size: 14px;
    cursor: pointer;
    background: none;
    border: none;
}
.link-text:hover {
    color: #0E42C4;
    text-decoration: underline;
}

/* 主按钮 */
.primary-btn {
    width: 100%;
    height: 50px;
    border-radius: 10px;
    border: none;
    background: #165DFF;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.24s;
}
.primary-btn:hover {
    background: #0E42C4;
}
.primary-btn:disabled {
    background: #86a8e7;
    cursor: not-allowed;
}
.sms-btn {
    width: 120px;
    flex-shrink: 0;
}
.tip-line {
    text-align: center;
    margin-top: 28px;
    font-size: 14px;
    color: #86909c;
}

/* 全局消息弹窗 */
.message-popup {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 24px;
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s;
}
.message-popup.show {
    opacity: 1;
}
.msg-success {background-color: #00b42a;}
.msg-warning {background-color: #ff7d00;}
.msg-error {background-color: #f53f3f;}

/* 协议弹窗样式 */
.agreement-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.55);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
}
.agreement-wrap {
    width: 520px;
    max-width: 92%;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
}
.agreement-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #eee;
}
.agreement-header h3 {
    font-size:18px;
    color:#222;
    margin:0;
}
.agreement-close {
    font-size:20px;
    color:#888;
    cursor:pointer;
}
.agreement-body {
    padding:20px;
    max-height: 60vh;
    overflow-y: auto;
    line-height:1.8;
    font-size:14px;
    color:#444;
}
.agreement-link {
    color:#165DFF;
    cursor:pointer;
}
.agreement-row {
    display:flex;
    align-items:flex-start;
    gap:8px;
    margin:10px 0 24px;
}
.agreement-check {
    width:18px;
    height:18px;
    margin-top:3px;
    cursor:pointer;
}

/* 移动端适配 */
@media (max-width: 992px) {
    .sso-login-wrap {
        flex-direction: column;
    }
    .login-left {
        min-height: 320px;
        flex: none;
    }
    .brand-logo span {
        font-size: 26px;
    }
    .brand-desc h1 {
        font-size: 28px;
    }
    .login-right {
        width: 100%;
        padding: 30px 20px;
    }
}
@media (max-width: 576px) {
    .row-two {
        flex-direction: column;
    }
    .captcha-img-box {
        width: 100%;
    }
    .sms-btn {
        width: 100%;
    }
    .click-captcha-wrap {
        width: 92%;
    }
}