@charset "UTF-8";
/* =========================================================================
   登录 / 注册 / 找回密码 —— 居中卡片版（方角 · 蓝白 · 去装饰）
   仅本文件作用于鉴权页，控制台样式栈不参与
   ========================================================================= */

:root {
    --c-primary: #165dff;
    --c-primary-hover: #0e42d2;
    --c-primary-weak: #eef4ff;
    --c-line: #e3e9f2;
    --c-line-soft: #eef2f8;
    --c-text: #1d2129;
    --c-text-2: #4e5969;
    --c-text-3: #86909c;
    --c-text-4: #a8b1c0;
    --radius: 2px;
}

/* ---------- 页面底 ---------- */
html {
    min-height: 100%;
    background: #eef4fc;
}

body.auth-page {
    margin: 0;
    min-height: 100%;
    background: #eef4fc;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
    color: var(--c-text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.auth-page .ewy-sidebar,
body.auth-page .ewy-navbar,
body.auth-page .ewy-container-fluid,
body.auth-page .ewy-footer-Copyright {
    display: none !important;
}

body.auth-page .ewy-main-content,
body.auth-page .ewy-content,
body.auth-page .ewy-container {
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    min-height: 0 !important;
    box-shadow: none !important;
}

.login {
    position: relative;
    z-index: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* 背景：极淡的蓝白渐变 + 底部两三层柔和的弧 */
.login-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    background: linear-gradient(180deg, #fbfdff 0%, #f3f8ff 34%, #e8f1fd 66%, #dbeafb 100%);
}

.login-arc {
    position: absolute;
    left: 50%;
    border-radius: 50%;
    border: 1px solid rgba(24, 88, 196, 0.10);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.66) 0%, rgba(255, 255, 255, 0.08) 58%, rgba(196, 220, 249, 0.22) 100%);
}

.login-arc-1 {
    width: 1560px;
    height: 1560px;
    bottom: -1240px;
    margin-left: -600px;
}

.login-arc-2 {
    width: 1220px;
    height: 1220px;
    bottom: -980px;
    margin-left: -330px;
    border-color: rgba(24, 88, 196, 0.085);
}

.login-arc-3 {
    width: 880px;
    height: 880px;
    bottom: -720px;
    margin-left: -110px;
    border-color: rgba(24, 88, 196, 0.07);
}

.login-main {
    position: relative;
    z-index: 1;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: 40px 16px 88px;
    box-sizing: border-box;
}

.login-main > * {
    flex: 0 0 auto;
}

/* ---------- 卡片 ---------- */
.login-right-side {
    position: relative;
    box-sizing: border-box;
    width: 420px;
    max-width: 100%;
    margin: auto;
    padding: 34px 36px 30px;
    background: #fff;
    border: 1px solid var(--c-line);
    border-radius: var(--radius);
    box-shadow: 0 14px 36px -30px rgba(13, 45, 98, 0.6);
}

.login-right-side.wx {
    width: 780px;
}

.login-right-content {
    padding: 0;
    width: 100%;
    display: block;
}

.login-right-form {
    width: 100%;
    max-width: none;
    display: block;
    align-items: stretch;
}

.login-login-form {
    width: 100%;
}

/* 卡片顶部 LOGO */
.login-brand-head {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}

.login-brand-logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.login-brand-logo img {
    display: block;
    max-height: 40px;
    width: auto;
}

/* ---------- 标题 ---------- */
.login-title {
    margin-bottom: 20px;
}

.login-title h1 {
    margin: 0 0 6px;
    font-size: 22px;
    line-height: 30px;
    font-weight: 600;
    color: var(--c-text);
    letter-spacing: 0.2px;
}

.login-title p {
    margin: 0;
    font-size: 13px;
    line-height: 20px;
    color: var(--c-text-3);
    font-weight: 400;
}

/* ---------- 标签页 ---------- */
.login-form-content {
    position: relative;
}

.code_login-tab {
    display: flex;
    align-items: center;
    gap: 26px;
    padding-right: 132px;
    border-bottom: 1px solid var(--c-line-soft);
}

.login-tab-item {
    position: relative;
    padding: 0 0 11px;
    font-size: 15px;
    line-height: 22px;
    color: var(--c-text-2);
    cursor: pointer;
    transition: color 0.15s ease;
}

.login-tab-item:hover {
    color: var(--c-text);
}

.login-tab-item.active {
    color: var(--c-primary);
    font-weight: 600;
}

.login-tab-item.active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    background: var(--c-primary);
}

.login-tab-separate,
.transitionSwitching {
    display: none !important;
}

.text-register {
    position: absolute;
    right: 0;
    top: 0;
    font-size: 13px;
    line-height: 22px;
    color: var(--c-text-3);
    white-space: nowrap;
}

.text-register p {
    margin: 0;
}

.text-register a {
    color: var(--c-primary);
    text-decoration: none;
}

.text-register a:hover {
    color: var(--c-primary-hover);
}

/* ---------- 表单 ---------- */
.login-right-side .tab-pane {
    display: none;
}

.login-right-side .tab-pane.active {
    display: block;
}

.login-right-side form {
    margin-top: 20px;
}

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

.login-right-side label,
.login-right-side .col-form-label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    line-height: 20px;
    font-weight: 400;
    color: var(--c-text-2);
}

.login-right-side .form-control {
    display: block;
    width: 100%;
    height: 42px;
    padding: 0 12px;
    font-size: 14px;
    line-height: 40px;
    color: var(--c-text);
    background: #f7f9fc;
    border: 1px solid var(--c-line);
    border-radius: var(--radius);
    box-shadow: none;
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.login-right-side .form-control:focus {
    background: #fff;
    border-color: var(--c-primary);
    box-shadow: 0 0 0 3px rgba(22, 93, 255, 0.10);
    outline: 0;
}

.login-right-side .form-control::placeholder {
    color: var(--c-text-4);
}

.login-right-side select.form-control {
    padding-right: 26px;
    appearance: none;
    -webkit-appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, #98a3b3 50%), linear-gradient(135deg, #98a3b3 50%, transparent 50%);
    background-position: calc(100% - 16px) 18px, calc(100% - 11px) 18px;
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
}

.login-right-side .invalid-feedback {
    display: none;
    margin-top: 4px;
    font-size: 12px;
    color: #f53f3f;
}

.login-right-side .was-validated .form-control:invalid ~ .invalid-feedback {
    display: block;
}

/* 输入框组合 */
.login-right-side .input-group {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    width: 100%;
}

.login-right-side .input-group > .form-control {
    flex: 1 1 auto;
    min-width: 0;
}

.login-right-side .input-group > .form-control:first-child {
    border-radius: var(--radius) 0 0 var(--radius);
}

.login-right-side .input-group > .custom-dropdown + .form-control {
    border-radius: 0 var(--radius) var(--radius) 0;
}

.login-right-side .input-group > .form-control:only-child {
    border-radius: var(--radius);
}

.login-right-side .input-group-append {
    display: flex;
}

.login-right-side .input-group-append .btn {
    height: 42px;
    padding: 0 12px;
    font-size: 13px;
    font-weight: 400;
    white-space: nowrap;
    color: var(--c-primary);
    background: #f7f9fc;
    border: 1px solid var(--c-line);
    border-left: 0;
    border-radius: 0 var(--radius) var(--radius) 0;
}

.login-right-side .input-group-append .btn:hover {
    background: var(--c-primary-weak);
    color: var(--c-primary-hover);
}

.login-right-side .input-group-append img {
    display: block;
    height: 42px;
    border: 1px solid var(--c-line);
    border-left: 0;
    border-radius: 0 var(--radius) var(--radius) 0;
    cursor: pointer;
}

/* 国家区号下拉 */
.login-right-side .custom-dropdown {
    position: relative;
    flex: 0 0 96px;
    height: 42px;
    font-size: 13px;
    color: var(--c-text-2);
    background: #f7f9fc;
    border: 1px solid var(--c-line);
    border-right: 0;
    border-radius: var(--radius) 0 0 var(--radius);
    cursor: pointer;
    user-select: none;
}

.login-right-side .custom-dropdown-selection {
    height: 40px;
    line-height: 40px;
    padding: 0 22px 0 10px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.login-right-side .custom-dropdown-selection::after {
    content: "";
    position: absolute;
    right: 9px;
    top: 18px;
    border: 4px solid transparent;
    border-top-color: #98a3b3;
}

.login-right-side .custom-dropdown-list {
    display: none;
    position: absolute;
    left: -1px;
    top: 43px;
    z-index: 30;
    width: 210px;
    max-height: 240px;
    overflow: auto;
    margin: 0;
    padding: 4px 0;
    list-style: none;
    background: #fff;
    border: 1px solid var(--c-line);
    border-radius: var(--radius);
    box-shadow: 0 12px 26px -16px rgba(13, 45, 98, 0.45);
}

.login-right-side .custom-dropdown-list li {
    padding: 8px 12px;
    font-size: 13px;
    line-height: 18px;
    color: var(--c-text-2);
    white-space: nowrap;
}

.login-right-side .custom-dropdown-list li:hover {
    color: var(--c-primary);
    background: var(--c-primary-weak);
}

/* 按钮 */
.login-right-side .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    padding: 0 16px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    border-radius: var(--radius);
    box-shadow: none;
    text-decoration: none;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.login-right-side .btn-primary {
    color: #fff;
    background: var(--c-primary);
    border: 1px solid var(--c-primary);
}

.login-right-side .btn-primary:hover,
.login-right-side .btn-primary:focus,
.login-right-side .btn-primary:active {
    color: #fff;
    background: var(--c-primary-hover);
    border-color: var(--c-primary-hover);
    box-shadow: none;
}

.login-right-side .btn-block {
    display: flex;
    width: 100%;
}

.login-right-side .btn-outline-light,
.login-right-side .btn-light,
.login-right-side .btn-secondary {
    color: var(--c-text-2);
    background: #fff;
    border: 1px solid var(--c-line);
}

.login-right-side .btn-outline-light:hover,
.login-right-side .btn-light:hover,
.login-right-side .btn-secondary:hover {
    color: var(--c-primary);
    border-color: #c9dbff;
    background: var(--c-primary-weak);
}

.login-right-side .btn.py-2 {
    height: 44px;
    padding-top: 0;
    padding-bottom: 0;
}

.login-right-side .fz16 {
    font-size: 15px;
    letter-spacing: 1px;
}

.login-right-side .mt-3 {
    margin-top: 16px !important;
}

.login-right-side .mt-4 {
    margin-top: 18px !important;
}

.login-right-side .text-primary {
    color: var(--c-primary) !important;
    text-decoration: none;
}

.login-right-side .text-primary:hover {
    color: var(--c-primary-hover) !important;
}

.login-right-side .pointer {
    cursor: pointer;
}

.login-right-side .d-flex.justify-content-between {
    font-size: 13px;
    line-height: 20px;
}

.login-right-side .d-flex.justify-content-between a {
    font-size: 13px;
}

/* 协议勾选 */
.serviceTerms {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 18px;
    font-size: 12px;
    line-height: 20px;
    color: var(--c-text-3);
}

.serviceTerms > span {
    flex: 1 1 auto;
}

.custom-checkbox {
    position: relative;
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
    margin-top: 2px;
    background: #fff;
    border: 1px solid #c6d0de;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.custom-checkbox.checked {
    background: var(--c-primary);
    border-color: var(--c-primary);
}

.custom-checkbox.checked::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* 卡片底部条款 */
.login-terms {
    margin-top: 22px;
    padding-top: 16px;
    border-top: 1px solid var(--c-line-soft);
    font-size: 12px;
    line-height: 20px;
    color: var(--c-text-4);
    text-align: center;
}

.login-terms a {
    color: var(--c-text-3);
    text-decoration: none;
}

.login-terms a:hover {
    color: var(--c-primary);
}

/* ---------- 第三方登录 ---------- */
.Oauth_login {
    margin-top: 20px;
}

.other-login {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.gray-line {
    flex: 1 1 auto;
    height: 1px;
    background: var(--c-line-soft);
}

.gray-text {
    font-size: 12px;
    color: var(--c-text-4);
    white-space: nowrap;
}

.list-inline {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.social-list-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: var(--c-text-3);
    background: #fff;
    border: 1px solid var(--c-line);
    border-radius: 50%;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.social-list-item:hover {
    background: var(--c-primary-weak);
    border-color: #c9dbff;
}

.social-list-item img {
    max-width: 20px;
    max-height: 20px;
}

/* ---------- 扫码登录 ---------- */
.login-scan-login .qrCodeContainer {
    position: relative;
    box-sizing: border-box;
    padding: 8px;
    background: #fff;
    border: 1px solid var(--c-line);
    border-radius: var(--radius);
}

.login-scan-login .qrCodeContainer #L_qrCode {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.login-scan-login .qrCodeContainer .codetip-inner {
    position: absolute;
    left: 50%;
    top: -34px;
    transform: translateX(-50%);
    display: none;
}

.login-scan-login .qrCodeContainer .loading-spinner {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 22px;
    height: 22px;
    margin: -11px 0 0 -11px;
    border: 2px solid #e5e8ef;
    border-top-color: var(--c-primary);
    border-radius: 50%;
    animation: authSpin 0.8s linear infinite;
}

@keyframes authSpin {
    to {
        transform: rotate(360deg);
    }
}

.login-scan-login .qrCodeContainer #regenerateQrCode {
    position: absolute;
    inset: 8px;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.94);
    font-size: 12px;
    color: var(--c-text-3);
    text-align: center;
}

.login-scan-login .qrCodeContainer #regenerateQrCode p {
    margin: 0;
}

.login-scan-login .wechat-login {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 12px;
    color: var(--c-text-3);
    text-align: center;
}

.login-scan-login .wechat-login a {
    font-size: 14px;
    font-weight: 600;
    color: var(--c-text);
}

/* 扫码 + 表单并排 */
.login-right-side.wx .login-right-form {
    display: flex;
    align-items: flex-start;
    gap: 28px;
}

.login-right-side.wx .login-right-form .login-scan-login {
    flex: 0 0 158px;
    width: 158px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-right: 26px;
    border-right: 1px solid var(--c-line-soft);
}

.login-right-side.wx .login-right-form .login-scan-login .qrCodeContainer {
    width: 150px;
    height: 150px;
}

.login-right-side.wx .login-right-form .login-login-form {
    flex: 1 1 auto;
    min-width: 0;
}

.login-right-side.wx .login-right-form .login-scan-login .wechat-login,
.login-right-side.wx .login-right-form .login-scan-login .Oauth_login {
    display: none;
}

.login-right-side.right .login-right-form {
    flex-direction: row-reverse;
}

.login-right-side.right .login-right-form .login-scan-login {
    padding-right: 0;
    padding-left: 26px;
    border-right: 0;
    border-left: 1px solid var(--c-line-soft);
}

/* ---------- 提示 ---------- */
.login .alert {
    margin: 0 0 16px;
    padding: 10px 14px;
    font-size: 13px;
    border-radius: var(--radius);
    border: 1px solid transparent;
}

.login .alert-danger {
    color: #cb2634;
    background: #fff2f0;
    border-color: #ffd6d3;
}

/* 极验容器 */
.JYcaptchacss {
    margin-bottom: 16px;
}

.ExtremeTest_captcha {
    width: 100%;
    min-height: 42px;
}

/* ---------- 二次验证弹窗 ---------- */
.modal .modal-content {
    border: 0;
    border-radius: var(--radius);
    box-shadow: 0 24px 60px -30px rgba(9, 30, 66, 0.5);
}

.modal .modal-header,
.modal .modal-footer {
    border-color: var(--c-line-soft);
    padding: 16px 20px;
}

.modal .modal-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--c-text);
}

.modal .modal-body {
    padding: 20px;
}

.modal .close {
    font-size: 22px;
    line-height: 1;
    color: var(--c-text-3);
    opacity: 1;
}

.modal .form-control {
    height: 40px;
    border: 1px solid var(--c-line);
    border-radius: var(--radius);
    font-size: 14px;
}

.modal .btn {
    height: 38px;
    border-radius: var(--radius);
    font-size: 14px;
}

/* ---------- 页脚 ---------- */
.login-foot {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 14px;
    z-index: 1;
    margin: 0;
    padding: 0 8px;
    text-align: center;
}

.login-right-footer {
    font-size: 12px;
    line-height: 20px;
    color: #97a2b3;
}

.login-right-footer p {
    margin: 0;
}

.login-right-footer .login-foot-links {
    margin-bottom: 4px;
}

.login-right-footer a {
    display: inline-block;
    padding: 0 6px;
    color: #8b96a8;
    text-decoration: none;
}

.login-right-footer a:hover {
    color: var(--c-primary);
}

.login-right-footer .login-foot-links a + a::before {
    content: "|";
    margin-right: 12px;
    margin-left: -2px;
    color: #d2dae6;
}

.login-right-footer .login-foot-meta a {
    padding: 0 8px;
}

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
    .login-main {
        flex: 0 0 auto;
        padding: 22px 14px 8px;
    }

    .login-right-side,
    .login-right-side.wx {
        width: 100%;
        margin: 0 auto;
        padding: 26px 20px 22px;
    }

    .login-brand-head {
        margin-bottom: 20px;
    }

    .login-brand-logo img {
        max-height: 32px;
    }

    .login-title {
        margin-bottom: 16px;
    }

    .login-title h1 {
        font-size: 20px;
        line-height: 28px;
    }

    .login-title p {
        font-size: 12px;
    }

    .code_login-tab {
        gap: 22px;
        padding-right: 0;
    }

    .text-register {
        position: static;
        margin-top: 10px;
        text-align: right;
    }

    .login-right-side form {
        margin-top: 16px;
    }

    /* iOS 聚焦不放大 */
    .login-right-side .form-control,
    .login-right-side select.form-control {
        height: 46px;
        font-size: 16px;
        line-height: 44px;
    }

    .login-right-side .input-group-append .btn,
    .login-right-side .input-group-append img,
    .login-right-side .custom-dropdown {
        height: 46px;
    }

    .login-right-side .custom-dropdown-selection {
        height: 44px;
        line-height: 44px;
    }

    .login-right-side .custom-dropdown-selection::after {
        top: 20px;
    }

    .login-right-side .btn.py-2 {
        height: 46px;
    }

    .login-right-side.wx .login-right-form {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
    }

    .login-right-side.wx .login-right-form .login-scan-login {
        width: auto;
        flex: none;
        padding: 0 0 20px;
        border-right: 0;
        border-bottom: 1px solid var(--c-line-soft);
    }

    .login-terms {
        margin-top: 18px;
        padding-top: 14px;
    }

    .login-foot {
        position: static;
        left: auto;
        right: auto;
        bottom: auto;
        margin: 14px 0 0;
        padding-bottom: 4px;
    }

    .login-right-footer .login-foot-meta a {
        padding: 0 4px;
    }
}

@media (min-width: 901px) and (max-height: 780px) {
    .login-main {
        padding: 22px 16px 12px;
    }

    .login-right-side {
        padding: 26px 34px 24px;
    }

    .login-brand-head {
        margin-bottom: 18px;
    }

    .login-title {
        margin-bottom: 16px;
    }

    .login-terms {
        margin-top: 16px;
        padding-top: 12px;
    }

    .login-foot {
        position: static;
        margin-top: 14px;
    }
}

@media (max-width: 360px) {
    .code_login-tab {
        gap: 16px;
    }

    .login-right-side,
    .login-right-side.wx {
        padding: 22px 16px 18px;
    }
}

/* ---------- 隐藏模板作者版权标识 ---------- */
a[href*="idcsmart.com"],
#powered_by,
.powered-by {
    display: none !important;
}
