/* Shared editorial layout for sign-in, registration and password recovery. */
body.auth-editorial-page {
    display: block;
    min-height: 100dvh;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background: var(--bg-color);
}

body.auth-modal-is-open { overflow: hidden; }

.auth-editorial-page .auth-shell {
    display: grid;
    grid-template-columns: minmax(390px, 42%) minmax(0, 58%);
    min-height: 100dvh;
}

/* Brand panel */
.auth-editorial-page .auth-editorial-panel {
    position: relative;
    z-index: 0;
    display: flex;
    min-height: 100dvh;
    flex-direction: column;
    justify-content: space-between;
    gap: 34px;
    padding: clamp(34px, 5.4vw, 82px);
    overflow: hidden;
    isolation: isolate;
    color: #e9efff;
    background:
        radial-gradient(circle at 82% 17%, rgba(112, 153, 255, .28), transparent 26rem),
        radial-gradient(circle at 16% 88%, rgba(61, 104, 218, .2), transparent 27rem),
        linear-gradient(145deg, #09183f 0%, #112d6d 53%, #06122f 100%);
}

.auth-editorial-page .auth-editorial-panel::before,
.auth-editorial-page .auth-editorial-panel::after {
    position: absolute;
    z-index: -2;
    content: "";
    pointer-events: none;
}

.auth-editorial-page .auth-editorial-panel::before {
    inset: 0;
    opacity: .24;
    background-image:
        linear-gradient(rgba(202, 220, 255, .28) 1px, transparent 1px),
        linear-gradient(90deg, rgba(202, 220, 255, .28) 1px, transparent 1px);
    background-size: 32px 32px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .96), transparent 83%);
}

.auth-editorial-page .auth-editorial-panel::after {
    right: -12rem;
    bottom: -15rem;
    width: 38rem;
    height: 38rem;
    border: 1px solid rgba(214, 227, 255, .2);
    border-radius: 50%;
    box-shadow: 0 0 0 3.2rem rgba(214, 227, 255, .035), 0 0 0 6.4rem rgba(214, 227, 255, .022);
}

.auth-editorial-page .auth-star-map {
    position: absolute;
    z-index: -1;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: .62;
    pointer-events: none;
}

.auth-editorial-page .auth-star-orbits { fill: none; stroke: rgba(186, 210, 255, .15); stroke-width: 1; }
.auth-editorial-page .auth-star-links { animation: authLinksBreathe 6.8s ease-in-out infinite; }
.auth-editorial-page .auth-star-nodes circle { fill: #dce8ff; opacity: .62; }
.auth-editorial-page .auth-star-nodes circle:nth-child(3n + 1) { animation: authNodePulse 3.8s ease-in-out infinite; }
.auth-editorial-page .auth-star-nodes circle:nth-child(3n + 2) { animation: authNodePulse 4.8s 1.1s ease-in-out infinite; }
.auth-editorial-page .auth-star-pulses { opacity: .27; animation: authGlowDrift 8s ease-in-out infinite alternate; transform-origin: center; }
.auth-editorial-page .auth-star-scan { opacity: .24; animation: authScanFlow 15s linear infinite; }

@keyframes authLinksBreathe { 0%, 100% { opacity: .46; } 50% { opacity: .88; } }
@keyframes authNodePulse { 0%, 100% { opacity: .35; transform: scale(.82); } 50% { opacity: .95; transform: scale(1.28); } }
@keyframes authGlowDrift { from { transform: translate3d(-8px, 5px, 0) scale(.96); } to { transform: translate3d(10px, -9px, 0) scale(1.06); } }
@keyframes authScanFlow { to { stroke-dashoffset: -220; } }

.auth-editorial-page .auth-panel-brand,
.auth-editorial-page .auth-panel-copy { position: relative; z-index: 1; }

.auth-editorial-page .auth-panel-brand {
    display: inline-flex;
    align-items: flex-start;
    align-self: flex-start;
    flex-direction: column;
    gap: 18px;
}

.auth-editorial-page .auth-panel-logo-wrap {
    position: relative;
    display: grid;
    width: 104px;
    height: 104px;
    place-items: center;
    overflow: visible;
    isolation: isolate;
    border: 1px solid rgba(235, 242, 255, .58);
    border-radius: 50%;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 18px 42px rgba(2, 12, 38, .3), 0 0 30px rgba(126, 159, 255, .34);
}

.auth-editorial-page .auth-panel-logo-wrap::before,
.auth-editorial-page .auth-panel-logo-wrap::after {
    position: absolute;
    border-radius: 50%;
    content: "";
    pointer-events: none;
}

.auth-editorial-page .auth-panel-logo-wrap::before {
    z-index: -2;
    inset: -13px;
    background: radial-gradient(circle, rgba(133, 170, 255, .3) 0 38%, rgba(133, 170, 255, .08) 56%, transparent 72%);
    animation: authLogoHalo 4.8s ease-in-out infinite;
}

.auth-editorial-page .auth-panel-logo-wrap::after {
    z-index: -1;
    inset: -7px;
    border: 1px solid rgba(199, 218, 255, .3);
    box-shadow: 0 0 0 5px rgba(161, 187, 255, .045);
    animation: authLogoRingBreathe 5.6s ease-in-out infinite;
}

.auth-editorial-page .auth-panel-logo-orbit {
    position: absolute;
    z-index: 0;
    inset: -16px;
    border: 1px dashed rgba(190, 211, 255, .34);
    border-radius: 50%;
    pointer-events: none;
    animation: authLogoOrbit 18s linear infinite;
}

.auth-editorial-page .auth-panel-logo-orbit::before,
.auth-editorial-page .auth-panel-logo-orbit::after {
    position: absolute;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    content: "";
}

.auth-editorial-page .auth-panel-logo-orbit::before { top: 5px; left: 14px; background: #9ec1ff; box-shadow: 0 0 0 5px rgba(158, 193, 255, .12), 0 0 14px rgba(158, 193, 255, .72); }
.auth-editorial-page .auth-panel-logo-orbit::after { right: 4px; bottom: 20px; background: #8af0d0; box-shadow: 0 0 0 5px rgba(138, 240, 208, .1), 0 0 14px rgba(138, 240, 208, .62); }
.auth-editorial-page .auth-panel-logo-wrap img { position: relative; z-index: 1; display: block; width: 100px; height: 100px; border-radius: 50%; object-fit: contain; }
.auth-editorial-page .auth-panel-brand-name { color: #fff; font-size: 22px; font-weight: 850; letter-spacing: .17em; line-height: 1; }

@keyframes authLogoOrbit { to { transform: rotate(360deg); } }
@keyframes authLogoHalo { 0%, 100% { opacity: .58; transform: scale(.94); } 50% { opacity: 1; transform: scale(1.08); } }
@keyframes authLogoRingBreathe { 0%, 100% { opacity: .5; transform: scale(.97); } 50% { opacity: .9; transform: scale(1.04); } }

.auth-editorial-page .auth-panel-copy {
    max-width: 500px;
    margin: auto 0;
    transform: translateY(clamp(-88px, -8vh, -48px));
}

.auth-editorial-page .auth-panel-kicker {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 18px;
    color: #bdd0ff;
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .17em;
}

.auth-editorial-page .auth-panel-kicker::before { width: 24px; height: 1px; content: ""; background: currentColor; }

.auth-editorial-page .auth-panel-copy h2 {
    max-width: 11ch;
    margin: 0;
    color: #fff;
    font-size: clamp(34px, 3.45vw, 54px);
    font-weight: 780;
    line-height: 1.16;
    letter-spacing: -.04em;
    text-wrap: balance;
}

.auth-editorial-page .auth-panel-copy h2.auth-panel-title-split { max-width: none; }
.auth-editorial-page .auth-panel-title-split span { display: block; width: max-content; white-space: nowrap; }

.auth-editorial-page .auth-panel-copy p {
    max-width: 39em;
    margin: 20px 0 0;
    color: rgba(232, 239, 255, .76);
    font-size: 14px;
    line-height: 1.8;
}

.auth-editorial-page .auth-data-ticker {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 24px;
    color: rgba(205, 219, 255, .58);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .11em;
}

.auth-editorial-page .auth-data-ticker i { width: 3px; height: 3px; border-radius: 50%; background: #88adff; box-shadow: 0 0 9px #8fb4ff; }

.auth-editorial-page .auth-panel-footnote { margin: 0; color: rgba(220, 232, 255, .54); font-size: 10px; letter-spacing: .055em; }

/* Official WeChat entry: anchored to the editorial panel instead of affecting
   the form column's height, so the shared auth layout remains stable. */
.auth-editorial-page .auth-wechat-promo {
    position: absolute;
    z-index: 2;
    right: clamp(34px, 5.4vw, 82px);
    bottom: clamp(34px, 5.4vw, 82px);
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 10px;
    width: max-content;
    max-width: calc(100% - 56px);
}
.auth-editorial-page .auth-wechat-qr-wrap {
    flex: 0 0 auto;
    padding: 7px;
    border: 1px solid rgba(226, 236, 255, .72);
    border-radius: 13px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 14px 32px rgba(2, 12, 38, .28);
}
.auth-editorial-page .auth-wechat-qr { display: block; width: 104px; height: 104px; object-fit: contain; border-radius: 7px; }
.auth-editorial-page .auth-wechat-copy {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    width: max-content;
    padding: 0;
    color: rgba(235, 242, 255, .88);
    font-size: 11px;
    line-height: 1.5;
    text-align: center;
}
.auth-editorial-page .auth-wechat-copy strong { width: 143px; color: #fff; font-size: 13px; font-weight: 850; text-align: center; white-space: nowrap; }
.auth-editorial-page .auth-wechat-meta { display: flex; align-items: baseline; justify-content: flex-end; gap: 12px; width: max-content; white-space: nowrap; }
.auth-editorial-page .auth-wechat-meta > span { color: rgba(220, 232, 255, .68); }

/* Right workspace and toolbar */
.auth-editorial-page .auth-workspace {
    position: relative;
    display: grid;
    min-width: 0;
    min-height: 100dvh;
    place-items: center;
    padding: 30px clamp(24px, 3.8vw, 72px);
    background:
        linear-gradient(rgba(36, 63, 113, .03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(36, 63, 113, .03) 1px, transparent 1px),
        #fffdfa;
    background-size: 32px 32px, 32px 32px, auto;
}

[data-theme="dark"] .auth-editorial-page .auth-workspace {
    background:
        linear-gradient(rgba(129, 163, 232, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(129, 163, 232, .045) 1px, transparent 1px),
        #0d1426;
    background-size: 32px 32px, 32px 32px, auto;
}

.auth-editorial-page .auth-toolbar {
    position: absolute;
    z-index: 30;
    top: 20px;
    right: clamp(18px, 2.4vw, 38px);
    width: auto;
}

.auth-editorial-page .top-right-controls { position: static; inset: auto; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }

.auth-editorial-page .theme-toggle,
.auth-editorial-page .rule-toggle {
    position: static;
    display: inline-flex;
    min-height: 36px;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 6px 11px;
    border: 1px solid var(--border-color);
    border-radius: 9px;
    color: var(--text-main);
    background: color-mix(in srgb, var(--card-bg) 91%, transparent);
    box-shadow: 0 4px 14px rgba(23, 43, 82, .04);
    font: inherit;
    font-size: 12px;
    font-weight: 750;
    white-space: nowrap;
    cursor: pointer;
}

.auth-editorial-page .theme-toggle:hover,
.auth-editorial-page .rule-toggle:hover { border-color: var(--primary); box-shadow: 0 7px 18px rgba(24, 54, 113, .1); transform: translateY(-1px); }

/* Shared form card */
.auth-editorial-page .form-container {
    width: min(100%, 600px);
    max-width: none;
    margin: 0;
    padding: clamp(26px, 3.2vw, 42px);
    border: 1px solid color-mix(in srgb, var(--border-color) 83%, #1c3a7a 17%);
    border-radius: 17px;
    background: color-mix(in srgb, var(--card-bg) 97%, transparent);
    box-shadow: 0 24px 60px rgba(17, 34, 73, .1);
}

[data-theme="dark"] .auth-editorial-page .form-container { box-shadow: 0 24px 60px rgba(0, 0, 0, .3); }

.auth-editorial-page .header-box { margin-bottom: 25px; text-align: left; }
.auth-editorial-page .header-box h1 { margin: 0 0 6px; color: var(--text-main); font-size: clamp(25px, 2.3vw, 31px); font-weight: 800; line-height: 1.24; letter-spacing: -.027em; }
.auth-editorial-page .header-box p { max-width: 39em; margin: 0; color: var(--text-muted); font-size: 13px; line-height: 1.65; }

.auth-editorial-page .auth-form-section-heading {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 9px;
    color: var(--text-main);
    font-size: 12px;
    font-weight: 850;
    letter-spacing: .03em;
}

.auth-editorial-page .auth-form-section-index { color: var(--primary); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 9px; }
.auth-editorial-page .auth-form-section-heading::after { height: 1px; flex: 1; content: ""; background: var(--border-color); }

.auth-editorial-page .form-group label { margin-bottom: 7px; color: var(--text-sec); font-size: 12px; letter-spacing: .005em; }
.auth-editorial-page .form-control { min-height: 44px; padding: 9px 13px; border-radius: 8px; border-color: color-mix(in srgb, var(--border-color) 90%, #314d8f 10%); font-size: 14px; }
.auth-editorial-page .form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 16%, transparent); }
.auth-editorial-page .password-toggle-btn { right: 9px; }

.auth-editorial-page .password-toggle-btn:focus-visible,
.auth-editorial-page .theme-toggle:focus-visible,
.auth-editorial-page .rule-toggle:focus-visible,
.auth-editorial-page .btn-side:focus-visible,
.auth-editorial-page .captcha-open-btn:focus-visible { outline: 3px solid color-mix(in srgb, var(--primary) 28%, transparent); outline-offset: 2px; }

.auth-editorial-page .btn-submit {
    min-height: 46px;
    margin-top: 12px;
    border-radius: 8px;
    background: linear-gradient(135deg, #173b83, var(--primary));
    box-shadow: 0 8px 18px rgba(32, 76, 165, .18);
    letter-spacing: .015em;
}

.auth-editorial-page .btn-submit:hover { box-shadow: 0 11px 22px rgba(32, 76, 165, .25); }
.auth-editorial-page .btn-wechat-login { min-height: 44px; border-radius: 8px; }
.auth-editorial-page .legal-consent { align-items: flex-start; justify-content: flex-start; padding: 10px 12px; white-space: normal; border-radius: 8px; }
.auth-editorial-page .legal-consent label { white-space: normal; overflow-wrap: anywhere; }
.auth-editorial-page .footer-link { margin-top: 18px; }

/* Compact desktop registration grid */
.auth-editorial-page.auth-register-page .form-container { width: min(100%, 880px); padding: 24px clamp(22px, 2.3vw, 32px); }
.auth-editorial-page.auth-register-page .header-box { margin-bottom: 15px; }
.auth-editorial-page.auth-register-page #registerForm {
    display: grid;
    grid-template-columns: minmax(190px, .82fr) minmax(390px, 1.68fr);
    gap: 13px 20px;
}

.auth-editorial-page .auth-register-section {
    min-width: 0;
    padding: 5px 2px 7px;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.auth-editorial-page.auth-register-page .auth-form-section-heading { gap: 7px; margin-bottom: 10px; font-size: 12.5px; }
.auth-editorial-page.auth-register-page .auth-form-section-heading::after { display: none; }
.auth-editorial-page.auth-register-page .auth-form-section-index {
    display: grid;
    width: 24px;
    height: 20px;
    place-items: center;
    border-radius: 999px;
    background: color-mix(in srgb, var(--primary) 11%, transparent);
    font-size: 9px;
}

.auth-editorial-page .auth-register-account { grid-column: 1; }
.auth-editorial-page .auth-register-security { grid-column: 2; }
.auth-editorial-page .auth-register-email,
.auth-editorial-page .auth-register-final,
.auth-editorial-page.auth-register-page #registerForm > .btn-submit { grid-column: 1 / -1; }

.auth-editorial-page.auth-register-page #registerForm .form-group { min-width: 0; margin: 0; }
.auth-editorial-page.auth-register-page #registerForm .form-group > label { min-height: 1.35em; line-height: 1.35; }
.auth-editorial-page.auth-register-page .form-control { min-height: 42px; }
.auth-editorial-page.auth-register-page .password-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.auth-editorial-page.auth-register-page .username-input-feedback { margin-top: 5px; color: var(--badge-red-text); font-size: 10.5px; font-weight: 750; line-height: 1.4; }
.auth-editorial-page.auth-register-page .username-input-feedback[hidden],
.auth-editorial-page.auth-register-page .captcha-gate-state[hidden] { display: none; }
.auth-editorial-page.auth-register-page .username-suggest-btn { min-height: 42px; border-radius: 8px; }

.auth-editorial-page .auth-register-email-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, .98fr) minmax(0, 1.06fr);
    gap: 12px;
    align-items: end;
}

.auth-editorial-page.auth-register-page .captcha-gate {
    box-sizing: border-box;
    height: 42px;
    min-height: 42px;
    align-items: center;
    margin: 0;
    padding: 4px 5px 4px 10px;
    border-color: transparent;
    border-radius: 8px;
    background: color-mix(in srgb, var(--badge-blue-bg) 72%, transparent);
}

.auth-editorial-page.auth-register-page #registerForm .auth-register-email-grid .captcha-gate { grid-column: auto; }

.auth-editorial-page.auth-register-page .captcha-gate-title { font-size: 12px; }
.auth-editorial-page.auth-register-page .captcha-gate-state { max-width: 17em; overflow: hidden; font-size: 10px; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.auth-editorial-page.auth-register-page .captcha-open-btn { min-height: 32px; padding-inline: 11px; border-radius: 7px; }
.auth-editorial-page.auth-register-page .btn-side { min-height: 42px; border-radius: 8px; }

.auth-editorial-page.auth-register-page #registerForm .email-hint-box {
    margin: 10px 0 0;
    padding: 7px 10px;
    border: 0;
    border-left: 3px solid var(--primary);
    border-radius: 8px;
    background: color-mix(in srgb, var(--badge-blue-bg) 68%, transparent);
    font-size: 10.5px;
    line-height: 1.45;
}

.auth-editorial-page .auth-register-final-grid {
    display: grid;
    grid-template-columns: minmax(230px, .78fr) minmax(0, 1.22fr);
    gap: 12px;
    align-items: end;
}

.auth-editorial-page.auth-register-page .legal-consent {
    grid-column: auto;
    box-sizing: border-box;
    height: 42px;
    min-height: 42px;
    align-items: center;
    margin: 0;
    padding: 6px 10px;
    border-color: transparent;
    font-size: 11px;
    line-height: 1.3;
}

.auth-editorial-page.auth-register-page #registerForm > .btn-submit { min-height: 44px; margin-top: 0; }
.auth-editorial-page.auth-register-page .footer-link { margin-top: 10px; }

/* Rule modal shares the existing premium modal system. */
.auth-editorial-page #contentModal { padding: 20px; }
.auth-editorial-page #contentModal .content-modal-body { min-height: 0; }

@media (max-width: 1180px) {
    .auth-editorial-page .auth-shell { grid-template-columns: 1fr; }
    .auth-editorial-page .auth-editorial-panel {
        min-height: 252px;
        padding: 20px clamp(20px, 6vw, 58px) 22px;
        gap: 17px;
    }
    .auth-editorial-page .auth-panel-brand { align-items: center; flex-direction: row; gap: 10px; }
    .auth-editorial-page .auth-panel-logo-wrap { width: 43px; height: 43px; overflow: hidden; border-radius: 12px; box-shadow: 0 12px 32px rgba(2, 12, 38, .24), 0 0 0 5px rgba(255, 255, 255, .045); }
    .auth-editorial-page .auth-panel-logo-wrap::before,
    .auth-editorial-page .auth-panel-logo-wrap::after,
    .auth-editorial-page .auth-panel-logo-orbit { display: none; }
    .auth-editorial-page .auth-panel-logo-wrap img { width: 41px; height: 41px; border-radius: 10px; }
    .auth-editorial-page .auth-panel-brand-name { font-size: 15px; letter-spacing: .15em; }
    .auth-editorial-page .auth-panel-copy { margin: 0; transform: none; }
    .auth-editorial-page .auth-panel-kicker { margin-bottom: 9px; }
    .auth-editorial-page .auth-panel-copy h2 { max-width: 26ch; font-size: clamp(26px, 4vw, 36px); }
    .auth-editorial-page .auth-panel-copy h2.auth-panel-title-split { max-width: 26ch; }
    .auth-editorial-page .auth-panel-title-split span { display: inline; width: auto; white-space: normal; }
    .auth-editorial-page .auth-panel-copy p { margin-top: 8px; font-size: 12.5px; line-height: 1.55; }
    .auth-editorial-page .auth-data-ticker { display: none; }
    .auth-editorial-page .auth-panel-footnote { display: none; }
    .auth-editorial-page .auth-star-map { opacity: .38; }
    .auth-editorial-page .auth-wechat-promo { top: 18px; right: clamp(20px, 6vw, 58px); bottom: auto; left: auto; flex-direction: row; align-items: flex-end; gap: 10px; width: max-content; max-width: calc(100% - 40px); }
    .auth-editorial-page .auth-wechat-qr { width: 78px; height: 78px; }
    .auth-editorial-page .auth-wechat-copy { min-width: 100px; padding-bottom: 3px; align-items: flex-end; font-size: 10px; text-align: right; }
    .auth-editorial-page .auth-wechat-copy strong { width: 130px; font-size: 11px; }
    .auth-editorial-page .auth-wechat-meta { gap: 9px; }
    .auth-editorial-page .auth-panel-footnote { display: block; }
    .auth-editorial-page .auth-panel-copy { padding-right: 126px; }
    .auth-editorial-page .auth-workspace { min-height: auto; padding: 78px clamp(18px, 5vw, 54px) 38px; }
    .auth-editorial-page .auth-toolbar { right: clamp(16px, 4vw, 40px); }
}

@media (max-width: 760px) {
    .auth-editorial-page.auth-register-page #registerForm { display: block; }
    .auth-editorial-page .auth-register-section { margin-bottom: 17px; padding: 2px 0; }
    .auth-editorial-page.auth-register-page .password-pair,
    .auth-editorial-page .auth-register-email-grid,
    .auth-editorial-page .auth-register-final-grid { grid-template-columns: 1fr; }
    .auth-editorial-page.auth-register-page .password-pair .form-group { margin-bottom: 14px; }
    .auth-editorial-page.auth-register-page .password-pair .form-group:last-child { margin-bottom: 0; }
    .auth-editorial-page.auth-register-page .password-pair .form-group > label { min-height: 0; }
    .auth-editorial-page .auth-register-email-grid { gap: 13px; }
    .auth-editorial-page.auth-register-page .captcha-gate { height: auto; min-height: 42px; }
    .auth-editorial-page.auth-register-page .email-hint-box { margin-bottom: 0; }
    .auth-editorial-page.auth-register-page .legal-consent { height: auto; min-height: 42px; padding: 9px 11px; }
    .auth-editorial-page.auth-register-page #registerForm > .btn-submit { width: 100%; margin-top: 2px; }
}

@media (max-width: 620px) {
    .auth-editorial-page .auth-editorial-panel { min-height: 242px; padding: 18px 22px 20px; }
    .auth-editorial-page .auth-panel-brand-name { font-size: 12px; }
    .auth-editorial-page .auth-panel-copy p { display: none; }
    .auth-editorial-page .auth-wechat-promo { top: 14px; right: 16px; gap: 7px; max-width: calc(100% - 32px); }
    .auth-editorial-page .auth-wechat-qr-wrap { padding: 4px; border-radius: 9px; }
    .auth-editorial-page .auth-wechat-qr { width: 62px; height: 62px; border-radius: 5px; }
    .auth-editorial-page .auth-wechat-copy { min-width: 0; max-width: none; gap: 2px; font-size: 9px; line-height: 1.35; }
    .auth-editorial-page .auth-wechat-copy strong { width: 112px; font-size: 10px; }
    .auth-editorial-page .auth-wechat-meta { gap: 6px; }
    .auth-editorial-page .auth-panel-footnote { display: none; }
    .auth-editorial-page .auth-panel-copy { padding-right: 112px; }
    .auth-editorial-page .auth-panel-kicker { font-size: 9px; }
    .auth-editorial-page .auth-panel-copy h2 { max-width: 22ch; font-size: clamp(24px, 7.4vw, 32px); }
    .auth-editorial-page .auth-workspace { display: flex; min-height: 0; flex-direction: column; padding: 14px 12px 28px; }
    .auth-editorial-page .auth-toolbar { position: static; width: 100%; margin-bottom: 14px; }
    .auth-editorial-page .top-right-controls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
    .auth-editorial-page .top-right-controls .theme-toggle,
    .auth-editorial-page .top-right-controls .rule-toggle { width: 100%; min-width: 0; padding: 7px 5px; font-size: 11px; }
    .auth-editorial-page .form-container,
    .auth-editorial-page.auth-register-page .form-container { width: 100%; padding: 23px 17px; border-radius: 13px; }
    .auth-editorial-page .header-box { margin-bottom: 21px; }
    .auth-editorial-page.auth-register-page .header-box { margin-bottom: 16px; }
    .auth-editorial-page #contentModal { padding: 0; }
}

@media (min-width: 1181px) and (max-height: 780px) {
    .auth-editorial-page .auth-workspace { place-items: start center; padding-top: 74px; padding-bottom: 24px; }
}

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