/* One self-contained auth layer. It intentionally follows user.css and avoids competing legacy auth rules. */
:root {
    --auth-bg: #eef4fd;
    --auth-warm: #faf6f2;
    --auth-ink: #25344f;
    --auth-muted: #6d7d95;
    --auth-faint: #9aa9bd;
    --auth-line: #d3deed;
    --auth-blue: #58bdf0;
    --auth-blue-dark: #3b9fd2;
    --auth-teal: #7bb8bd;
    --auth-white: rgba(255, 255, 255, .78);
    --auth-focus: rgba(88, 189, 240, .16);
}

.user-auth-body {
    min-width: 320px;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    overflow-y: auto;
    color: var(--auth-ink);
    background: linear-gradient(112deg, #eef3ff 0%, var(--auth-bg) 52%, var(--auth-warm) 100%);
    font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
    -webkit-overflow-scrolling: touch;
}

.user-auth-body *,
.user-auth-body *::before,
.user-auth-body *::after {
    box-sizing: border-box;
    letter-spacing: 0;
}

.user-auth-body input,
.user-auth-body button {
    font: inherit;
}

.user-auth-body [hidden] {
    display: none !important;
}

.user-auth-shell {
    position: relative;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    display: grid;
    grid-template-columns: minmax(0, 54fr) minmax(440px, 46fr);
    overflow: hidden;
    border: 1px solid rgba(151, 191, 220, .42);
    border-radius: 8px;
    background: linear-gradient(112deg, #eef3ff 0%, var(--auth-bg) 52%, var(--auth-warm) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .72), 0 18px 55px rgba(72, 109, 158, .08);
    animation: auth-enter .55s cubic-bezier(.2, .75, .25, 1) both;
}

/* Desktop illustration column. The bitmap remains the source of truth for the art. */
.auth-side {
    position: relative;
    min-width: 0;
    display: flex;
    flex-direction: column;
    padding: clamp(24px, 4vh, 46px) clamp(34px, 5vw, 72px) 42px clamp(34px, 6.2vw, 90px);
    overflow: hidden;
    color: var(--auth-ink);
    background: #edf3ff;
}

.auth-side-top {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.auth-side-top > span {
    min-width: 0;
    max-width: calc(100% - 56px);
}

.auth-side-top strong,
.auth-side-top small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.auth-side-top strong {
    color: #17253d;
    font-family: "STKaiti", "KaiTi", "Noto Serif SC", serif;
    font-size: clamp(17px, 1.25vw, 22px);
    font-weight: 800;
}

.auth-side-top small {
    margin-top: 3px;
    color: #71819a;
    font-size: 10px;
}

.auth-side-mark,
.auth-side-logo {
    width: 50px;
    height: 50px;
    flex: 0 0 auto;
    border: 1px solid rgba(110, 174, 219, .28);
    border-radius: 8px;
    background: rgba(255, 255, 255, .74);
    box-shadow: 0 8px 22px rgba(75, 126, 174, .08);
}

.auth-side-mark {
    display: grid;
    place-items: center;
    color: var(--auth-blue-dark);
    font-family: "STKaiti", "KaiTi", serif;
    font-size: 19px;
    font-weight: 800;
}

.auth-side-logo {
    padding: 3px;
    object-fit: contain;
}

.auth-side-art {
    position: relative;
    width: min(100%, 650px);
    min-height: 280px;
    display: grid;
    place-items: center;
    flex: 1 1 auto;
    margin: clamp(18px, 3.5vh, 42px) auto 0;
}

.auth-character-stage {
    position: relative;
    width: min(100%, 615px);
    aspect-ratio: 760 / 620;
    animation: auth-float 5.8s ease-in-out infinite;
    will-change: transform;
}

.auth-character-stage > img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 22px 26px rgba(71, 124, 173, .09));
    mix-blend-mode: multiply;
}

.character-eye {
    position: absolute;
    z-index: 1;
    display: block;
    aspect-ratio: 1;
    pointer-events: none;
    transform-origin: center;
    animation: auth-blink 7.4s ease-in-out infinite;
}

.character-eye > span {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 38%;
    height: 38%;
    border-radius: 50%;
    background: #192943;
    transform: translate(calc(-50% + var(--eye-x, 0px)), calc(-50% + var(--eye-y, 0px)));
    transition: transform .16s ease;
}

.character-eye.is-light {
    width: 3.5%;
    border-radius: 50%;
    background: #fff;
}

.character-eye.is-dot {
    width: 2.7%;
}

.character-eye.is-dot > span {
    width: 63%;
    height: 63%;
}

.eye-blue-one { top: 17.7%; left: 33%; }
.eye-blue-two { top: 17.7%; left: 39.7%; }
.eye-navy-one { top: 34.8%; left: 57.1%; }
.eye-navy-two { top: 34.8%; left: 62.8%; }
.eye-orange-one { top: 73.5%; left: 25.9%; }
.eye-orange-two { top: 73.5%; left: 31.3%; }
.eye-yellow-one { top: 56.1%; left: 74.3%; }
.eye-yellow-two { top: 56.1%; left: 79.2%; }

.character-eye:nth-of-type(3n) { animation-delay: .16s; }
.character-eye:nth-of-type(4n) { animation-delay: .31s; }

.auth-live {
    position: absolute;
    left: 57%;
    bottom: 2%;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 12px;
    border: 1px solid rgba(255, 255, 255, .94);
    border-radius: 8px;
    color: #71829c;
    background: rgba(255, 255, 255, .8);
    box-shadow: 0 8px 20px rgba(77, 116, 158, .07);
    font-size: 9px;
    white-space: nowrap;
    transform: translateX(-50%);
}

.auth-live b {
    width: 6px;
    height: 6px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: #61cdb0;
    box-shadow: 0 0 0 4px rgba(97, 205, 176, .14);
    animation: auth-pulse 1.8s ease-in-out infinite;
}

.auth-side-caption {
    display: block;
    margin: 14px 0 4px;
    color: #64758f;
    font-size: 10px;
    line-height: 1.6;
}

/* Form column. The column owns its width so controls never shrink into the icons. */
.user-auth-shell .user-auth-card {
    position: relative;
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: clamp(22px, 4vh, 48px) clamp(28px, 4vw, 58px);
    border: 0;
    border-left: 1px solid rgba(213, 223, 237, .24);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.auth-card-brand {
    display: none;
}

.auth-heading,
.auth-form,
.auth-switch,
.user-alert {
    width: min(100%, 489px);
    min-width: 0;
}

.auth-panel-head {
    display: none;
}

.auth-device-icon {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    color: #586b86;
}

.auth-device-icon svg {
    width: 17px;
    height: 17px;
    stroke-width: 1.8;
}

.auth-page-tabs,
.auth-mode-tabs,
.auth-channel-tabs,
.register-channel-tabs {
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
}

.auth-page-tabs {
    width: 100%;
}

.auth-page-tabs a {
    min-width: 0;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid transparent;
    border-radius: 8px;
    color: #63738c;
    background: transparent;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color .18s ease, background-color .18s ease, box-shadow .18s ease;
}

.auth-page-tabs a:hover {
    color: var(--auth-blue-dark);
    background: rgba(255, 255, 255, .42);
}

.auth-page-tabs a.is-active {
    color: #fff;
    background: linear-gradient(100deg, #54baf0, #70c9ec);
    box-shadow: 0 10px 22px rgba(72, 181, 225, .18);
}

.auth-heading {
    display: block;
    margin: 0 0 19px;
}

.auth-heading .eyebrow {
    margin: 0 0 5px;
    color: var(--auth-blue-dark);
    font-size: 10px;
    font-weight: 800;
    line-height: 1.4;
}

.auth-heading h1 {
    margin: 0;
    color: #302d29;
    font-family: "STKaiti", "KaiTi", "BiauKai", "Songti SC", serif;
    font-size: 27px;
    font-weight: 800;
    line-height: 1.3;
}

.auth-heading > p:last-child {
    margin: 5px 0 0;
    color: #746f68;
    font-size: 10px;
    line-height: 1.6;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.auth-form > label,
.auth-mode-panel > label,
.register-channel-panel > label {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    color: #41516a;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.25;
}

.auth-mode-panel,
.register-channel-panel {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0;
    border: 0;
    background: transparent;
    animation: auth-panel-in .22s ease-out both;
}

.auth-login-page .auth-mode-panel {
    gap: 24px;
}

.auth-register-page .auth-form,
.auth-register-page .register-channel-panel {
    gap: 11px;
}

.auth-mode-panel label + label,
.register-channel-panel label + label {
    margin-top: 0;
}

.auth-field-control,
.password-wrap {
    position: relative;
    min-width: 0;
    height: 48px;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 0 13px;
    overflow: hidden;
    border: 1px solid var(--auth-line);
    border-radius: 8px;
    background: var(--auth-white);
    box-shadow: 0 7px 18px rgba(78, 108, 148, .045);
    transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease, transform .18s ease;
}

.auth-field-control:focus-within,
.password-wrap:focus-within {
    border-color: #69bbe5;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 0 0 3px var(--auth-focus), 0 9px 20px rgba(76, 128, 173, .07);
    transform: translateY(-1px);
}

.auth-field-control > svg,
.password-wrap > svg {
    width: 15px;
    height: 15px;
    flex: 0 0 auto;
    color: #7d8fa8;
}

.auth-field-control input,
.password-wrap input {
    width: 100%;
    min-width: 0;
    height: 100%;
    padding: 0;
    overflow: hidden;
    border: 0;
    outline: 0;
    color: var(--auth-ink);
    background: transparent;
    box-shadow: none;
    font-size: 12px;
    text-overflow: ellipsis;
}

.auth-field-control input:focus,
.password-wrap input:focus {
    border: 0;
    box-shadow: none;
}

.auth-field-control input::placeholder,
.password-wrap input::placeholder {
    color: var(--auth-faint);
    opacity: 1;
}

.password-wrap {
    padding-right: 45px;
}

.password-toggle {
    position: absolute;
    top: 4px;
    right: 5px;
    width: 35px;
    height: 35px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 8px;
    color: #7f90a8;
    background: transparent;
    cursor: pointer;
}

.password-toggle:hover,
.password-toggle:focus-visible {
    color: var(--auth-blue-dark);
    background: #eaf8ff;
    outline: 0;
}

.password-toggle svg {
    width: 15px;
    height: 15px;
}

.auth-mode-tabs {
    padding: 3px;
    border: 1px solid rgba(211, 222, 237, .76);
    border-radius: 8px;
    background: rgba(255, 255, 255, .32);
}

.auth-mode-tabs button {
    min-width: 0;
    height: 36px;
    overflow: hidden;
    border: 0;
    border-radius: 7px;
    color: #73829a;
    background: transparent;
    cursor: pointer;
    font-size: 10px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.auth-mode-tabs button.is-active {
    color: var(--auth-blue-dark);
    background: rgba(255, 255, 255, .9);
    box-shadow: 0 4px 12px rgba(70, 105, 145, .07);
}

.auth-channel-tabs,
.register-channel-tabs {
    gap: 6px;
}

.auth-channel-tabs button,
.register-channel-tabs button {
    min-width: 0;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 0 8px;
    overflow: hidden;
    border: 1px solid var(--auth-line);
    border-radius: 8px;
    color: #73839a;
    background: rgba(255, 255, 255, .48);
    cursor: pointer;
    font-size: 10px;
    text-align: center;
    transition: border-color .18s ease, color .18s ease, background-color .18s ease, box-shadow .18s ease;
}

.auth-channel-tabs button > svg,
.register-channel-tabs button > svg {
    width: 14px;
    height: 14px;
    flex: 0 0 auto;
    color: #8a9ab0;
}

.register-channel-tabs button > span {
    min-width: 0;
    overflow: hidden;
    font-size: 11px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.register-channel-tabs button > small {
    min-width: 0;
    display: block;
    overflow: hidden;
    color: #8494aa;
    font-size: 8px;
    font-weight: 500;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.register-channel-tabs button {
    min-height: 68px;
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 8px;
    row-gap: 2px;
    justify-content: stretch;
    padding: 0 15px;
    text-align: left;
}

.register-channel-tabs button > svg {
    grid-row: 1 / 3;
    align-self: center;
    width: 17px;
    height: 17px;
}

.auth-channel-tabs button.is-active,
.register-channel-tabs button.is-active,
.auth-channel-tabs button:hover,
.register-channel-tabs button:hover {
    border-color: #a9d5ed;
    color: var(--auth-blue-dark);
    background: #ebf8ff;
    box-shadow: 0 0 0 3px rgba(88, 189, 240, .08);
}

.verification-code-row {
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 104px;
    gap: 6px;
    align-items: center;
}

.verification-code-row .button.secondary {
    min-width: 0;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 0 6px;
    overflow: hidden;
    border: 1px solid #a9d5ed;
    border-radius: 8px;
    color: var(--auth-blue-dark);
    background: rgba(255, 255, 255, .7);
    cursor: pointer;
    font-size: 8px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.verification-code-row .button.secondary:hover:not(:disabled) {
    color: #fff;
    background: var(--auth-blue-dark);
    transform: translateY(-1px);
}

.verification-code-row .button.secondary svg {
    width: 12px;
    height: 12px;
    flex: 0 0 auto;
}

.captcha-row {
    min-width: 0;
    display: grid;
    grid-template-columns: 128px 38px minmax(0, 1fr);
    gap: 5px;
    align-items: center;
}

.captcha-image,
.captcha-row input,
.captcha-row .icon-button {
    height: 44px;
    min-width: 0;
    border-radius: 8px;
}

.captcha-image {
    width: 128px;
    border: 1px solid var(--auth-line);
    object-fit: cover;
}

.captcha-row input {
    width: 100%;
    padding: 0 9px;
    border: 1px solid var(--auth-line);
    outline: 0;
    color: var(--auth-ink);
    background: var(--auth-white);
    font-size: 10px;
}

.captcha-row .icon-button {
    width: 38px;
    display: grid;
    place-items: center;
    border: 1px solid var(--auth-line);
    color: #71829b;
    background: rgba(255, 255, 255, .66);
}

.captcha-row input:focus {
    border-color: #69bbe5;
    box-shadow: 0 0 0 3px var(--auth-focus);
}

.geetest-box {
    width: 100%;
    min-height: 44px;
    max-width: 100%;
    display: flex;
    align-items: center;
    overflow: hidden;
    border: 1px solid var(--auth-line);
    border-radius: 8px;
    color: var(--auth-muted);
    background: rgba(255, 255, 255, .58);
    font-size: 10px;
}

.geetest-box iframe {
    max-width: 100%;
    border: 0;
}

.geetest-box.is-verified {
    border-color: #b8dfc8;
    color: #2d8b63;
    background: #f2fbf6;
}

.geetest-box.is-error,
.verification-inline-status.is-error {
    color: #b74d5b;
}

.verification-inline-status {
    min-height: 0;
    margin: -1px 0 0;
    padding: 0 2px;
    overflow-wrap: anywhere;
    color: var(--auth-muted);
    font-size: 8px;
    line-height: 1.35;
}

.verification-inline-status:empty {
    display: none;
}

.auth-register-page .captcha-row + .verification-inline-status + label,
.auth-register-page .geetest-box + .verification-inline-status + label,
.auth-login-page .captcha-row + .verification-inline-status + .auth-submit,
.auth-login-page .geetest-box + .verification-inline-status + .auth-submit {
    margin-top: 20px;
}

.auth-register-page .captcha-row + .verification-inline-status + label,
.auth-register-page .geetest-box + .verification-inline-status + label {
    margin-top: 14px;
}

.portal-button.auth-submit,
.user-auth-card .portal-button {
    width: 100%;
    min-height: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 1px;
    overflow: hidden;
    border: 0;
    border-radius: 8px;
    color: #fff !important;
    background: linear-gradient(100deg, #51b9ec, var(--auth-teal));
    box-shadow: 0 13px 26px rgba(72, 171, 211, .18);
    cursor: pointer;
    font-size: 12px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.portal-button.auth-submit:hover:not(:disabled),
.user-auth-card .portal-button:hover:not(:disabled) {
    box-shadow: 0 16px 30px rgba(72, 171, 211, .24);
    transform: translateY(-2px);
}

.portal-button.auth-submit:disabled,
.user-auth-card .portal-button:disabled {
    cursor: wait;
    opacity: .72;
}

.user-alert {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin: 0 0 8px;
    padding: 8px 10px;
    border-radius: 8px;
    overflow-wrap: anywhere;
    font-size: 8px;
    line-height: 1.45;
}

.user-alert svg {
    width: 13px;
    height: 13px;
    flex: 0 0 auto;
}

.auth-switch {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 9px;
    margin: 10px 0 0;
    color: var(--auth-muted);
    font-size: 10px;
    line-height: 1.4;
    text-align: center;
}

.auth-switch a {
    color: var(--auth-blue-dark);
    font-weight: 800;
}

.back-home {
    position: absolute;
    z-index: 2;
    top: clamp(20px, 3.5vh, 42px);
    right: clamp(28px, 4vw, 58px);
    left: auto;
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 11px;
    border: 1px solid rgba(255, 255, 255, .9);
    border-radius: 8px;
    color: #5f708a;
    background: rgba(255, 255, 255, .7);
    font-size: 9px;
    text-decoration: none;
    white-space: nowrap;
}

.back-home svg {
    width: 14px;
    height: 14px;
}

.auth-page-tabs a:focus-visible,
.auth-mode-tabs button:focus-visible,
.auth-channel-tabs button:focus-visible,
.register-channel-tabs button:focus-visible,
.password-toggle:focus-visible,
.portal-button.auth-submit:focus-visible {
    outline: 3px solid rgba(55, 158, 211, .22);
    outline-offset: 2px;
}

@keyframes auth-enter {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes auth-panel-in {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes auth-float {
    0%, 100% { transform: translateY(0) rotate(-.3deg); }
    50% { transform: translateY(-7px) rotate(.3deg); }
}

@keyframes auth-blink {
    0%, 44%, 48%, 52%, 100% { transform: scaleY(1); }
    46%, 50% { transform: scaleY(.12); }
}

@keyframes auth-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: .45; transform: scale(.72); }
}

@media (max-height: 720px) and (min-width: 861px) {
    .auth-side {
        padding-top: 18px;
        padding-bottom: 14px;
    }

    .auth-side-mark,
    .auth-side-logo {
        width: 42px;
        height: 42px;
    }

    .auth-side-art {
        min-height: 220px;
        margin-top: 12px;
    }

    .user-auth-shell .user-auth-card {
        padding-top: 16px;
        padding-bottom: 12px;
    }

    .auth-panel-head {
        gap: 8px;
        margin-bottom: 9px;
    }

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

    .auth-heading .eyebrow {
        margin-bottom: 3px;
        font-size: 8px;
    }

    .auth-heading h1 {
        font-size: 22px;
    }

    .auth-heading > p:last-child {
        margin-top: 3px;
        font-size: 8px;
    }

    .auth-page-tabs a {
        height: 39px;
    }

    .auth-form,
    .auth-mode-panel,
    .register-channel-panel {
        gap: 5px;
    }

    .auth-form > label,
    .auth-mode-panel > label,
    .register-channel-panel > label {
        gap: 2px;
        font-size: 8px;
    }

    .auth-field-control,
    .password-wrap,
    .verification-code-row .button.secondary {
        height: 40px;
    }

    .password-toggle {
        top: 2px;
    }

    .auth-channel-tabs button,
    .register-channel-tabs button {
        min-height: 36px;
    }

    .auth-mode-tabs button {
        height: 33px;
    }

    .captcha-image,
    .captcha-row input,
    .captcha-row .icon-button {
        height: 36px;
    }

    .geetest-box {
        min-height: 36px;
    }

    .portal-button.auth-submit,
    .user-auth-card .portal-button {
        min-height: 42px;
        height: 42px;
    }
}

@media (max-width: 1100px) and (min-width: 901px) {
    .user-auth-shell .user-auth-card {
        padding-right: 24px;
        padding-left: 24px;
    }
}

@media (min-width: 901px) {
    .auth-login-page .auth-heading,
    .auth-login-page .auth-form,
    .auth-login-page .auth-switch,
    .auth-login-page .user-alert {
        transform: translateY(18px);
    }

    .auth-register-page .auth-heading,
    .auth-register-page .auth-form,
    .auth-register-page .auth-switch,
    .auth-register-page .user-alert {
        transform: translateY(12px);
    }
}

@media (max-width: 900px) {
    .user-auth-body {
        display: block;
        padding: 0;
        background: linear-gradient(145deg, #eaf7ff 0%, var(--auth-bg) 58%, var(--auth-warm) 100%);
    }

    .user-auth-shell {
        min-height: 100vh;
        min-height: 100dvh;
        display: block;
        overflow: visible;
        animation: none;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }

    .auth-side {
        display: none;
    }

    .user-auth-shell .user-auth-card {
        width: min(100%, 620px);
        min-height: 100vh;
        min-height: 100dvh;
        margin: 0 auto;
        padding: 14px 20px 18px;
        overflow: visible;
        border-left: 0;
        justify-content: flex-start;
    }

    .auth-login-page .user-auth-card {
        padding: 24px 22px 20px;
    }

    .auth-register-page .user-auth-card {
        padding: 18px 16px 16px;
    }

    .auth-card-brand {
        max-width: calc(100% - 112px);
        display: inline-flex;
        align-items: center;
        align-self: flex-start;
        gap: 8px;
        color: var(--auth-ink);
        text-decoration: none;
    }

    .auth-card-brand .brand-logo,
    .auth-card-brand .brand-mark {
        width: 36px;
        height: 36px;
        flex: 0 0 auto;
        border: 1px solid rgba(110, 174, 219, .28);
        border-radius: 8px;
        background: rgba(255, 255, 255, .72);
    }

    .auth-card-brand .brand-logo {
        padding: 2px;
        object-fit: contain;
    }

    .auth-card-brand .brand-mark {
        display: grid;
        place-items: center;
        color: var(--auth-blue-dark);
        font-family: "STKaiti", "KaiTi", serif;
        font-size: 15px;
        font-weight: 800;
    }

    .auth-card-brand > span:last-child {
        min-width: 0;
    }

    .auth-card-brand strong,
    .auth-card-brand small {
        display: block;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .auth-card-brand strong {
        color: var(--auth-ink);
        font-family: "STKaiti", "KaiTi", "Noto Serif SC", serif;
        font-size: 12px;
    }

    .auth-card-brand small {
        margin-top: 2px;
        color: var(--auth-muted);
        font-size: 8px;
    }

    .auth-panel-head {
        display: none;
    }

    .auth-device-icon {
        display: none;
    }

    .auth-page-tabs a {
        min-height: 42px;
        height: 42px;
    }

    .back-home {
        top: 24px;
        right: 22px;
        left: auto;
        min-height: 38px;
        padding: 0 9px;
    }

    .auth-register-page .back-home {
        top: 18px;
        right: 16px;
        min-height: 30px;
    }

    .auth-heading {
        margin: 60px 0 35px;
    }

    .auth-register-page .auth-heading {
        margin: 37px 0 17px;
    }

    .auth-heading .eyebrow {
        margin-bottom: 6px;
        font-size: 12px;
    }

    .auth-heading h1 {
        font-size: 28px;
    }

    .auth-heading > p:last-child {
        margin-top: 7px;
        font-size: 13px;
    }

    .auth-register-page .auth-heading .eyebrow {
        font-size: 10px;
    }

    .auth-register-page .auth-heading h1 {
        font-size: 23px;
    }

    .auth-register-page .auth-heading > p:last-child {
        margin-top: 5px;
        font-size: 10px;
    }

    .auth-form,
    .auth-mode-panel,
    .register-channel-panel {
        gap: 7px;
    }

    .auth-form > label,
    .auth-mode-panel > label,
    .register-channel-panel > label {
        gap: 3px;
        font-size: 11px;
    }

    .auth-field-control,
    .password-wrap,
    .verification-code-row .button.secondary {
        height: 42px;
    }

    .auth-login-page .auth-field-control,
    .auth-login-page .password-wrap {
        height: 56px;
    }

    .auth-login-page .auth-mode-panel {
        gap: 27px;
    }

    .auth-login-page .auth-mode-panel > label {
        gap: 8px;
    }

    .auth-field-control input,
    .password-wrap input {
        font-size: 13px;
    }

    .auth-channel-tabs button,
    .register-channel-tabs button {
        min-height: 42px;
    }

    .register-channel-tabs button {
        min-height: 54px;
        grid-template-columns: 24px minmax(0, 1fr);
        padding: 0 12px;
    }

    .auth-register-page .auth-form,
    .auth-register-page .register-channel-panel {
        gap: 10px;
    }

    .register-channel-tabs button > span {
        font-size: 10px;
    }

    .verification-code-row {
        grid-template-columns: minmax(0, 1fr) 96px;
    }

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

    .captcha-image {
        width: 98px;
    }

    .captcha-image,
    .captcha-row input,
    .captcha-row .icon-button,
    .geetest-box {
        height: 42px;
        min-height: 42px;
    }

    .auth-login-page .captcha-image,
    .auth-login-page .captcha-row input,
    .auth-login-page .captcha-row .icon-button,
    .auth-login-page .geetest-box {
        height: 50px;
        min-height: 50px;
        margin-top: 9px;
    }

    .auth-register-page .captcha-row + .verification-inline-status + label,
    .auth-register-page .geetest-box + .verification-inline-status + label {
        margin-top: 0;
    }

    .portal-button.auth-submit,
    .user-auth-card .portal-button {
        height: 44px;
        min-height: 44px;
    }

    .auth-login-page .auth-submit {
        height: 52px;
        min-height: 52px;
        font-size: 14px;
    }

    .auth-register-page .auth-submit {
        height: 42px;
        min-height: 42px;
    }

    .auth-switch {
        margin-top: 13px;
        font-size: 13px;
    }

    .auth-register-page .auth-switch {
        margin-top: 9px;
        font-size: 10px;
    }
}

@media (max-width: 420px) {
    .auth-login-page .user-auth-card {
        padding-right: 22px;
        padding-left: 22px;
    }

    .auth-register-page .user-auth-card {
        padding-right: 16px;
        padding-left: 16px;
    }

    .back-home {
        right: 22px;
    }

    .auth-register-page .back-home {
        right: 16px;
    }

    .verification-code-row {
        grid-template-columns: minmax(0, 1fr) 104px;
        gap: 6px;
    }

    .verification-code-row .button.secondary svg {
        display: none;
    }

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

    .captcha-image {
        width: 104px;
    }
}

@media (max-width: 350px) {
    .user-auth-shell .user-auth-card {
        padding-right: 9px;
        padding-left: 9px;
    }

    .auth-card-brand {
        max-width: calc(100% - 100px);
    }

    .back-home {
        right: 9px;
        padding: 0 7px;
        font-size: 8px;
    }

    .verification-code-row {
        grid-template-columns: minmax(0, 1fr) 80px;
    }

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

    .captcha-image {
        width: 80px;
    }
}

@media (max-width: 520px) and (max-height: 680px) {
    .user-auth-shell .user-auth-card {
        padding-top: 9px;
        padding-bottom: 10px;
    }

    .auth-card-brand .brand-logo,
    .auth-card-brand .brand-mark {
        width: 33px;
        height: 33px;
    }

    .back-home {
        top: 8px;
        min-height: 32px;
    }

    .auth-panel-head {
        margin-top: 9px;
        margin-bottom: 8px;
    }

    .auth-heading,
    .auth-register-page .auth-heading {
        margin: 8px 0 7px;
    }

    .auth-heading .eyebrow,
    .auth-register-page .auth-heading .eyebrow {
        margin-bottom: 2px;
        font-size: 8px;
    }

    .auth-heading h1,
    .auth-register-page .auth-heading h1 {
        font-size: 20px;
    }

    .auth-heading > p:last-child,
    .auth-register-page .auth-heading > p:last-child {
        display: none;
    }

    .auth-page-tabs a {
        height: 39px;
        min-height: 39px;
    }

    .auth-form,
    .auth-mode-panel,
    .register-channel-panel {
        gap: 5px;
    }

    .auth-login-page .auth-mode-panel,
    .auth-register-page .auth-form,
    .auth-register-page .register-channel-panel {
        gap: 5px;
    }

    .auth-field-control,
    .password-wrap,
    .verification-code-row .button.secondary,
    .auth-channel-tabs button,
    .register-channel-tabs button,
    .auth-mode-tabs button {
        height: 39px;
        min-height: 39px;
    }

    .auth-login-page .auth-field-control,
    .auth-login-page .password-wrap {
        height: 39px;
    }

    .register-channel-tabs button > small {
        display: none;
    }

    .auth-register-page .captcha-row + .verification-inline-status + label,
    .auth-register-page .geetest-box + .verification-inline-status + label,
    .auth-login-page .captcha-row + .verification-inline-status + .auth-submit,
    .auth-login-page .geetest-box + .verification-inline-status + .auth-submit {
        margin-top: 0;
    }

    .password-toggle {
        top: 2px;
    }

    .captcha-image,
    .captcha-row input,
    .captcha-row .icon-button,
    .geetest-box {
        height: 38px;
        min-height: 38px;
    }

    .portal-button.auth-submit,
    .user-auth-card .portal-button {
        height: 42px;
        min-height: 42px;
    }

    .auth-switch {
        margin-top: 6px;
        font-size: 8px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .user-auth-body *,
    .user-auth-body *::before,
    .user-auth-body *::after {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
    }
}
