:root {
    --auth-ink: #101827;
    --auth-muted: #5f6e84;
    --auth-faint: #8795a8;
    --auth-line: #e2e8f0;
    --auth-fill: #f8fafc;
    --auth-blue: #2f6fed;
    --auth-blue-dark: #245ac7;
    --auth-blue-soft: rgba(47, 111, 237, .1);
    --auth-danger: #c2414d;
    --character-sky: #69c2eb;
    --character-navy: #202d43;
    --character-orange: #fa9b4a;
    --character-yellow: #ffd71f;
    --auth-display: "Alimama ShuHeiTi", "Alibaba PuHuiTi 3.0", "Noto Sans SC", "HarmonyOS Sans SC", "MiSans", "PingFang SC", sans-serif;
}

* { box-sizing: border-box; }

.user-auth-body {
    display: block;
    min-width: 320px;
    min-height: 100svh;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    color: var(--auth-ink);
    background: #f8fafc;
    font-family: "Noto Sans SC", "HarmonyOS Sans SC", "MiSans", "PingFang SC", "Microsoft YaHei", Inter, sans-serif;
}

.auth-page {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100svh;
    background: linear-gradient(112deg, #f3f8ff 0%, #f6f8fc 44%, #f7f9fc 100%);
}

.auth-page-header {
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 0 0 68px;
    width: 100%;
    padding: 0 clamp(24px, 5vw, 72px);
    border-bottom: 0;
    background: transparent;
}

.auth-page-brand,
.auth-help-link { color: inherit; }

.auth-page-brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
}

.auth-page-brand > img,
.auth-page-brand > .brand-mark {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    flex: 0 0 auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    color: var(--auth-blue);
    background: transparent;
    box-shadow: none;
    object-fit: contain;
    font-size: 12px;
    font-weight: 800;
}

.auth-page-brand > .brand-mark {
    width: 32px;
    padding: 0;
    border: 0;
    border-radius: 0;
    color: var(--auth-blue);
    background: transparent;
}

.auth-page-brand strong,
.auth-page-brand small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.auth-page-brand strong { color: #111b2d; font-family: var(--auth-display); font-size: 15px; font-weight: 700; }
.auth-page-brand small { margin-top: 3px; color: #607087; font-size: 11px; }

.auth-help-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #53637a;
    font-size: 12px;
    transition: color .2s ease;
}

.auth-help-link:hover { color: var(--auth-blue); }
.auth-help-link svg { width: 14px; height: 14px; }

.user-auth-shell {
    width: 100%;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    flex: 1 1 auto;
    min-height: 0;
    overflow: visible;
}

.auth-side {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    padding: 34px clamp(28px, 7vw, 100px) 34px;
    overflow: hidden;
    border-radius: 0;
    color: #17253d;
    background: transparent;
}

.auth-side::before,
.auth-side::after { display: none; }

.auth-side-art {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    flex: 1 1 auto;
    min-height: 260px;
    width: min(100%, 620px);
    margin: 15px auto 0;
}

.auth-character-stage {
    position: relative;
    width: min(100%, 560px);
    aspect-ratio: 760 / 620;
}

.auth-character-stage > img { width: 100%; height: 100%; object-fit: contain; filter: none; }

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

.character-eye > span {
    position: absolute;
    top: 50%;
    left: 50%;
    display: block;
    width: 38%;
    height: 38%;
    border-radius: 50%;
    background: #18263c;
    transform: translate(calc(-50% + var(--eye-x, 0px)), calc(-50% + var(--eye-y, 0px)));
    transition: transform .18s cubic-bezier(.2, .75, .25, 1);
}

.character-eye.is-light { width: 3.5%; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(39, 63, 92, .08); }
.character-eye.is-dot { width: 2.7%; }
.character-eye.is-dot > span { width: 63%; height: 63%; background: #192943; }
.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-side-art[data-auth-art].is-password-private .character-eye > span { transition-duration: .35s; }

.auth-live {
    position: absolute;
    right: 8%;
    bottom: 7%;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    border: 0;
    border-radius: 0;
    color: #5e718e;
    background: transparent;
    box-shadow: none;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0;
}

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

.auth-side-copy { position: relative; z-index: 1; max-width: 440px; margin: 8px 0 0; padding-left: 0; border-left: 0; }
.auth-side-copy h2 { margin: 0 0 8px; color: #17253d; font-size: clamp(22px, 2vw, 30px); font-weight: 700; line-height: 1.3; letter-spacing: 0; }
.auth-side-copy p { margin: 0; color: #667a96; font-size: 12px; line-height: 1.7; }

.user-auth-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 0;
    padding: 32px 24px 42px;
    overflow: auto;
    background: transparent;
}

.auth-register-page .user-auth-panel,
.auth-forgot-page .user-auth-panel { align-items: flex-start; }

.user-auth-shell .user-auth-card {
    position: relative;
    width: min(400px, 100%);
    max-width: none;
    min-height: 0;
    margin: auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    animation: auth-redesign-in .36s cubic-bezier(.2, .75, .25, 1) both;
}

.user-auth-shell .user-auth-card::before {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--character-sky) 0 28%, var(--character-navy) 28% 52%, var(--character-orange) 52% 77%, var(--character-yellow) 77% 100%);
    display: none;
    content: '';
}

.auth-register-shell .user-auth-card { width: min(480px, 100%); margin: 0 auto; }
.auth-forgot-shell .user-auth-card { width: min(440px, 100%); }
.auth-heading { margin: 0 0 28px; }
.auth-heading h1 { margin: 0 0 8px; color: #101827; font-family: var(--auth-display); font-size: 27px; font-weight: 700; line-height: 1.3; letter-spacing: 0; }
.auth-heading p { max-width: 360px; margin: 0; color: #5f6e84; font-size: 13px; line-height: 1.7; }

.auth-form { width: 100%; gap: 15px; }
.auth-form .auth-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; color: #34445c; font-size: 12px; font-weight: 600; }
.auth-form .auth-field:focus-within > span { color: #34445c; }
.auth-field > span { min-height: 15px; }
.auth-mode-panel .auth-field + .auth-field { margin-top: 0; }

.auth-field-control,
.password-wrap {
    position: relative;
    display: flex;
    align-items: center;
    min-width: 0;
    height: 46px;
    gap: 10px;
    padding: 0 14px;
    border: 1px solid #d8e0eb;
    border-radius: 8px;
    background: transparent;
    box-shadow: none;
    transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.auth-field-control:hover,
.password-wrap:hover { border-color: #d8e0eb; background: transparent; }
.auth-field-control:focus-within,
.password-wrap:focus-within { border-color: #d8e0eb; background: transparent; box-shadow: none; }
.auth-field-control > svg,
.password-wrap > svg,
.auth-field-icon { display: grid; place-items: center; width: 18px; height: 18px; flex: 0 0 auto; padding: 0; border-radius: 0; color: #728198; background: transparent; transition: color .2s ease; }
.auth-field-control > svg,
.password-wrap > svg,
.auth-field-icon svg { width: 18px; height: 18px; }
.auth-field-control:focus-within > svg,
.password-wrap:focus-within > svg,
.auth-field-control:focus-within > .auth-field-icon { color: #728198; background: transparent; }
.auth-field-control input,
.auth-field-control select,
.password-wrap input { min-width: 0; width: 100%; height: 100%; padding: 0; border: 0; outline: 0; color: var(--auth-ink); background: transparent; font: inherit; font-size: 14px; font-weight: 500; letter-spacing: 0; caret-color: #53637a; }
.auth-field-control select { padding-right: 4px; cursor: pointer; }
.auth-field-control input::placeholder,
.password-wrap input::placeholder { color: #8d9bb0; font-weight: 450; opacity: 1; transition: none; }
.auth-field-control input:focus::placeholder,
.password-wrap input:focus::placeholder { color: #8d9bb0; }
.auth-field-control input:-webkit-autofill,
.password-wrap input:-webkit-autofill { -webkit-text-fill-color: var(--auth-ink); -webkit-box-shadow: 0 0 0 1000px #fbfcfe inset; box-shadow: 0 0 0 1000px #fbfcfe inset; caret-color: #7a8799; }
.password-wrap { padding-right: 5px; }
.password-wrap input { flex: 1; padding-right: 0; }
.password-toggle { position: static; inset: auto; display: grid; place-items: center; width: 36px; height: 32px; flex: 0 0 auto; padding: 0; border: 0; border-radius: 0 6px 6px 0; color: #8796aa; background: transparent; cursor: pointer; font: inherit; transition: color .2s ease; }
.password-toggle:hover { color: var(--auth-blue); background: transparent; }
.password-toggle:focus-visible { outline: 2px solid var(--auth-blue); outline-offset: 1px; }
.password-wrap:focus-within .password-toggle { border-left-color: transparent; }
.password-toggle svg { width: 16px; height: 16px; }

.field-error { display: block; min-height: 0; margin: -2px 0 0; color: var(--auth-danger); font-size: 11px; font-weight: 400; line-height: 1.45; }
.auth-field.is-invalid .auth-field-control,
.auth-field.is-invalid .password-wrap { border-color: #df929a; box-shadow: none; }
.auth-field.is-invalid .auth-field-control > svg,
.auth-field.is-invalid .password-wrap > svg,
.auth-field.is-invalid .auth-field-icon { color: var(--auth-danger); background: transparent; }
.auth-field.is-invalid:focus-within .auth-field-control,
.auth-field.is-invalid:focus-within .password-wrap { border-color: #df929a; box-shadow: none; }
.auth-field.is-invalid .field-error:not(:empty) { min-height: 15px; }

.auth-field-control:has(input:not(:placeholder-shown)) > svg,
.password-wrap:has(input:not(:placeholder-shown)) > svg,
.auth-field-control:has(input:not(:placeholder-shown)) > .auth-field-icon { color: #728198; }
.auth-field-control input:disabled,
.auth-field-control select:disabled,
.password-wrap input:disabled { color: #98a4b4; cursor: not-allowed; }
.auth-field-control:has(input:disabled),
.auth-field-control:has(select:disabled),
.password-wrap:has(input:disabled) { border-color: #e2e7ef; background: #f1f4f8; }
.auth-field-control:focus-within > svg,
.password-wrap:focus-within > svg,
.auth-field-control:focus-within > .auth-field-icon { color: #728198; }
.auth-field.is-invalid .auth-field-control > svg,
.auth-field.is-invalid .password-wrap > svg,
.auth-field.is-invalid .auth-field-icon { color: var(--auth-danger); }
.auth-field-control:has(input:disabled) > svg,
.auth-field-control:has(select:disabled) > svg,
.password-wrap:has(input:disabled) > svg { color: #a4afbe; }

.auth-field-control input[type="tel"],
.auth-field-control input[inputmode="numeric"],
.auth-field-control input[name$="code"] { font-variant-numeric: tabular-nums; letter-spacing: 0; }

.auth-mode-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin-bottom: 4px; border-bottom: 1px solid #e5eaf1; }
.auth-mode-tabs button { position: relative; height: 40px; border: 0; border-radius: 0; color: #7a8799; background: transparent; cursor: pointer; font-size: 12px; font-weight: 600; transition: color .2s ease; }
.auth-mode-tabs button::after { position: absolute; right: 20%; bottom: -1px; left: 20%; height: 2px; background: transparent; content: ''; transition: background-color .2s ease, right .2s ease, left .2s ease; }
.auth-mode-tabs button:hover { color: #405674; }
.auth-mode-tabs button.is-active { color: var(--auth-blue); background: transparent; box-shadow: none; }
.auth-mode-tabs button.is-active::after { right: 0; left: 0; background: var(--auth-blue); }
.auth-mode-tabs button:focus-visible,
.auth-channel-tabs button:focus-visible,
.verification-code-row .button.secondary:focus-visible,
.captcha-media button:focus-visible { outline: 2px solid var(--auth-blue); outline-offset: 2px; }
.auth-mode-panel { display: flex; flex-direction: column; gap: 16px; padding: 0; border: 0; background: transparent; animation: auth-redesign-panel-in .22s ease both; }
.auth-channel-tabs { display: flex; gap: 16px; margin: 0; }
.auth-channel-tabs button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 30px; padding: 0; border: 0; border-bottom: 1px solid transparent; border-radius: 0; color: #53637a; background: transparent; cursor: pointer; font-size: 12px; font-weight: 600; transition: color .2s ease, border-color .2s ease; }
.auth-channel-tabs button:hover,
.auth-channel-tabs button.is-active { border-color: var(--auth-blue); color: var(--auth-blue); background: transparent; }
.auth-channel-tabs button svg { width: 14px; height: 14px; }

.verification-code-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: start; min-width: 0; }
.verification-code-row .button.secondary { height: 46px; min-width: 106px; padding: 0 13px; border: 1px solid #d8e0eb; border-radius: 8px; color: var(--auth-blue); background: transparent; cursor: pointer; font-size: 12px; font-weight: 650; transition: color .2s ease, border-color .2s ease; }
.verification-code-row .button.secondary:hover:not(:disabled) { border-color: #c7d1df; color: var(--auth-blue-dark); background: transparent; }
.verification-code-row .button.secondary:disabled { cursor: not-allowed; opacity: .55; }

.captcha-row { display: grid; grid-template-columns: minmax(0, 1fr) 136px; gap: 8px; align-items: start; }
.captcha-media { display: flex; flex-direction: column; align-items: stretch; gap: 3px; }
.captcha-image { display: block; width: 100%; height: 46px; border: 1px solid #d8e0eb; border-radius: 8px; object-fit: cover; background: #fff; box-shadow: none; }
.captcha-media button { align-self: flex-end; padding: 0; border: 0; color: var(--auth-blue); background: transparent; cursor: pointer; font-size: 11px; }
.captcha-media button:hover { text-decoration: underline; }
.geetest-box { display: flex; align-items: center; justify-content: center; min-height: 46px; border: 1px solid #d8e0eb; border-radius: 8px; background: #fbfcfe; }
.verification-inline-status { min-height: 15px; margin: -7px 0 -2px; color: var(--auth-danger); font-size: 11px; line-height: 1.45; }
.verification-inline-status:empty { display: none; }
.verification-inline-status.is-success { color: #18865e; }

.auth-soft-note { display: flex; align-items: flex-start; gap: 7px; margin: -7px 0 -2px; color: #5f6e84; font-size: 12px; line-height: 1.55; }
.auth-soft-note svg { width: 14px; height: 14px; flex: 0 0 auto; color: #7aa1dc; }
.auth-optional { margin-top: -2px; border: 0; }
.auth-optional summary { display: flex; align-items: center; gap: 8px; min-height: 36px; color: #40516a; cursor: pointer; list-style: none; font-size: 12px; font-weight: 650; }
.auth-optional summary::-webkit-details-marker { display: none; }
.auth-optional summary > span { display: inline-flex; align-items: center; gap: 6px; }
.auth-optional summary > span svg { width: 14px; height: 14px; color: var(--auth-blue); transition: transform .2s ease; }
.auth-optional summary > small { margin-left: auto; color: #718096; font-size: 11px; font-weight: 400; }
.auth-optional summary > svg { width: 14px; height: 14px; color: #94a3b8; transition: transform .2s ease; }
.auth-optional[open] summary > svg { transform: rotate(180deg); }
.auth-optional[open] summary > span svg { transform: rotate(45deg); }
.auth-optional-content { padding: 0 0 15px; animation: auth-redesign-panel-in .2s ease both; }

.auth-agreement { margin: -4px 0 0; color: #6c7a8f; font-size: 11px; line-height: 1.55; }
.auth-agreement span { color: #53637a; }
.auth-legal-link { padding: 0; border: 0; color: var(--auth-blue); background: transparent; cursor: pointer; font: inherit; font-weight: 650; }
.auth-legal-link:hover { text-decoration: underline; }

.auth-legal-modal { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; padding: 20px; }
.auth-legal-modal[hidden] { display: none; }
.auth-legal-backdrop { position: absolute; inset: 0; background: rgba(16, 27, 48, .48); backdrop-filter: blur(5px); animation: auth-modal-fade .2s ease both; }
.auth-legal-dialog { position: relative; z-index: 1; display: flex; flex-direction: column; width: min(680px, calc(100vw - 32px)); max-height: min(720px, calc(100dvh - 40px)); overflow: hidden; border: 1px solid rgba(255, 255, 255, .6); border-radius: 12px; background: #fff; box-shadow: 0 24px 70px rgba(17, 32, 61, .24); animation: auth-modal-rise .24s cubic-bezier(.2, .75, .25, 1) both; }
.auth-legal-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 28px 18px; border-bottom: 1px solid #edf1f6; background: #fff; }
.auth-legal-header h2 { margin: 0; color: #16243d; font-family: "Noto Serif SC", "Songti SC", "STSong", serif; font-size: 24px; font-weight: 700; line-height: 1.25; }
.auth-legal-close { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid #e1e8f2; border-radius: 7px; color: #70809a; background: rgba(255, 255, 255, .7); cursor: pointer; transition: color .2s ease, border-color .2s ease, background-color .2s ease; }
.auth-legal-close:hover { border-color: #b8c8e1; color: var(--auth-blue); background: #fff; }
.auth-legal-close svg { width: 17px; height: 17px; }
.auth-legal-content { overflow: auto; padding: 26px 28px 32px; color: #45556d; font-family: "Noto Serif SC", "Songti SC", "STSong", serif; font-size: 14px; line-height: 1.9; }
.auth-legal-content h1, .auth-legal-content h2, .auth-legal-content h3, .auth-legal-content h4 { margin: 1.35em 0 .55em; color: #1c2d49; font-family: "Noto Serif SC", "Songti SC", "STSong", serif; line-height: 1.4; }
.auth-legal-content h1:first-child, .auth-legal-content h2:first-child, .auth-legal-content h3:first-child { margin-top: 0; }
.auth-legal-content h2 { font-size: 20px; }
.auth-legal-content > h2:first-child { display: none; }
.auth-legal-content h3 { font-size: 16px; }
.auth-legal-content p { margin: 0 0 1em; }
.auth-legal-content ul, .auth-legal-content ol { margin: 0 0 1em; padding-left: 1.6em; }
.auth-legal-content a { color: var(--auth-blue); }
body.auth-legal-open { overflow: hidden; }

.user-auth-card .portal-button,
.portal-button.auth-submit { display: inline-flex; align-items: center; justify-content: center; width: 100%; height: 42px; min-height: 42px; margin-top: 1px; gap: 8px; border: 0; border-radius: 7px; color: #fff !important; background: var(--auth-blue); box-shadow: none; cursor: pointer; font-size: 14px; font-weight: 650; transition: background-color .2s ease, opacity .2s ease; }
.user-auth-card button:focus-visible,
.auth-switch a:focus-visible,
.auth-help-link:focus-visible,
.auth-page-brand:focus-visible { outline: 2px solid var(--auth-blue); outline-offset: 3px; }
.user-auth-card .portal-button:hover:not(:disabled) { background: var(--auth-blue-dark); box-shadow: none; }
.user-auth-card .portal-button:active:not(:disabled) { background: #204fae; box-shadow: none; }
.user-auth-card .portal-button:disabled { cursor: not-allowed; opacity: .65; }
.user-auth-card .portal-button svg { width: 16px; height: 16px; color: currentColor !important; }
.user-auth-card .portal-button .button-content { display: inline-flex !important; align-items: center; gap: 8px; }
.user-auth-card .portal-button .button-loading { display: none !important; align-items: center; gap: 7px; }
.auth-submit.is-loading .button-content { display: none !important; }
.auth-submit.is-loading .button-loading { display: inline-flex !important; }
.auth-submit.is-loading .button-loading svg { animation: auth-spin .9s linear infinite; }

.auth-switch { display: flex; align-items: center; justify-content: space-between; width: 100%; margin: 22px 0 0; padding-top: 0; border-top: 0; color: #65748a; font-size: 12px; line-height: 1.6; }
.auth-switch a { color: var(--auth-blue); font-weight: 650; transition: color .2s ease; }
.auth-switch a:hover { color: var(--auth-blue-dark); }
.auth-register-switch { justify-content: center; }
.auth-copyright { flex: 0 0 34px; padding: 0 24px 12px; color: #a0acbb; text-align: center; font-size: 11px; }

.user-alert { display: flex; align-items: flex-start; gap: 8px; width: 100%; margin: 0 0 18px; padding: 10px 12px; border-radius: 7px; font-size: 11px; line-height: 1.55; }
.user-alert svg { width: 15px; height: 15px; flex: 0 0 auto; }
.user-alert.success { color: #13754f; border: 1px solid #c6efda; background: #f0fbf5; }
.user-alert.error { color: #ae4148; border: 1px solid #f7cccc; background: #fff5f5; }

@keyframes auth-redesign-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes auth-redesign-panel-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes auth-live-pulse { 0%, 100% { box-shadow: 0 0 0 4px rgba(97, 205, 176, .14); } 50% { box-shadow: 0 0 0 7px rgba(97, 205, 176, .04); } }
@keyframes auth-eye-blink { 0%, 45%, 49%, 100% { transform: scaleY(1); } 47% { transform: scaleY(.12); } }
@keyframes auth-spin { to { transform: rotate(360deg); } }
@keyframes auth-modal-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes auth-modal-rise { from { opacity: 0; transform: translateY(12px) scale(.985); } to { opacity: 1; transform: translateY(0) scale(1); } }

@media (max-width: 1120px) and (min-width: 901px) {
    .auth-side { padding-right: 42px; padding-left: 42px; }
    .auth-page-header { padding-right: 42px; padding-left: 42px; }
}

@media (max-width: 767px) {
    .auth-page { padding-top: 64px; background: linear-gradient(160deg, #f3f8ff 0%, #f7f9fc 42%, #f7f9fc 100%); }
    .auth-page-header { position: fixed; top: 0; right: 0; left: 0; z-index: 10; height: 64px; min-height: 64px; padding: 0 18px; border-bottom: 1px solid rgba(216, 224, 235, .8); background: rgba(248, 250, 252, .95); }
    .auth-page-brand { margin: 0 auto; }
    .auth-page-brand strong { font-size: 13px; }
    .auth-help-link { display: none; }
    .user-auth-shell { display: block; }
    .auth-side { display: none; }
    .user-auth-panel,
    .auth-register-page .user-auth-panel,
    .auth-forgot-page .user-auth-panel { display: block; min-height: 0; padding: 22px 24px 28px; overflow: visible; background: transparent; }
    .user-auth-shell .user-auth-card,
    .auth-register-shell .user-auth-card { width: 100%; min-height: 0; margin: 0 auto; padding: 26px 28px; border: 1px solid rgba(216, 224, 235, .9); border-radius: 12px; background: #fff; box-shadow: 0 4px 20px rgba(17, 32, 51, .06); }
    .auth-heading { margin-bottom: 22px; }
    .auth-heading h1 { margin-bottom: 6px; font-size: 21px; }
    .auth-heading p { font-size: 12px; line-height: 1.65; }
    .auth-form { gap: 14px; }
    .auth-form .auth-field { gap: 7px; }
    .auth-mode-panel { gap: 14px; }
    .auth-mode-tabs { margin-bottom: 2px; }
    .auth-mode-tabs button { height: 40px; }
    .auth-form > label.auth-field { font-size: 12px; }
    .auth-field-control,
    .password-wrap,
    .verification-code-row .button.secondary { height: 48px; }
    .auth-field-control input,
    .auth-field-control select,
    .password-wrap input { font-size: 16px; }
    .auth-field-control,
    .password-wrap { background: var(--auth-fill); }
    .captcha-image { height: 48px; }
    .captcha-row { grid-template-columns: minmax(0, 65%) minmax(0, 30%); justify-content: space-between; }
    .user-auth-card .portal-button,
    .portal-button.auth-submit { height: 46px; min-height: 46px; }
    .auth-optional summary { min-height: 36px; }
    .auth-optional-content { padding-bottom: 12px; }
    .auth-switch { justify-content: center; flex-direction: column; gap: 12px; margin-top: 18px; padding-top: 0; text-align: center; }
    .auth-login-switch { gap: 12px; }
    .auth-copyright { flex-basis: 32px; padding-bottom: max(10px, env(safe-area-inset-bottom)); font-size: 11px; }
    .auth-legal-modal { padding: 12px; }
    .auth-legal-dialog { width: min(680px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); }
    .auth-legal-header { padding: 20px 20px 15px; }
    .auth-legal-header h2 { font-size: 21px; }
    .auth-legal-content { padding: 20px 20px 26px; font-size: 14px; }
}

@media (max-width: 420px) {
    .user-auth-panel,
    .auth-register-page .user-auth-panel { padding-right: 20px; padding-left: 20px; }
    .user-auth-shell .user-auth-card { padding: 22px; }
    .auth-page-brand > img,
    .auth-page-brand > .brand-mark { width: 34px; height: 34px; }
    .captcha-row { grid-template-columns: minmax(0, 63%) minmax(0, 32%); }
}

@media (prefers-reduced-motion: reduce) {
    .user-auth-card,
    .auth-mode-panel,
    .auth-optional-content,
    .character-eye,
    .auth-live b { animation: none !important; }
    .auth-field-control,
    .password-wrap,
    .portal-button,
    .button.secondary,
    .auth-switch a { transition: none !important; }
    .auth-legal-dialog, .auth-legal-backdrop { animation: none !important; }
}
