:root {
    --auth-ink: #17213a;
    --auth-muted: #78839a;
    --auth-primary: #5b6cff;
    --auth-cyan: #5ed8d0;
    --auth-border: #e8ebf3;
}

html {
    height: 100%;
}

body.signin.auth-body {
    display: flex;
    min-height: 100vh;
    height: auto;
    margin: 0;
    padding: 24px;
    align-items: center;
    justify-content: center;
    color: var(--auth-ink);
    background:
        radial-gradient(circle at 10% 8%, rgba(113, 126, 255, .22), transparent 30%),
        radial-gradient(circle at 88% 88%, rgba(94, 216, 208, .18), transparent 30%),
        linear-gradient(135deg, #eef1ff 0%, #f8f9fd 48%, #edf9f7 100%);
    font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.signin.auth-body:before {
    position: fixed;
    inset: 0;
    content: "";
    pointer-events: none;
    opacity: .35;
    background-image:
        linear-gradient(rgba(91, 108, 255, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(91, 108, 255, .045) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(to bottom, #000, transparent 80%);
}

.auth-shell {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.13fr) minmax(430px, .87fr);
    width: min(1180px, 100%);
    min-height: min(760px, calc(100vh - 48px));
    margin: 0 auto;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .9);
    border-radius: 30px;
    background: #fff;
    box-shadow: 0 35px 90px rgba(31, 43, 94, .16), 0 5px 20px rgba(31, 43, 94, .05);
}

.auth-visual {
    position: relative;
    display: flex;
    min-height: 710px;
    padding: 42px 48px 30px;
    flex-direction: column;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(circle at 82% 16%, rgba(94, 216, 208, .28), transparent 24%),
        radial-gradient(circle at 12% 82%, rgba(114, 129, 255, .34), transparent 30%),
        linear-gradient(145deg, #111b38 0%, #182449 47%, #1b3158 100%);
}

.auth-visual:before,
.auth-visual:after {
    position: absolute;
    content: "";
    border-radius: 50%;
    pointer-events: none;
}

.auth-visual:before {
    top: -160px;
    right: -120px;
    width: 420px;
    height: 420px;
    border: 1px solid rgba(255, 255, 255, .1);
    box-shadow: 0 0 0 70px rgba(255, 255, 255, .025), 0 0 0 140px rgba(255, 255, 255, .018);
}

.auth-visual:after {
    bottom: -130px;
    left: -80px;
    width: 330px;
    height: 330px;
    background: radial-gradient(circle, rgba(94, 216, 208, .19), transparent 67%);
}

.auth-noise {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: .22;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.09'/%3E%3C/svg%3E");
}

.auth-brand,
.auth-mobile-brand {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 13px;
}

.brand-mark {
    position: relative;
    display: inline-flex;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(255, 255, 255, .18), rgba(255, 255, 255, .07));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22);
}

.brand-mark:before {
    position: absolute;
    width: 26px;
    height: 26px;
    content: "";
    border: 2px solid #fff;
    border-radius: 8px;
    transform: rotate(18deg);
}

.brand-mark-line {
    position: absolute;
    width: 16px;
    height: 2px;
    border-radius: 4px;
    background: #fff;
    transform: rotate(-42deg);
}

.brand-mark-dot {
    position: absolute;
    right: 10px;
    bottom: 11px;
    width: 6px;
    height: 6px;
    border: 2px solid #1c2a51;
    border-radius: 50%;
    background: var(--auth-cyan);
}

.brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.brand-copy strong {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -.5px;
}

.brand-copy small {
    margin-top: 7px;
    color: rgba(255, 255, 255, .5);
    font-size: 8px;
    font-weight: 600;
    letter-spacing: 2.2px;
}

.auth-story {
    position: relative;
    z-index: 2;
    max-width: 480px;
    margin-top: 68px;
}

.auth-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 999px;
    color: rgba(255, 255, 255, .72);
    background: rgba(255, 255, 255, .05);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .8px;
}

.auth-eyebrow i {
    color: var(--auth-cyan);
    font-size: 5px;
    vertical-align: 2px;
}

.auth-story h1 {
    margin: 25px 0 18px;
    color: #fff;
    font-size: clamp(36px, 4.1vw, 56px);
    font-weight: 300;
    line-height: 1.22;
    letter-spacing: -2px;
}

.auth-story h1 em {
    color: #8fe7e1;
    font-style: normal;
    font-weight: 600;
}

.auth-story p {
    max-width: 420px;
    margin: 0;
    color: rgba(255, 255, 255, .55);
    font-size: 14px;
    line-height: 1.9;
}

.feature-chips {
    display: flex;
    margin-top: 24px;
    gap: 10px;
    flex-wrap: wrap;
}

.feature-chips span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 12px;
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 10px;
    color: rgba(255, 255, 255, .76);
    background: rgba(255, 255, 255, .055);
    font-size: 11px;
}

.feature-chips i {
    color: #9be9e3;
}

.design-preview {
    position: relative;
    z-index: 2;
    width: min(482px, 88%);
    min-height: 246px;
    margin: 39px 0 0 auto;
    transform: rotate(-2.1deg);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 18px;
    background: rgba(255, 255, 255, .7);
    box-shadow: 0 28px 50px rgba(3, 10, 30, .34);
    backdrop-filter: blur(18px);
}

.preview-toolbar {
    display: flex;
    height: 40px;
    padding: 0 14px;
    align-items: center;
    border-bottom: 1px solid rgba(31, 45, 84, .08);
    color: #77829a;
    font-size: 9px;
}

.preview-dots {
    display: flex;
    gap: 4px;
}

.preview-dots i {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #c9cfdd;
}

.preview-dots i:first-child {
    background: #ff8f8f;
}

.preview-title {
    margin-left: 13px;
    color: #5f6a80;
    font-weight: 600;
    letter-spacing: .2px;
}

.preview-live {
    display: inline-flex;
    padding: 4px 7px;
    margin-left: auto;
    align-items: center;
    gap: 5px;
    border-radius: 99px;
    color: #2d6b66;
    background: rgba(94, 216, 208, .18);
    font-size: 7px;
    font-weight: 700;
    letter-spacing: .7px;
}

.preview-live i {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #39bdb4;
}

.preview-canvas {
    position: relative;
    height: 206px;
    overflow: hidden;
    border-radius: 0 0 18px 18px;
    background:
        linear-gradient(rgba(76, 91, 128, .055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(76, 91, 128, .055) 1px, transparent 1px),
        linear-gradient(140deg, #f7f7fb 0%, #f1f5f8 100%);
    background-size: 20px 20px, 20px 20px, auto;
}

.canvas-line {
    position: absolute;
    height: 1px;
    background: rgba(91, 108, 255, .22);
}

.line-one {
    top: 55%;
    left: 14%;
    width: 38%;
    transform: rotate(-17deg);
}

.line-two {
    top: 45%;
    left: 50%;
    width: 36%;
    transform: rotate(23deg);
}

.canvas-shape {
    position: absolute;
    display: block;
}

.shape-circle {
    top: 34px;
    right: 38px;
    width: 83px;
    height: 83px;
    border-radius: 50%;
    background: linear-gradient(145deg, #8fe4dd, #58c7d5);
    box-shadow: 0 15px 26px rgba(73, 186, 198, .21);
}

.shape-square {
    right: 74px;
    bottom: 22px;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(145deg, #8b98ff, #5969ed);
    transform: rotate(16deg);
}

.shape-pill {
    top: 37px;
    left: 195px;
    width: 58px;
    height: 19px;
    border-radius: 20px;
    background: #f4ae84;
    transform: rotate(-9deg);
}

.canvas-title {
    position: absolute;
    top: 36px;
    left: 29px;
    color: #25304a;
}

.canvas-title small {
    display: block;
    margin-bottom: 6px;
    color: #8b94a8;
    font-size: 6px;
    font-weight: 700;
    letter-spacing: 1.4px;
}

.canvas-title strong {
    display: block;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 24px;
    font-weight: 400;
    line-height: .92;
}

.canvas-title span {
    display: block;
    width: 31px;
    height: 3px;
    margin-top: 11px;
    border-radius: 4px;
    background: #f4ae84;
}

.canvas-card {
    position: absolute;
    right: 27px;
    bottom: 31px;
    display: flex;
    width: 126px;
    padding: 10px;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, .8);
    border-radius: 11px;
    background: rgba(255, 255, 255, .72);
    box-shadow: 0 9px 20px rgba(42, 56, 91, .08);
    backdrop-filter: blur(8px);
}

.canvas-avatar {
    width: 25px;
    height: 25px;
    flex: 0 0 25px;
    border-radius: 50%;
    background: linear-gradient(145deg, #f6c692, #ee9f87);
}

.canvas-copy {
    display: flex;
    width: 100%;
    flex-direction: column;
    gap: 5px;
}

.canvas-copy i {
    display: block;
    height: 4px;
    border-radius: 4px;
    background: #cbd2df;
}

.canvas-copy i:last-child {
    width: 63%;
    background: #e2e6ee;
}

.preview-stat,
.preview-note {
    position: absolute;
    display: flex;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, .82);
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 15px 35px rgba(5, 13, 38, .23);
    backdrop-filter: blur(12px);
}

.preview-stat {
    top: 105px;
    right: -35px;
    gap: 9px;
    padding: 10px 14px 10px 10px;
    border-radius: 13px;
    transform: rotate(2.1deg);
}

.stat-icon {
    display: inline-flex;
    width: 29px;
    height: 29px;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    color: #fff;
    background: #5b6cff;
    font-size: 10px;
}

.preview-stat > span:last-child,
.preview-note > span:last-child {
    display: flex;
    flex-direction: column;
}

.preview-stat small,
.preview-note small {
    color: #8a94a9;
    font-size: 7px;
    line-height: 1.4;
}

.preview-stat strong {
    color: #26304a;
    font-size: 15px;
    line-height: 1.2;
}

.preview-note {
    bottom: 12px;
    left: -37px;
    gap: 10px;
    padding: 9px 14px 9px 10px;
    border-radius: 13px;
    transform: rotate(2.1deg);
}

.note-avatars {
    display: flex;
}

.note-avatars i {
    display: inline-flex;
    width: 24px;
    height: 24px;
    margin-left: -5px;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    border-radius: 50%;
    color: #fff;
    background: #26385f;
    font-size: 7px;
    font-style: normal;
}

.note-avatars i:first-child {
    margin-left: 0;
    background: #efac85;
}

.note-avatars i:last-child {
    background: #61c9c4;
}

.preview-note strong {
    color: #26304a;
    font-size: 9px;
}

.auth-visual-footer {
    position: relative;
    z-index: 2;
    display: flex;
    margin-top: auto;
    padding-top: 24px;
    justify-content: space-between;
    color: rgba(255, 255, 255, .35);
    font-size: 10px;
    letter-spacing: .4px;
}

.auth-main {
    position: relative;
    display: flex;
    padding: 54px 56px;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at 100% 0, rgba(91, 108, 255, .065), transparent 28%),
        linear-gradient(160deg, #fff 0%, #fbfcff 100%);
}

.auth-main:before {
    position: absolute;
    top: 30px;
    right: 30px;
    width: 72px;
    height: 72px;
    content: "";
    opacity: .5;
    background-image: radial-gradient(#9ba6c6 1px, transparent 1px);
    background-size: 8px 8px;
}

.auth-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 390px;
}

.auth-mobile-brand {
    display: none;
    margin-bottom: 42px;
}

.auth-mobile-brand .brand-mark {
    border-color: rgba(91, 108, 255, .15);
    background: linear-gradient(145deg, #6674ff, #4d5ae2);
    box-shadow: 0 9px 22px rgba(76, 91, 223, .24);
}

.auth-mobile-brand .brand-mark-dot {
    border-color: #5663ea;
}

.auth-mobile-brand .brand-copy strong {
    color: #1e2944;
}

.auth-mobile-brand .brand-copy small {
    color: #98a1b5;
}

.auth-heading {
    margin-bottom: 32px;
}

.auth-kicker {
    display: inline-block;
    margin-bottom: 13px;
    color: var(--auth-primary);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 2.2px;
}

.auth-heading h2 {
    margin: 0 0 10px;
    color: var(--auth-ink);
    font-size: 32px;
    font-weight: 650;
    letter-spacing: -1px;
}

.auth-heading p {
    margin: 0;
    color: var(--auth-muted);
    font-size: 13px;
    line-height: 1.7;
}

.auth-field {
    position: relative;
    margin-bottom: 20px;
}

.auth-field > label {
    display: block;
    margin-bottom: 8px;
    color: #4b566d;
    font-size: 12px;
    font-weight: 600;
}

.field-control {
    position: relative;
    display: flex;
    align-items: center;
}

.field-control > i {
    position: absolute;
    z-index: 1;
    left: 16px;
    color: #a1aabc;
    font-size: 14px;
    pointer-events: none;
}

.auth-body .auth-field .form-control {
    width: 100%;
    height: 51px !important;
    padding: 0 48px 0 43px !important;
    border: 1px solid var(--auth-border);
    border-radius: 12px !important;
    color: #27324c;
    background: #f9faff;
    box-shadow: none !important;
    font-size: 13px;
    transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

.auth-body .auth-field .form-control::placeholder {
    color: #aeb5c5;
}

.auth-body .auth-field .form-control:hover {
    border-color: #d7dce9;
}

.auth-body .auth-field .form-control:focus {
    border-color: rgba(91, 108, 255, .6) !important;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(91, 108, 255, .1) !important;
}

.field-control label.error {
    position: absolute;
    bottom: -19px;
    left: 3px;
    padding: 0;
    color: #e45770;
    font-size: 10px;
    font-weight: 500;
    line-height: 1.2;
}

.field-control label.error i {
    position: static;
    margin-right: 3px;
}

.password-toggle {
    position: absolute;
    z-index: 2;
    right: 10px;
    display: inline-flex;
    width: 34px;
    height: 34px;
    padding: 0;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 9px;
    outline: 0;
    color: #9ba4b7;
    background: transparent;
    transition: color .18s ease, background .18s ease;
}

.password-toggle:hover,
.password-toggle:focus {
    color: var(--auth-primary);
    background: rgba(91, 108, 255, .08);
}

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

.captcha-image {
    position: relative;
    display: flex;
    height: 54px;
    overflow: hidden;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--auth-border);
    border-radius: 12px;
    background: #f9faff;
    text-decoration: none !important;
}

.captcha-image img {
    display: block;
    width: 100%;
    height: 100%;
    /* contain：算式验证码是固定宽高的位图，cover 会裁掉左右两端，导致数字读不全 */
    object-fit: contain;
}

.captcha-image span {
    position: absolute;
    right: 4px;
    bottom: 4px;
    padding: 2px 5px;
    border-radius: 5px;
    color: rgba(52, 63, 88, .62);
    background: rgba(255, 255, 255, .8);
    font-size: 8px;
    opacity: 0;
    transition: opacity .18s ease;
}

.captcha-image:hover span {
    opacity: 1;
}

.auth-options {
    display: flex;
    min-height: 24px;
    margin: 2px 0 22px;
    align-items: center;
    justify-content: space-between;
}

.remember-check {
    display: inline-flex;
    margin: 0;
    align-items: center;
    gap: 8px;
    color: #5c667b;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
}

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

.remember-check .check-box {
    display: inline-flex;
    width: 18px;
    height: 18px;
    align-items: center;
    justify-content: center;
    border: 1px solid #d4d9e5;
    border-radius: 5px;
    color: transparent;
    background: #fff;
    font-size: 9px;
    transition: all .18s ease;
}

.remember-check input:checked + .check-box {
    border-color: var(--auth-primary);
    color: #fff;
    background: var(--auth-primary);
    box-shadow: 0 5px 12px rgba(91, 108, 255, .22);
}

.remember-check input:focus + .check-box {
    box-shadow: 0 0 0 3px rgba(91, 108, 255, .13);
}

.secure-tip {
    color: #9ca5b6;
    font-size: 10px;
}

.secure-tip i {
    margin-right: 4px;
    color: #7ac7a4;
}

.auth-body .auth-submit {
    display: flex;
    width: 100%;
    height: 52px;
    padding: 0 19px;
    align-items: center;
    justify-content: space-between;
    border: 0;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(120deg, #5b6cff 0%, #4e5ce3 55%, #4351cf 100%);
    box-shadow: 0 14px 28px rgba(78, 92, 227, .28);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .2px;
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.auth-body .auth-submit:hover,
.auth-body .auth-submit:focus {
    color: #fff;
    filter: brightness(1.04);
    transform: translateY(-1px);
    box-shadow: 0 18px 33px rgba(78, 92, 227, .34);
}

.auth-body .auth-submit:active {
    transform: translateY(0);
    box-shadow: 0 9px 20px rgba(78, 92, 227, .24);
}

.auth-body .auth-submit i {
    display: inline-flex;
    width: 30px;
    height: 30px;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: rgba(255, 255, 255, .12);
    font-size: 11px;
}

.auth-register {
    margin-top: 19px;
    color: #8d96a8;
    font-size: 11px;
    text-align: center;
}

.auth-register a {
    margin-left: 3px;
    color: var(--auth-primary);
    font-weight: 600;
    text-decoration: none;
}

.auth-security {
    display: flex;
    margin-top: 38px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    color: #b0b7c6;
    font-size: 9px;
    letter-spacing: .15px;
}

.auth-security i {
    margin-right: 3px;
    color: #8dc7b0;
}

.security-divider {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #d8dde7;
}

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

body .layer-ext-moon-msg {
    border: 0;
    color: #fff;
    background-color: rgba(13, 22, 45, .88);
    box-shadow: 0 10px 28px rgba(17, 27, 55, .2);
    backdrop-filter: blur(8px);
}

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

@media screen and (max-width: 1080px) {
    .auth-shell {
        grid-template-columns: minmax(0, 1fr) 440px;
    }

    .auth-visual {
        padding-right: 36px;
        padding-left: 36px;
    }

    .design-preview {
        width: 94%;
    }
}

@media screen and (max-width: 900px) {
    body.signin.auth-body {
        display: flex;
        padding: 22px;
        align-items: center;
        justify-content: center;
    }

    .auth-shell {
        display: block;
        width: min(520px, 100%);
        min-height: 0;
        border-radius: 26px;
    }

    .auth-visual {
        display: none;
    }

    .auth-main {
        min-height: 680px;
        padding: 48px 48px 40px;
    }

    .auth-mobile-brand {
        display: flex;
    }
}

@media screen and (max-width: 520px) {
    body.signin.auth-body {
        padding: 0;
        background: #fbfcff;
    }

    .auth-shell {
        width: 100%;
        min-height: 100vh;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .auth-main {
        min-height: 100vh;
        padding: 38px 24px 28px;
        align-items: flex-start;
    }

    .auth-main:before {
        display: none;
    }

    .auth-mobile-brand {
        margin-bottom: 54px;
    }

    .auth-heading {
        margin-bottom: 29px;
    }

    .auth-heading h2 {
        font-size: 29px;
    }

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

    .auth-security {
        margin-top: 32px;
    }
}
