html,
body {
    min-height: 100%;
}

body.signin {
    margin: 0;
    min-height: 100vh;
    background: #eef2f5;
    color: #1f2933;
    font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

body.signin,
body.signin * {
    box-sizing: border-box;
}

.login-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(430px, 1.15fr) minmax(460px, 0.85fr);
}

.login-visual {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    background: #36596b url(../img/login-background.jpg) center center / cover no-repeat;
}

.login-visual::before {
    position: absolute;
    inset: 0;
    content: "";
    background: rgba(20, 48, 65, 0.62);
}

.visual-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    max-width: 660px;
    padding: 58px 72px 42px;
    color: #fff;
}

.brand {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 13px;
    color: #fff;
    text-decoration: none;
}

.brand:hover,
.brand:focus {
    color: #fff;
    text-decoration: none;
}

.brand-mark {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border-radius: 8px;
    background: #fff;
    color: #0b7285;
    font-size: 20px;
    box-shadow: 0 8px 20px rgba(11, 38, 52, 0.18);
}

.brand-name {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0;
}

.visual-copy {
    margin-top: auto;
    margin-bottom: auto;
    padding: 96px 0 54px;
}

.visual-eyebrow,
.login-eyebrow {
    margin: 0 0 18px;
    color: #99e3e0;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
}

.visual-copy h1 {
    margin: 0;
    color: #fff;
    font-size: 46px;
    font-weight: 300;
    line-height: 1.25;
    letter-spacing: 0;
}

.visual-copy h1 strong {
    font-weight: 700;
}

.visual-description {
    max-width: 360px;
    margin: 24px 0 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 15px;
    line-height: 1.8;
}

.visual-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 28px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 13px;
}

.visual-meta span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.visual-meta i {
    color: #99e3e0;
    font-size: 14px;
}

.visual-footer {
    display: flex;
    justify-content: space-between;
    padding-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.24);
    color: rgba(255, 255, 255, 0.56);
    font-size: 12px;
}

.login-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    margin-top: 0;
    padding: 48px 56px;
    background: #f7f9fb;
}

.login-card {
    width: 100%;
    max-width: 470px;
    padding: 42px 44px 30px;
    border: 1px solid #e4eaee;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 22px 55px rgba(25, 55, 72, 0.1);
}

.login-card-header {
    margin-bottom: 28px;
}

.login-card-header .login-eyebrow {
    margin-bottom: 12px;
    color: #0b7285;
}

.login-card-header h2 {
    margin: 0;
    color: #152b3a;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.3;
}

.login-subtitle {
    margin: 8px 0 0;
    color: #83909a;
    font-size: 14px;
}

.form-field,
.market-login-select,
.login-captcha {
    margin-top: 19px;
}

.form-field > label,
.market-login-select > label,
.login-captcha > label,
.role-heading > label {
    display: block;
    margin: 0 0 8px;
    color: #3b4a54;
    font-size: 13px;
    font-weight: 600;
}

.input-shell,
.select-shell {
    position: relative;
}

.input-shell > i,
.select-shell > i:first-child {
    position: absolute;
    top: 50%;
    left: 16px;
    z-index: 1;
    transform: translateY(-50%);
    color: #a1adb5;
    font-size: 15px;
    pointer-events: none;
}

.signin .form-control.login-input,
.signin .form-control.login-select {
    width: 100%;
    height: 48px !important;
    margin: 0;
    padding: 0 16px 0 43px !important;
    border: 1px solid #dce4e9;
    border-radius: 6px !important;
    background: #fff;
    color: #24333d;
    font-size: 14px;
    box-shadow: none;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.signin .form-control.login-input::placeholder {
    color: #a9b4ba;
}

.signin .form-control.login-input:focus,
.signin .form-control.login-select:focus {
    border-color: #0b9aa3 !important;
    box-shadow: 0 0 0 3px rgba(11, 154, 163, 0.12);
    outline: none;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 12px;
    display: grid;
    width: 30px;
    height: 30px;
    padding: 0;
    transform: translateY(-50%);
    place-items: center;
    border: 0;
    background: transparent;
    color: #a1adb5;
    cursor: pointer;
}

.password-toggle:hover,
.password-toggle:focus {
    color: #0b7285;
    outline: none;
}

.password-field .login-input {
    padding-right: 48px !important;
}

.role-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-top: 24px;
}

.role-heading > label {
    margin-bottom: 0;
}

.role-heading > span {
    color: #9aa6ad;
    font-size: 12px;
}

.login-role-group {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.login-role-option {
    position: relative;
    display: block;
    min-width: 0;
    margin: 0;
    cursor: pointer;
}

.login-role-option input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.role-option-content {
    display: flex;
    align-items: center;
    min-height: 64px;
    gap: 10px;
    padding: 10px 11px;
    border: 1px solid #e0e7eb;
    border-radius: 6px;
    background: #fff;
    transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.login-role-option:hover .role-option-content {
    border-color: #a6d4d7;
    background: #fbfefe;
}

.login-role-option input:checked + .role-option-content {
    border-color: #0b9aa3;
    background: #effafa;
    box-shadow: 0 0 0 1px #0b9aa3;
}

.login-role-option input:focus-visible + .role-option-content {
    outline: 3px solid rgba(11, 154, 163, 0.2);
    outline-offset: 1px;
}

.role-icon {
    display: grid;
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    place-items: center;
    border-radius: 6px;
    background: #f0f4f5;
    color: #71818b;
    font-size: 13px;
}

.login-role-option input:checked + .role-option-content .role-icon {
    background: #d7f1f0;
    color: #0b7285;
}

.role-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 3px;
}

.role-copy strong {
    overflow: hidden;
    color: #3b4a54;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.login-role-option input:checked + .role-option-content .role-copy strong {
    color: #086d78;
}

.role-copy small {
    color: #98a4ab;
    font-size: 11px;
    line-height: 1.2;
}

.select-shell .login-select {
    appearance: none;
    cursor: pointer;
}

.select-shell .select-arrow {
    position: absolute;
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
    color: #a1adb5;
    font-size: 12px;
    pointer-events: none;
}

.signin .form-control.login-select {
    padding-right: 40px !important;
}

.captcha-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 124px;
    gap: 10px;
}

.captcha-refresh {
    display: block;
    width: 100%;
    height: 48px;
    padding: 0;
    overflow: hidden;
    border: 1px solid #dce4e9;
    border-radius: 6px;
    background: #f5f8f9;
    cursor: pointer;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.captcha-refresh:hover,
.captcha-refresh:focus {
    border-color: #0b9aa3;
    box-shadow: 0 0 0 3px rgba(11, 154, 163, 0.12);
    outline: none;
}

.captcha-refresh .imgcode {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 28px;
    margin-top: 20px;
}

.remember-control {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: #677781;
    font-size: 13px;
    font-weight: 400;
    cursor: pointer;
}

.remember-control input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.remember-check {
    display: inline-flex;
    width: 17px;
    height: 17px;
    align-items: center;
    justify-content: center;
    border: 1px solid #ccd7dc;
    border-radius: 4px;
    background: #fff;
    color: #fff;
    font-family: FontAwesome;
    font-size: 10px;
}

.remember-control input:checked + .remember-check {
    border-color: #0b9aa3;
    background: #0b9aa3;
}

.remember-control input:checked + .remember-check::after {
    content: "\f00c";
}

.remember-control input:focus-visible + .remember-check {
    outline: 3px solid rgba(11, 154, 163, 0.2);
    outline-offset: 1px;
}

.forgot-link {
    color: #0b8291;
    font-size: 13px;
    text-decoration: none;
}

.forgot-link:hover,
.forgot-link:focus {
    color: #075a66;
    text-decoration: underline;
}

.login-submit {
    display: flex;
    width: 100%;
    height: 50px;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 18px;
    padding: 0 18px;
    border: 0;
    border-radius: 6px;
    background: #0b8291;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.login-submit:hover,
.login-submit:focus {
    background: #086d78;
    box-shadow: 0 8px 16px rgba(11, 130, 145, 0.2);
    outline: none;
}

.login-submit:active {
    transform: translateY(1px);
}

.login-submit:disabled {
    background: #8fb9bd;
    cursor: wait;
}

.login-submit i {
    font-size: 13px;
}

.login-security {
    margin: 19px 0 0;
    color: #a1adb5;
    font-size: 11px;
    text-align: center;
}

.login-security i {
    margin-right: 4px;
    color: #6e9da1;
}

label.error {
    display: block;
    margin: 6px 0 0 2px;
    color: #c2414d;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.4;
}

body .layer-ext-moon-msg[type="dialog"] {
    min-width: 100px !important;
}

body .layer-ext-moon-msg {
    border: none;
    background-color: rgba(0, 0, 0, 0.72);
    color: #fff;
}

body .layer-ext-moon-msg .layui-layer-content {
    padding: 12px 25px;
    text-align: center;
}

@media screen and (max-width: 1050px) {
    .login-page {
        grid-template-columns: minmax(360px, 0.95fr) minmax(430px, 1.05fr);
    }

    .visual-inner {
        padding-right: 48px;
        padding-left: 48px;
    }

    .login-panel {
        padding-right: 32px;
        padding-left: 32px;
    }
}

@media screen and (max-width: 760px) {
    .login-page {
        display: block;
    }

    .login-visual {
        min-height: 244px;
    }

    .visual-inner {
        min-height: 244px;
        padding: 30px 24px 24px;
    }

    .visual-copy {
        padding: 30px 0 24px;
    }

    .visual-copy h1 {
        font-size: 30px;
    }

    .visual-description,
    .visual-meta {
        display: none;
    }

    .visual-footer {
        padding-top: 18px;
    }

    .login-panel {
        min-height: auto;
        padding: 24px 16px 34px;
    }

    .login-card {
        max-width: 520px;
        padding: 30px 24px 26px;
    }
}

@media screen and (max-width: 420px) {
    .login-role-group {
        grid-template-columns: 1fr;
    }

    .captcha-row {
        grid-template-columns: minmax(0, 1fr) 108px;
    }

    .login-card-header h2 {
        font-size: 27px;
    }
}

@media screen and (min-width: 761px) and (max-height: 800px) {
    .login-panel {
        padding-top: 24px;
        padding-bottom: 24px;
    }

    .login-card {
        padding: 28px 36px 22px;
    }

    .login-card-header {
        margin-bottom: 18px;
    }

    .login-card-header h2 {
        font-size: 26px;
    }

    .form-field,
    .market-login-select,
    .login-captcha {
        margin-top: 14px;
    }

    .form-field > label,
    .market-login-select > label,
    .login-captcha > label {
        margin-bottom: 5px;
    }

    .signin .form-control.login-input,
    .signin .form-control.login-select,
    .captcha-refresh {
        height: 44px !important;
    }

    .role-heading {
        margin-top: 18px;
    }

    .role-option-content {
        min-height: 54px;
        padding: 8px 10px;
    }

    .role-icon {
        width: 26px;
        height: 26px;
        flex-basis: 26px;
    }

    .login-options {
        margin-top: 14px;
    }

    .login-submit {
        height: 46px;
        margin-top: 14px;
    }

    .login-security {
        margin-top: 12px;
    }
}
