:root {
    --auth-bg: #eef1f6;
    --auth-surface: #f8f9fb;
    --auth-panel: #ffffff;
    --auth-ink: #111318;
    --auth-ink-2: #3f4652;
    --auth-ink-3: #747d8c;
    --auth-line: #dfe4ec;
    --auth-line-strong: #cbd3df;
    --auth-accent: #3056d3;
    --auth-accent-hover: #2448c2;
    --auth-accent-soft: #edf2ff;
    --auth-danger: #d92d20;
    --auth-radius: 16px;
    --auth-radius-lg: 28px;
    --auth-shadow: 0 32px 90px rgba(25, 35, 58, .14);
    --auth-font: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

body.um-auth-page {
    min-width: 320px;
    padding: 0;
    background: var(--auth-bg);
    color: var(--auth-ink);
    font-family: var(--auth-font);
    overflow-x: hidden;
}

body.um-auth-page > .navbar,
body.um-auth-page > .footer {
    display: none !important;
}

body.um-auth-page main.content {
    min-height: 100dvh;
    padding: 0;
    overflow: hidden;
}

.um-auth,
.um-auth * {
    box-sizing: border-box;
}

.um-auth {
    position: relative;
    display: flex;
    min-height: 100dvh;
    padding: 20px;
    background:
        radial-gradient(circle at 10% 8%, rgba(48, 86, 211, .10), transparent 28%),
        radial-gradient(circle at 88% 92%, rgba(17, 19, 24, .06), transparent 30%),
        var(--auth-bg);
    isolation: isolate;
}

.um-auth-shell {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.18fr) minmax(430px, .82fr);
    width: min(1560px, 100%);
    min-height: calc(100dvh - 40px);
    margin: auto;
    overflow: hidden;
    border: 1px solid rgba(203, 211, 223, .78);
    border-radius: var(--auth-radius-lg);
    background: var(--auth-surface);
    box-shadow: var(--auth-shadow);
}

.um-auth-scene {
    position: relative;
    min-width: 0;
    min-height: 680px;
    overflow: hidden;
    color: #f7f8fb;
    background: #0c111d;
}

.um-auth-scene::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(8, 13, 24, .86) 0%, rgba(8, 13, 24, .50) 42%, rgba(8, 13, 24, .06) 72%),
        linear-gradient(0deg, rgba(8, 13, 24, .74) 0%, transparent 34%);
}

.um-auth-art {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 58% center;
    transform: scale(1.015);
}

.um-auth-brand,
.um-auth-scene-copy,
.um-auth-scene-foot {
    position: absolute;
    z-index: 2;
}

.um-auth-brand {
    top: clamp(28px, 4vw, 52px);
    left: clamp(28px, 5vw, 72px);
    display: inline-flex;
    align-items: center;
    min-height: 38px;
}

.um-auth-brand img,
.um-auth-mobile-brand img {
    display: block;
    width: 128px;
    height: auto;
}

.um-auth-brand img {
    filter: grayscale(1) brightness(0) invert(1);
}

.um-auth-scene-copy {
    top: 24%;
    left: clamp(28px, 5vw, 72px);
    width: min(480px, 54%);
}

.um-auth-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
    color: rgba(247, 248, 251, .72);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .08em;
}

.um-auth-kicker i {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 9px;
    color: #a9bfff;
    background: rgba(255, 255, 255, .07);
}

.um-auth-scene-copy h1 {
    max-width: 9em;
    margin: 0 0 22px;
    color: #f8f9fc;
    font-size: clamp(42px, 4.4vw, 68px);
    font-weight: 720;
    line-height: 1.08;
    letter-spacing: -.045em;
}

.um-auth-scene-copy p {
    max-width: 420px;
    margin: 0;
    color: rgba(232, 236, 245, .72);
    font-size: 16px;
    line-height: 1.8;
}

.um-auth-scene-foot {
    right: clamp(28px, 5vw, 72px);
    bottom: clamp(28px, 4vw, 52px);
    left: clamp(28px, 5vw, 72px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, .14);
    color: rgba(236, 239, 247, .66);
    font-size: 13px;
}

.um-auth-scene-foot span {
    display: inline-flex;
    align-items: center;
    gap: 9px;
}

.um-auth-scene-foot i {
    color: #9eb4fa;
}

.um-auth-panel {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 680px;
    overflow-y: auto;
    background:
        linear-gradient(rgba(255, 255, 255, .76), rgba(255, 255, 255, .76)),
        var(--auth-panel);
}

.um-auth-panel::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--auth-accent), #7897f4 62%, transparent);
}

.um-auth-panel-inner {
    width: min(440px, calc(100% - 64px));
    margin: auto;
    padding: 54px 0 44px;
}

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

.um-auth-header {
    margin-bottom: 34px;
}

.um-auth-header-mark {
    display: block;
    margin-bottom: 12px;
    color: var(--auth-accent);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .08em;
}

.um-auth-header h2 {
    margin: 0 0 12px;
    color: var(--auth-ink);
    font-size: clamp(30px, 2.5vw, 38px);
    font-weight: 720;
    line-height: 1.18;
    letter-spacing: -.035em;
}

.um-auth-header p {
    margin: 0;
    color: var(--auth-ink-3);
    font-size: 15px;
    line-height: 1.7;
}

.um-auth-form .form-group {
    position: relative;
    margin-bottom: 20px;
}

.um-auth-form .control-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 9px;
    color: var(--auth-ink-2);
    font-size: 14px;
    font-weight: 650;
}

.um-auth-form .control-label small {
    color: var(--auth-ink-3);
    font-size: 12px;
    font-weight: 400;
}

.um-auth-form .form-control {
    width: 100%;
    min-height: 56px;
    padding: 12px 16px;
    border: 1px solid var(--auth-line);
    border-radius: 12px;
    outline: 0;
    color: var(--auth-ink);
    background: #f7f8fa;
    box-shadow: none;
    font-family: var(--auth-font);
    font-size: 15px;
    transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.um-auth-form .form-control::placeholder {
    color: #929aa7;
    opacity: 1;
}

.um-auth-form .form-control:hover {
    border-color: var(--auth-line-strong);
    background: #fff;
}

.um-auth-form .form-control:focus {
    border-color: var(--auth-accent);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(48, 86, 211, .11);
}

.um-auth-form .input-group {
    display: flex;
    width: 100%;
}

.um-auth-form .input-group .form-control {
    min-width: 0;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.um-auth-form .input-group-btn {
    display: flex;
    width: auto;
    padding: 0 !important;
    border: 0 !important;
}

.um-auth-form .input-group-btn .btn-captcha,
.um-auth-form .input-group-btn img {
    width: auto;
    min-width: 118px;
    height: 56px;
    min-height: 56px;
    margin: 0;
    border: 1px solid var(--auth-line);
    border-left: 0;
    border-radius: 0 12px 12px 0;
}

.um-auth-form .input-group-btn .btn-captcha {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    color: var(--auth-accent);
    background: var(--auth-accent-soft);
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.um-auth-form .input-group-btn .btn-captcha:hover,
.um-auth-form .input-group-btn .btn-captcha:focus {
    color: #fff;
    border-color: var(--auth-accent);
    background: var(--auth-accent);
}

.um-auth-form .input-group-btn img {
    cursor: pointer;
    object-fit: cover;
    background: #fff;
}

.um-auth-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin: 4px 0 26px;
}

.um-auth-options .checkbox {
    margin: 0;
}

.um-auth-options .checkbox label {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 24px;
    padding: 0;
    color: var(--auth-ink-2);
    font-size: 13px;
    font-weight: 500;
    text-indent: 20px;
}

.um-auth-options input[type="checkbox"] {
    width: 17px;
    height: 17px;
    margin: 0;
    accent-color: var(--auth-accent);
}

.um-auth a {
    color: var(--auth-accent);
    text-decoration: none;
}

.um-auth a:hover,
.um-auth a:focus {
    color: var(--auth-accent-hover);
    text-decoration: none;
}

.um-auth-link {
    font-size: 13px;
    font-weight: 650;
}

.um-auth-submit.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 56px;
    padding: 12px 24px;
    border: 1px solid var(--auth-accent);
    border-radius: 12px;
    color: #fff;
    background: var(--auth-accent);
    box-shadow: 0 14px 28px rgba(48, 86, 211, .22);
    font-family: var(--auth-font);
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.um-auth-submit.btn:hover,
.um-auth-submit.btn:focus {
    color: #fff;
    border-color: var(--auth-accent-hover);
    background: var(--auth-accent-hover);
    box-shadow: 0 18px 34px rgba(48, 86, 211, .28);
    outline: 0;
    transform: translateY(-1px);
}

.um-auth-submit.btn:active {
    box-shadow: 0 8px 18px rgba(48, 86, 211, .20);
    transform: translateY(1px) scale(.99);
}

.um-auth-switch {
    margin: 22px 0 0;
    color: var(--auth-ink-3);
    font-size: 14px;
    text-align: center;
}

.um-auth-switch a {
    margin-left: 5px;
    font-weight: 700;
}

.um-auth-form .help-block,
.um-auth-form .msg-box {
    margin: 7px 0 0;
    color: var(--auth-danger);
    font-size: 12px;
    line-height: 1.45;
}

.um-auth-form .n-default .msg-wrap,
.um-auth-form .input-group > .msg-box.n-right {
    position: relative;
}

.um-auth-form .form-group.has-error .form-control {
    border-color: var(--auth-danger);
    box-shadow: 0 0 0 4px rgba(217, 45, 32, .08);
}

.um-auth-register .um-auth-panel-inner {
    padding-top: 36px;
    padding-bottom: 30px;
}

.um-auth-register .um-auth-header {
    margin-bottom: 24px;
}

.um-auth-register .um-auth-form .form-group {
    margin-bottom: 15px;
}

.um-auth-register .um-auth-form .form-control,
.um-auth-register .um-auth-form .input-group-btn .btn-captcha,
.um-auth-register .um-auth-form .input-group-btn img {
    min-height: 52px;
    height: 52px;
}

body.um-auth-page .layui-layer-fast,
body.um-auth-page .layui-layer-page {
    overflow: hidden;
    border-radius: var(--auth-radius);
    box-shadow: 0 30px 80px rgba(17, 19, 24, .24);
}

body.um-auth-page #resetpwd-form {
    padding: 18px 18px 4px;
}

body.um-auth-page #resetpwd-form .form-control {
    min-height: 42px;
    border-color: var(--auth-line);
    border-radius: 9px;
    box-shadow: none;
}

body.um-auth-page #resetpwd-form .btn {
    border-radius: 9px;
}

@media (prefers-reduced-motion: no-preference) {
    .um-auth-shell {
        animation: um-auth-shell-in .68s cubic-bezier(.16, 1, .3, 1) both;
    }

    .um-auth-scene-copy,
    .um-auth-scene-foot {
        animation: um-auth-copy-in .72s .14s cubic-bezier(.16, 1, .3, 1) both;
    }

    .um-auth-panel-inner {
        animation: um-auth-panel-in .72s .2s cubic-bezier(.16, 1, .3, 1) both;
    }
}

@keyframes um-auth-shell-in {
    from { opacity: 0; transform: translateY(14px) scale(.992); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes um-auth-copy-in {
    from { opacity: 0; transform: translateX(-18px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes um-auth-panel-in {
    from { opacity: 0; transform: translateX(18px); }
    to { opacity: 1; transform: translateX(0); }
}

@media (max-width: 1180px) {
    .um-auth-shell {
        grid-template-columns: minmax(0, 1fr) minmax(420px, .88fr);
    }

    .um-auth-scene-copy {
        width: 62%;
    }

    .um-auth-scene-copy h1 {
        font-size: 48px;
    }
}

@media (max-width: 900px) {
    .um-auth {
        align-items: flex-start;
        padding: 14px;
    }

    .um-auth-shell {
        display: block;
        min-height: calc(100dvh - 28px);
    }

    .um-auth-scene {
        min-height: 300px;
    }

    .um-auth-art {
        object-position: 62% 48%;
    }

    .um-auth-brand {
        top: 28px;
        left: 32px;
    }

    .um-auth-scene-copy {
        top: 108px;
        left: 32px;
        width: 48%;
    }

    .um-auth-scene-copy h1 {
        margin-bottom: 12px;
        font-size: 38px;
    }

    .um-auth-scene-copy p,
    .um-auth-kicker,
    .um-auth-scene-foot {
        display: none;
    }

    .um-auth-panel {
        min-height: 0;
        overflow: visible;
    }

    .um-auth-panel-inner {
        width: min(500px, calc(100% - 48px));
        padding: 48px 0;
    }
}

@media (max-width: 620px) {
    .um-auth {
        padding: 0;
        background: var(--auth-panel);
    }

    .um-auth-shell {
        min-height: 100dvh;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .um-auth-scene {
        min-height: 210px;
    }

    .um-auth-scene::after {
        background: linear-gradient(90deg, rgba(8, 13, 24, .86), rgba(8, 13, 24, .18));
    }

    .um-auth-brand {
        top: 22px;
        left: 22px;
    }

    .um-auth-brand img {
        width: 112px;
    }

    .um-auth-scene-copy {
        top: 86px;
        left: 22px;
        width: 58%;
    }

    .um-auth-scene-copy h1 {
        font-size: 30px;
        line-height: 1.12;
    }

    .um-auth-panel-inner,
    .um-auth-register .um-auth-panel-inner {
        width: calc(100% - 40px);
        padding: 34px 0 42px;
    }

    .um-auth-header,
    .um-auth-register .um-auth-header {
        margin-bottom: 26px;
    }

    .um-auth-header h2 {
        font-size: 30px;
    }

    .um-auth-form .form-control,
    .um-auth-register .um-auth-form .form-control,
    .um-auth-form .input-group-btn .btn-captcha,
    .um-auth-register .um-auth-form .input-group-btn .btn-captcha,
    .um-auth-form .input-group-btn img,
    .um-auth-register .um-auth-form .input-group-btn img {
        min-height: 52px;
        height: 52px;
    }

    .um-auth-options {
        align-items: flex-start;
    }

    .um-auth-submit.btn {
        min-height: 54px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .um-auth *,
    .um-auth *::before,
    .um-auth *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}
