.msshe-login-compliance {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 2px 10px;
    position: fixed;
    right: 0;
    bottom: 14px;
    left: 0;
    z-index: 2;
    padding: 0 16px;
    box-sizing: border-box;
    color: rgba(255, 255, 255, .72);
    font-size: 12px;
    line-height: 20px;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .35);
    pointer-events: none;
}

.msshe-login-compliance [hidden] {
    display: none !important;
}

.msshe-login-compliance a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: inherit;
    pointer-events: auto;
    text-decoration: none;
}

.msshe-login-compliance a:hover,
.msshe-login-compliance a:focus-visible {
    outline: none;
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.msshe-public-security-logo {
    width: 12px;
    height: 13px;
    flex: 0 0 auto;
    object-fit: contain;
    vertical-align: -2px;
}

#msshe-login {
    --login-box-x: 72%;
    --login-box-y: 50%;
    position: relative;
    overflow: hidden;
    height: 100%;
    min-height: 100%;
    margin-top: -1px;
    padding-top: 1px;
    background: #f0f2f5 url(../images/background.jpg) center / cover no-repeat fixed;
}

#msshe-login::before {
    position: absolute;
    z-index: 0;
    inset: 0;
    background: rgba(12, 31, 56, .16);
    content: '';
    pointer-events: none;
}

#msshe-login .layui-logo {
    position: static;
    overflow: hidden;
    width: 100%;
    height: 120px;
    padding: 0;
    color: #3491ff;
    font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
    font-size: 27px;
    line-height: 120px;
    transition: height .8s cubic-bezier(.075, .82, .165, 1);
    user-select: none;
}

#msshe-login .layui-logo span {
    color: rgba(0, 0, 0, .85);
    border-bottom: 1px solid #3491ff;
    font-weight: 600;
}

#msshe-login .layui-logo span b {
    color: #3491ff;
}

#msshe-login .login-wrap {
    position: relative;
    z-index: 1;
    height: 100%;
}

#msshe-login .layui-form:not(.msshe-brand-login-card) {
    position: relative;
    overflow: hidden;
    padding: 40px 20px 20px;
    border-radius: 7px;
    background: #fff;
    box-shadow: 1px 3px 3px #ccc;
    opacity: .88;
}

#msshe-login .layui-form-item {
    position: relative;
}

#msshe-login .verify-block,
#msshe-login .phonecode-block {
    display: none;
}

#msshe-login .layui-input:not(.msshe-brand-login-input) {
    text-indent: 26px;
}

#msshe-login .codeimg {
    margin-left: 10px;
    cursor: pointer;
}

#msshe-login .sendsms {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 100px;
    border: none;
}

#msshe-login .sendsms.layui-btn-disabled {
    color: #bbb;
    background: #f4f4f4;
}

#msshe-login .houseimg {
    text-align: center;
}

#msshe-login .houseimg img {
    display: inline-block;
    margin-top: 5%;
}

#msshe-login .login-type-tab {
    overflow: hidden;
    margin-bottom: 20px;
}

#msshe-login .login-type-tab li {
    display: inline-block;
    padding-right: 20px;
    color: #bbb;
    font-size: 16px;
    line-height: 30px;
    cursor: pointer;
    transition: color .5s ease;
}

#msshe-login .login-type-tab li.active {
    color: #333;
}

#msshe-login .login-type-tab li .qrcode-icon {
    font-size: 24px;
}

#msshe-login .qrcode-block {
    display: none;
    text-align: center;
}

#msshe-login .qrcode-block .qrcode {
    display: inline-block;
    width: 158px;
    height: 158px;
    margin: 30px 0;
    padding: 15px;
    border: 1px solid #eee;
}

#msshe-login .qrcode-block .qrcode .layui-icon {
    color: #e6e6e6;
    font-size: 44px;
    line-height: 158px;
}

#msshe-login .qrcode-block .p1 {
    font-size: 16px;
}

#msshe-login .qrcode-block .p2 {
    margin-top: 10px;
    margin-bottom: 20px;
    color: #999;
    font-size: 14px;
}

#msshe-login .layui-form-item .label-icon {
    position: absolute;
    top: 0;
    left: 0;
    width: 38px;
    color: #d2d2d2 !important;
    line-height: 45px;
    text-align: center;
}

.footer {
    padding: .5rem 1rem 1rem;
    text-align: center;
}

/* PC 端认证框共用品牌配置中的中心点坐标。 */
@media (min-width: 701px) {
    #msshe-login .login-wrap {
        top: 0;
        height: 100%;
        margin-top: 0;
    }

    #msshe-login .layui-container,
    #msshe-login .layui-container > div {
        position: relative;
        box-sizing: border-box;
        width: 100%;
        height: 100%;
        padding: 0;
    }

    #msshe-login .layui-container > div > .layui-col-xs12:first-child {
        display: none;
    }

    #msshe-login #login-div,
    #msshe-login #regist-div,
    #msshe-login #login-pwd-update-div {
        position: absolute;
        float: none;
        margin: 0 !important;
        transform: translate(-50%, -50%);
    }

    #msshe-login #login-div {
        top: clamp(209px, var(--login-box-y), calc(100% - 209px));
        left: clamp(212px, var(--login-box-x), calc(100% - 212px));
        width: 392px !important;
        height: auto !important;
    }

    #msshe-login #login-div > .msshe-brand-login-card {
        width: 100%;
        opacity: 1;
    }

    #msshe-login #regist-div,
    #msshe-login #login-pwd-update-div {
        top: clamp(260px, var(--login-box-y), calc(100% - 260px));
        left: clamp(190px, var(--login-box-x), calc(100% - 190px));
        width: 350px !important;
    }
}

@media (max-width: 700px) {
    #msshe-login {
        overflow-x: hidden;
        height: auto;
        min-height: 100%;
        background-size: cover !important;
    }

    #msshe-login .login-wrap {
        top: 0;
        display: flex;
        align-items: center;
        box-sizing: border-box;
        height: auto;
        min-height: 100%;
        margin-top: 0;
        padding: 24px 12px;
    }

    #msshe-login .layui-container {
        width: 100%;
        padding: 0;
    }

    #msshe-login .layui-container > div > .layui-col-xs12:first-child {
        display: none;
    }

    #msshe-login #login-div {
        float: none;
        width: min(392px, 100%) !important;
        height: auto !important;
        margin: 0 auto !important;
    }

    #msshe-login .layui-form:not(.msshe-brand-login-card) {
        box-sizing: border-box;
        padding: 32px 20px 20px;
    }

    #msshe-login #login-div > .msshe-brand-login-card {
        width: 100%;
    }
}

/* 注册窗口：沿用登录页的企业卡片语言，保留原有字段和校验流程。 */
#msshe-login #regist-div {
    box-sizing: border-box;
}

#msshe-login #regist-div > .msshe-auth-secondary-card {
    position: relative;
    box-sizing: border-box;
    width: 392px !important;
    height: auto !important;
    min-height: 0;
    overflow: hidden;
    padding: 0 !important;
    border: 1px solid var(--msshe-ui-line, #dfe5ec);
    border-radius: 8px;
    color: var(--msshe-ui-text, #344054);
    background: var(--msshe-ui-surface, #fff);
    box-shadow: 0 12px 32px rgba(30, 45, 62, .14), 0 2px 6px rgba(30, 45, 62, .06);
    opacity: 1;
}

#msshe-login #regist-div > .msshe-auth-secondary-card::before {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 3px;
    background: var(--msshe-ui-accent, #2f8ff0);
    content: '';
}

#msshe-login .msshe-auth-secondary-card-inner {
    padding: 24px 28px 0;
}

#msshe-login .msshe-auth-secondary-title {
    margin: 0 0 20px;
    padding: 0 0 14px;
    border-bottom: 1px solid var(--msshe-ui-line-soft, #edf1f5);
}

#msshe-login .msshe-auth-secondary-title li {
    display: block;
    padding: 0;
    color: var(--msshe-ui-ink, #1f2933);
    font-size: 18px;
    font-weight: 600;
    line-height: 26px;
}

#msshe-login .msshe-auth-secondary-title li::before {
    display: inline-block;
    width: 3px;
    height: 16px;
    margin-right: 8px;
    border-radius: 1px;
    background: var(--msshe-ui-accent, #2f8ff0);
    content: '';
    vertical-align: -1px;
}

#msshe-login .msshe-auth-secondary-form {
    margin: 0 !important;
}

#msshe-login .msshe-auth-secondary-form > br {
    display: none;
}

#msshe-login .msshe-auth-field {
    position: relative;
    min-height: 44px;
    margin: 0 0 14px !important;
}

#msshe-login .msshe-auth-field .label-icon {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    display: flex;
    width: 42px;
    height: 44px;
    align-items: center;
    justify-content: center;
    color: var(--msshe-ui-faint, #98a2b3);
    line-height: 1;
    pointer-events: none;
}

#msshe-login .msshe-auth-field .label-icon img {
    display: block;
    width: 18px !important;
    height: 18px !important;
    opacity: .64;
}

#msshe-login .msshe-auth-input {
    box-sizing: border-box;
    width: 100%;
    height: 44px !important;
    padding: 0 12px 0 42px !important;
    border: 1px solid #d6e0ea !important;
    border-radius: 6px !important;
    color: var(--msshe-ui-ink, #1f2933);
    background: #fff !important;
    box-shadow: none !important;
    font-size: 14px;
    line-height: 42px;
    transition: border-color .16s ease, box-shadow .16s ease, background-color .16s ease;
}

#msshe-login .msshe-auth-input::placeholder {
    color: var(--msshe-ui-faint, #98a2b3);
}

#msshe-login .msshe-auth-input:hover {
    border-color: #aebdcd !important;
}

#msshe-login .msshe-auth-input:focus {
    outline: none;
    border-color: var(--msshe-ui-accent, #2f8ff0) !important;
    background: #fff !important;
    box-shadow: 0 0 0 3px rgba(47, 143, 240, .12) !important;
}

#msshe-login .msshe-auth-input.layui-form-danger,
#msshe-login .msshe-auth-input[aria-invalid="true"] {
    border-color: var(--msshe-ui-danger, #c2352a) !important;
    box-shadow: 0 0 0 3px rgba(194, 53, 42, .1) !important;
}

#msshe-login .msshe-auth-help {
    display: none;
    min-height: 18px;
    margin: -8px 0 8px 42px;
    color: var(--msshe-ui-danger, #c2352a);
    font-size: 12px;
    line-height: 18px;
}

#msshe-login .msshe-auth-submit-item {
    min-height: 44px;
    margin: 2px 0 0 !important;
}

#msshe-login .msshe-auth-submit {
    position: relative;
    display: flex;
    width: 100%;
    height: 44px !important;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0 16px;
    border: 1px solid var(--msshe-ui-accent, #2f8ff0) !important;
    border-radius: 6px !important;
    color: #fff !important;
    background: var(--msshe-ui-accent, #2f8ff0) !important;
    box-shadow: 0 1px 2px rgba(30, 45, 62, .08);
    font-size: 14px;
    font-weight: 600;
    line-height: 42px;
    transition: background-color .16s ease, border-color .16s ease, box-shadow .16s ease;
}

#msshe-login .msshe-auth-submit:hover,
#msshe-login .msshe-auth-submit:focus-visible {
    outline: none;
    border-color: #247dcc !important;
    background: #247dcc !important;
    box-shadow: 0 2px 5px rgba(30, 45, 62, .12);
}

#msshe-login .msshe-auth-submit:active {
    border-color: #1f6fb6 !important;
    background: #1f6fb6 !important;
    box-shadow: none;
}

#msshe-login .msshe-auth-submit .layui-icon-loading {
    position: static;
    flex: 0 0 auto;
    margin: 0 7px 0 0;
    font-size: 14px;
    line-height: 1;
    transform: none;
}

#msshe-login .msshe-auth-secondary-footer {
    display: flex;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    margin: 16px 0 0 !important;
    padding: 14px 28px 16px;
    border-top: 1px solid var(--msshe-ui-line-soft, #edf1f5);
    color: var(--msshe-ui-muted, #667085);
    background: transparent;
    font-size: 12px;
    line-height: 20px;
}

#msshe-login .msshe-auth-secondary-link {
    color: var(--msshe-ui-text, #344054);
    font-size: 12px;
    font-weight: 600;
    line-height: 20px;
    cursor: pointer;
    transition: color .16s ease, text-decoration-color .16s ease;
}

#msshe-login .msshe-auth-secondary-link:hover,
#msshe-login .msshe-auth-secondary-link:focus-visible {
    outline: none;
    color: var(--msshe-ui-accent, #2f8ff0);
    text-decoration: underline;
    text-underline-offset: 3px;
}

@media (min-width: 701px) {
    #msshe-login #regist-div {
        top: clamp(248px, var(--login-box-y), calc(100% - 248px));
        left: clamp(212px, var(--login-box-x), calc(100% - 212px));
        width: 392px !important;
    }
}

@media (max-width: 700px) {
    #msshe-login #regist-div {
        width: min(392px, 100%) !important;
        margin: 0 auto !important;
    }

    #msshe-login #regist-div > .msshe-auth-secondary-card {
        width: 100% !important;
    }

    #msshe-login .msshe-auth-secondary-card-inner {
        padding: 20px 20px 0;
    }

    #msshe-login .msshe-auth-secondary-title {
        margin-bottom: 16px;
        padding-bottom: 12px;
    }

    #msshe-login .msshe-auth-secondary-footer {
        padding-right: 20px;
        padding-left: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    #msshe-login .msshe-auth-input,
    #msshe-login .msshe-auth-submit,
    #msshe-login .msshe-auth-secondary-link {
        transition: none;
    }
}
