/* 登录与 OAuth 授权共用的独立视觉层。所有规则均限制在 .auth-surface 内。 */
:root {
    --auth-ink: #14213d;
    --auth-muted: #68758f;
    --auth-line: #dfe8f7;
    --auth-blue: #5b8def;
    --auth-indigo: #7774e7;
    --auth-soft: #f5f8ff;
}

body.auth-surface {
    min-width: 320px;
    min-height: 100vh;
    overflow-x: hidden;
    color: var(--auth-ink);
    background:
        radial-gradient(circle at 8% 10%, rgba(156, 204, 255, .32), transparent 30%),
        radial-gradient(circle at 92% 88%, rgba(194, 183, 255, .27), transparent 32%),
        linear-gradient(145deg, #f7fbff 0%, #f2f6ff 48%, #f8f7ff 100%);
}

body.auth-surface::before,
body.auth-surface::after {
    content: "";
    position: fixed;
    z-index: -1;
    border-radius: 999px;
    pointer-events: none;
    filter: blur(2px);
}

body.auth-surface::before {
    width: 260px;
    height: 260px;
    top: -120px;
    right: 9vw;
    border: 1px solid rgba(117, 153, 225, .16);
    box-shadow: inset 0 0 0 38px rgba(255, 255, 255, .2);
}

body.auth-surface::after {
    width: 190px;
    height: 190px;
    left: -86px;
    bottom: 7vh;
    background: rgba(255, 255, 255, .34);
    border: 1px solid rgba(127, 158, 220, .13);
}

body.auth-surface > canvas {
    opacity: .2 !important;
}

.auth-surface .wrap {
    min-height: 100vh;
    padding: clamp(16px, 4vw, 48px);
    align-items: flex-start;
    isolation: isolate;
}

.auth-surface .card.auth-shell {
    position: relative;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(214, 226, 246, .92);
    border-radius: 30px;
    background: rgba(255, 255, 255, .94);
    box-shadow:
        0 28px 90px rgba(44, 63, 107, .14),
        0 4px 20px rgba(44, 63, 107, .05),
        inset 0 1px 0 rgba(255, 255, 255, .96);
    margin-block: auto;
    animation: authShellIn .46s cubic-bezier(.2, .8, .2, 1);
}

.auth-surface .login-shell {
    width: min(1060px, 100%);
}

.auth-surface .oauth-shell {
    width: min(720px, 100%);
}

.auth-surface :focus-visible {
    outline: 3px solid rgba(91, 141, 239, .32);
    outline-offset: 3px;
}

.auth-surface a,
.auth-surface button,
.auth-surface input {
    -webkit-tap-highlight-color: transparent;
}

@keyframes authShellIn {
    from { opacity: 0; transform: translateY(16px) scale(.99); }
    to { opacity: 1; transform: none; }
}

/* 登录页 */
.auth-layout {
    display: grid;
    grid-template-columns: minmax(0, .94fr) minmax(430px, 1.06fr);
    min-height: 660px;
}

.auth-brand-panel {
    position: relative;
    min-width: 0;
    overflow: hidden;
    padding: 44px 46px;
    color: #fff;
    background:
        radial-gradient(circle at 78% 18%, rgba(255, 255, 255, .22), transparent 24%),
        radial-gradient(circle at 18% 88%, rgba(255, 255, 255, .14), transparent 30%),
        linear-gradient(145deg, #77a8ef 0%, #6e8de9 52%, #7774df 100%);
}

.auth-brand-panel::before {
    content: "";
    position: absolute;
    width: 390px;
    height: 390px;
    right: -170px;
    bottom: -150px;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 50%;
    box-shadow: inset 0 0 0 54px rgba(255, 255, 255, .045);
}

.auth-brand-lockup,
.consent-brand {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: inherit;
    text-decoration: none;
}

.auth-brand-lockup img,
.consent-brand img {
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    object-fit: cover;
    border-radius: 12px;
    background: rgba(255, 255, 255, .88);
    box-shadow: 0 8px 22px rgba(35, 54, 104, .16);
}

.auth-brand-lockup span,
.consent-brand span {
    font-size: 15px;
    font-weight: 800;
    letter-spacing: .01em;
}

.auth-brand-copy {
    position: relative;
    z-index: 2;
    margin-top: 64px;
    max-width: 360px;
}

.auth-brand-badge,
.auth-eyebrow,
.consent-kicker {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin: 0 0 14px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.auth-brand-badge {
    min-height: 28px;
    padding: 0 10px;
    color: rgba(255, 255, 255, .94);
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 999px;
    background: rgba(255, 255, 255, .12);
}

.auth-brand-badge::before,
.auth-security-note::before,
.consent-security::before {
    content: "";
    width: 7px;
    height: 7px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: #8df0c2;
    box-shadow: 0 0 0 4px rgba(141, 240, 194, .15);
}

.auth-brand-copy h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(31px, 3.1vw, 40px);
    line-height: 1.18;
    text-align: left;
    letter-spacing: -.045em;
}

.auth-brand-copy p {
    max-width: 330px;
    margin: 15px 0 0;
    color: rgba(255, 255, 255, .78);
    font-size: 14px;
    line-height: 1.85;
}

.auth-brand-art {
    position: absolute;
    z-index: 1;
    right: -4px;
    bottom: -24px;
    width: min(54%, 270px);
    pointer-events: none;
}

.auth-brand-art::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 23% 4% 3% 10%;
    border-radius: 50%;
    background: rgba(255, 255, 255, .2);
    filter: blur(2px);
}

.auth-brand-art img {
    display: block;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 18px 24px rgba(39, 55, 114, .2));
}

.auth-brand-assurance {
    position: absolute;
    z-index: 2;
    left: 46px;
    bottom: 38px;
    display: grid;
    gap: 10px;
    width: 170px;
}

.auth-brand-assurance span {
    display: flex;
    align-items: center;
    gap: 9px;
    color: rgba(255, 255, 255, .82);
    font-size: 12px;
    font-weight: 600;
}

.auth-brand-assurance i {
    display: inline-grid;
    width: 21px;
    height: 21px;
    place-items: center;
    flex: 0 0 auto;
    color: #fff;
    font-size: 11px;
    font-style: normal;
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 7px;
    background: rgba(255, 255, 255, .12);
}

.auth-form-panel {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 42px clamp(36px, 5vw, 62px) 34px;
    background: rgba(255, 255, 255, .82);
}

.auth-form-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-height: 36px;
    margin-bottom: 28px;
}

.auth-form-nav a,
.consent-top-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 34px;
    padding: 0 11px;
    color: #64738e;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid transparent;
    border-radius: 10px;
    transition: color .18s, background .18s, border-color .18s;
}

.auth-form-nav a:hover,
.consent-top-link:hover {
    color: #4775d1;
    border-color: #dce7f7;
    background: #f7faff;
}

.auth-eyebrow,
.consent-kicker {
    color: #6688d4;
}

.auth-form-title {
    margin: 0;
    color: var(--auth-ink);
    font-size: clamp(27px, 3vw, 32px);
    line-height: 1.2;
    text-align: left;
    letter-spacing: -.035em;
}

.auth-form-subtitle {
    margin: 10px 0 26px;
    color: var(--auth-muted);
    font-size: 13px;
    line-height: 1.75;
}

.auth-context-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: -10px 0 22px;
    padding: 11px 13px;
    color: #516684;
    font-size: 12px;
    line-height: 1.65;
    border: 1px solid #dce8fa;
    border-radius: 12px;
    background: #f5f9ff;
}

.auth-context-note svg {
    width: 17px;
    height: 17px;
    flex: 0 0 auto;
    margin-top: 1px;
    color: #658de0;
}

.auth-field {
    display: block;
    margin: 0 0 17px;
}

.auth-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 7px;
}

.auth-label-row label,
.auth-field > label {
    color: #3f4e68;
    font-size: 12px;
    font-weight: 750;
}

.auth-label-row a {
    color: #6483c8;
    font-size: 12px;
    font-weight: 650;
    text-decoration: none;
}

.auth-label-row a:hover {
    color: #426dc8;
}

.auth-input-wrap {
    position: relative;
}

.auth-input-wrap > svg {
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 15px;
    width: 18px;
    height: 18px;
    color: #91a0b8;
    pointer-events: none;
    transform: translateY(-50%);
}

.auth-input-wrap input {
    height: 50px;
    padding: 0 46px 0 44px;
    color: #1d2a43;
    font-size: 14px;
    border: 1px solid #dce5f2;
    border-radius: 14px;
    background: #f9fbff;
    box-shadow: inset 0 1px 1px rgba(35, 55, 92, .02);
    transition: border-color .18s, box-shadow .18s, background .18s;
}

.auth-input-wrap input::placeholder {
    color: #a1adbf;
}

.auth-input-wrap input:hover {
    border-color: #cbd9ec;
    background: #fff;
}

.auth-input-wrap input:focus {
    border-color: #79a1ee;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(91, 141, 239, .11);
}

.auth-password-toggle {
    position: absolute;
    z-index: 2;
    top: 50%;
    right: 8px;
    display: grid;
    width: 36px;
    height: 36px;
    padding: 0;
    place-items: center;
    color: #8391a8;
    cursor: pointer;
    border: 0;
    border-radius: 10px;
    background: transparent;
    transform: translateY(-50%);
}

.auth-password-toggle:hover {
    color: #567dcc;
    background: #eef4ff;
}

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

.auth-surface .auth-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    height: 50px;
    margin-top: 3px;
    border-radius: 14px;
    background: linear-gradient(135deg, #6598ed 0%, #7478e7 100%);
    box-shadow: 0 11px 24px rgba(91, 116, 219, .23);
    transition: transform .18s, box-shadow .18s, opacity .18s;
}

.auth-surface .auth-submit:hover:not(:disabled) {
    opacity: 1;
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(91, 116, 219, .29);
}

.auth-submit svg {
    width: 17px;
    height: 17px;
}

.auth-security-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin: 13px 0 0;
    color: #8a96aa;
    font-size: 11px;
}

.auth-security-note::before {
    width: 6px;
    height: 6px;
    background: #57c798;
    box-shadow: none;
}

.auth-separator {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 23px 0 16px;
    color: #99a5b6;
    font-size: 11px;
    white-space: nowrap;
}

.auth-separator::before,
.auth-separator::after {
    content: "";
    width: 100%;
    height: 1px;
    background: #e7edf6;
}

.auth-provider-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.auth-provider {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-width: 0;
    height: 46px;
    padding: 0 12px;
    color: #40506b;
    cursor: pointer;
    border: 1px solid #dfe7f2;
    border-radius: 13px;
    background: #fff;
    font: inherit;
    font-size: 13px;
    font-weight: 750;
    transition: transform .16s, border-color .16s, background .16s, color .16s;
}

.auth-provider img {
    width: 19px;
    height: 19px;
    object-fit: contain;
}

.auth-provider:hover {
    transform: translateY(-1px);
    border-color: #c7d7ee;
    background: #f9fbff;
}

.auth-provider.wechat:hover {
    color: #15844a;
    border-color: #bde8cf;
    background: #f2fcf6;
}

.auth-provider-empty {
    grid-column: 1 / -1;
    margin: 0;
    padding: 10px 12px;
    color: #8b96a8;
    font-size: 12px;
    text-align: center;
    border: 1px dashed #dbe4f1;
    border-radius: 12px;
    background: #fafcff;
}

.auth-register-callout {
    margin-top: 22px;
    padding: 13px 15px;
    color: #65728a;
    font-size: 12px;
    line-height: 1.6;
    text-align: center;
    border: 1px solid #e4eaf4;
    border-radius: 13px;
    background: #f8faff;
}

.auth-register-callout a {
    margin-left: 4px;
    color: #537bd1;
    font-weight: 800;
    text-decoration: none;
}

.auth-form-foot {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px 16px;
    margin-top: auto;
    padding-top: 22px;
    color: #9aa5b5;
    font-size: 11px;
    flex-wrap: wrap;
}

.auth-form-foot a {
    color: #7b8799;
    text-decoration: none;
}

.auth-form-foot a:hover {
    color: #557bd0;
}

/* OAuth 授权页 */
.consent-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 72px;
    padding: 15px 22px;
    border-bottom: 1px solid #e8edf5;
    background: rgba(250, 252, 255, .92);
}

.consent-brand {
    color: #283957;
}

.consent-brand img {
    width: 36px;
    height: 36px;
    border-radius: 11px;
    box-shadow: 0 6px 15px rgba(52, 75, 122, .12);
}

.consent-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.consent-main {
    padding: 34px clamp(24px, 6vw, 48px) 32px;
}

.consent-hero {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 20px;
    align-items: center;
}

.consent-app-mark {
    position: relative;
    display: grid;
    width: 76px;
    height: 76px;
    place-items: center;
    overflow: hidden;
    color: #7183a4;
    font-size: 13px;
    font-weight: 900;
    border: 1px solid #dfe7f3;
    border-radius: 22px;
    background: linear-gradient(145deg, #fff, #f1f5fc);
    box-shadow: 0 12px 26px rgba(48, 72, 120, .11);
}

.consent-app-mark img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #fff;
}

.consent-app-mark::after {
    content: "";
    position: absolute;
    right: 6px;
    bottom: 6px;
    width: 13px;
    height: 13px;
    border: 3px solid #fff;
    border-radius: 50%;
    background: #62d49d;
    box-shadow: 0 2px 5px rgba(31, 123, 83, .18);
}

.consent-kicker {
    margin-bottom: 9px;
}

.consent-title {
    margin: 0;
    color: var(--auth-ink);
    font-size: clamp(23px, 4vw, 29px);
    line-height: 1.32;
    text-align: left;
    letter-spacing: -.035em;
}

.consent-title strong {
    color: #557cd3;
    font-weight: 900;
}

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

.consent-account {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 25px;
    padding: 13px 14px;
    border: 1px solid #e1e8f3;
    border-radius: 16px;
    background: #f8faff;
}

.consent-account-avatar {
    position: relative;
    display: grid;
    width: 42px;
    height: 42px;
    overflow: hidden;
    place-items: center;
    flex: 0 0 auto;
    color: #6480bd;
    font-size: 11px;
    font-weight: 900;
    border: 1px solid #d7e3f5;
    border-radius: 13px;
    background: #eaf2ff;
}

.consent-account-avatar img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #fff;
}

.consent-account-meta {
    min-width: 0;
    flex: 1;
}

.consent-account-meta span {
    display: block;
    margin-bottom: 3px;
    color: #8b97aa;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .04em;
}

.consent-account-meta strong {
    display: block;
    overflow: hidden;
    color: #293956;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.consent-account-meta strong small {
    margin-left: 7px;
    color: #8592a7;
    font-size: 11px;
    font-weight: 650;
}

.consent-switch {
    flex: 0 0 auto;
    padding: 6px 9px;
    color: #6683c7;
    font-size: 11px;
    font-weight: 750;
    text-decoration: none;
    border-radius: 9px;
}

.consent-switch:hover {
    background: #eaf1ff;
}

.consent-permissions {
    margin-top: 24px;
    border: 1px solid #e1e8f3;
    border-radius: 18px;
    background: #fff;
    overflow: hidden;
}

.consent-permissions-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 15px 17px 12px;
    border-bottom: 1px solid #edf1f6;
}

.consent-permissions-head h2 {
    margin: 0;
    color: #2b3953;
    font-size: 13px;
    font-weight: 850;
}

.consent-permissions-head span {
    padding: 4px 8px;
    color: #6b82b9;
    font-size: 10px;
    font-weight: 800;
    border-radius: 999px;
    background: #eef4ff;
}

.consent-permission-list {
    list-style: none;
    margin: 0;
    padding: 4px 17px 6px;
}

.consent-permission {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    gap: 11px;
    align-items: center;
    padding: 12px 0;
}

.consent-permission + .consent-permission {
    border-top: 1px solid #f0f3f8;
}

.consent-permission-icon {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    color: #6288d7;
    border-radius: 12px;
    background: #eef4ff;
}

.consent-permission-icon.email {
    color: #8b70d0;
    background: #f4efff;
}

.consent-permission-icon.uid {
    color: #3f9b76;
    background: #ebfaf3;
}

.consent-permission-icon svg {
    width: 18px;
    height: 18px;
}

.consent-permission-copy {
    min-width: 0;
}

.consent-permission-copy strong {
    display: block;
    margin-bottom: 3px;
    color: #34415a;
    font-size: 12px;
    font-weight: 800;
}

.consent-permission-copy span {
    display: block;
    color: #8995a8;
    font-size: 11px;
    line-height: 1.55;
}

.consent-permission-tag {
    padding: 4px 7px;
    color: #7b899e;
    font-size: 9px;
    font-weight: 800;
    border: 1px solid #e3e9f2;
    border-radius: 999px;
    background: #fafbfd;
}

.consent-return {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
    padding: 11px 13px;
    color: #7a879b;
    font-size: 11px;
    line-height: 1.5;
    border-radius: 12px;
    background: #f8fafc;
}

.consent-return svg {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
    color: #8195bf;
}

.consent-return strong {
    color: #566783;
    font-weight: 800;
    word-break: break-all;
}

.consent-security {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 18px 1px 0;
    color: #7c899d;
    font-size: 11px;
    line-height: 1.65;
}

.consent-security::before {
    width: 6px;
    height: 6px;
    margin: 6px 1px 0 4px;
    background: #55c28f;
    box-shadow: 0 0 0 4px rgba(85, 194, 143, .11);
}

.consent-actions {
    display: grid;
    grid-template-columns: minmax(120px, .72fr) minmax(190px, 1.28fr);
    gap: 11px;
    margin-top: 23px;
}

.auth-surface .consent-actions .btn {
    height: 49px;
    border-radius: 14px;
}

.auth-surface .consent-deny {
    color: #59677e;
    border: 1px solid #dfe6ef;
    background: #f6f8fb;
}

.auth-surface .consent-deny:hover:not(:disabled) {
    opacity: 1;
    border-color: #cfd9e6;
    background: #edf1f6;
}

.auth-surface .consent-allow {
    background: linear-gradient(135deg, #6293e9, #7475e1);
    box-shadow: 0 10px 22px rgba(89, 112, 211, .22);
}

.consent-legal {
    margin: 15px 0 0;
    color: #9aa5b5;
    font-size: 10px;
    line-height: 1.65;
    text-align: center;
}

.consent-legal a {
    color: #7b8dad;
    text-decoration: none;
}

/* OAuth 参数错误 */
.oauth-error-shell {
    width: min(560px, 100%) !important;
}

.oauth-error-main {
    padding: 42px clamp(24px, 7vw, 48px) 38px;
    text-align: center;
}

.oauth-error-icon {
    display: grid;
    width: 62px;
    height: 62px;
    margin: 0 auto 20px;
    place-items: center;
    color: #cc704f;
    font-size: 28px;
    font-weight: 800;
    border: 1px solid #f3d4c8;
    border-radius: 20px;
    background: #fff5f0;
}

.oauth-error-main h1 {
    margin: 0 0 10px;
    color: #253550;
    font-size: 24px;
}

.oauth-error-main > p {
    margin: 0;
    color: #748198;
    font-size: 13px;
    line-height: 1.75;
}

.oauth-error-detail {
    margin: 20px 0 0;
    padding: 11px 13px;
    color: #8b685b;
    font: 12px/1.6 "Consolas", "SFMono-Regular", monospace;
    border: 1px solid #eee3de;
    border-radius: 12px;
    background: #fbf8f6;
    word-break: break-word;
}

.oauth-error-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 24px;
}

@media (max-width: 860px) {
    .auth-layout {
        grid-template-columns: minmax(0, .78fr) minmax(400px, 1.22fr);
    }

    .auth-brand-panel {
        padding: 36px 30px;
    }

    .auth-brand-copy {
        margin-top: 52px;
    }

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

    .auth-brand-art {
        right: -10px;
        width: 57%;
    }
}

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

    .auth-surface .card.auth-shell {
        border-radius: 24px;
    }

    .auth-layout {
        display: block;
        min-height: 0;
    }

    .auth-brand-panel {
        min-height: 190px;
        padding: 25px 27px;
    }

    .auth-brand-copy {
        width: 58%;
        margin-top: 24px;
    }

    .auth-brand-copy h1 {
        font-size: 27px;
    }

    .auth-brand-copy p,
    .auth-brand-badge,
    .auth-brand-assurance {
        display: none;
    }

    .auth-brand-art {
        right: 14px;
        bottom: -25px;
        width: 155px;
    }

    .auth-form-panel {
        padding: 29px 27px 26px;
    }

    .auth-form-nav {
        display: none;
    }

    .auth-form-foot {
        margin-top: 0;
    }

    .consent-main {
        padding-top: 28px;
    }
}

@media (max-width: 480px) {
    .auth-surface .wrap {
        padding: 8px;
    }

    .auth-surface .card.auth-shell {
        border-radius: 20px;
    }

    .auth-brand-panel {
        min-height: 160px;
        padding: 21px 22px;
    }

    .auth-brand-lockup img {
        width: 34px;
        height: 34px;
    }

    .auth-brand-copy {
        width: 62%;
        margin-top: 18px;
    }

    .auth-brand-copy h1 {
        font-size: 23px;
    }

    .auth-brand-art {
        right: 7px;
        width: 132px;
    }

    .auth-form-panel {
        padding: 26px 20px 23px;
    }

    .auth-form-title {
        font-size: 27px;
    }

    .auth-provider-grid,
    .consent-actions,
    .oauth-error-actions {
        grid-template-columns: 1fr;
    }

    .consent-topbar {
        min-height: 64px;
        padding: 12px 14px;
    }

    .consent-brand span {
        display: none;
    }

    .consent-nav .consent-top-link:first-child {
        display: none;
    }

    .consent-main {
        padding: 24px 18px 24px;
    }

    .consent-hero {
        grid-template-columns: 62px minmax(0, 1fr);
        gap: 14px;
    }

    .consent-app-mark {
        width: 62px;
        height: 62px;
        border-radius: 18px;
    }

    .consent-kicker {
        margin-bottom: 6px;
        font-size: 9px;
    }

    .consent-title {
        font-size: 20px;
    }

    .consent-subtitle {
        display: none;
    }

    .consent-account {
        margin-top: 20px;
    }

    .consent-permission {
        grid-template-columns: 36px minmax(0, 1fr);
    }

    .consent-permission-tag {
        display: none;
    }

    .auth-surface .consent-deny {
        order: 2;
    }
}

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

    body.auth-surface > canvas {
        display: none !important;
    }
}

/* 注册页 */
.auth-surface .register-shell {
    width: min(1100px, 100%);
}

.register-layout {
    grid-template-columns: minmax(320px, .82fr) minmax(460px, 1.18fr);
    min-height: min(760px, calc(100dvh - 48px));
}

.register-brand-panel {
    background:
        radial-gradient(circle at 82% 16%, rgba(255, 255, 255, .22), transparent 25%),
        radial-gradient(circle at 16% 78%, rgba(255, 255, 255, .13), transparent 28%),
        linear-gradient(150deg, #78a9ef 0%, #718fe7 54%, #8177dd 100%);
}

.register-brand-copy {
    margin-top: 48px;
}

.register-steps {
    position: relative;
    z-index: 2;
    display: grid;
    gap: 11px;
    margin-top: 29px;
    max-width: 230px;
}

.register-steps span {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, .84);
    font-size: 12px;
    font-weight: 650;
}

.register-steps i {
    display: grid;
    width: 24px;
    height: 24px;
    place-items: center;
    flex: 0 0 auto;
    color: #fff;
    font-size: 10px;
    font-style: normal;
    font-weight: 850;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 8px;
    background: rgba(255, 255, 255, .14);
}

.auth-brand-art.register-brand-art {
    right: 12px;
    bottom: -28px;
    width: min(92%, 420px);
}

.register-brand-art::before {
    inset: 24% 3% 4% 3%;
}

.register-form-panel {
    width: 100%;
    padding: 30px clamp(34px, 4.8vw, 56px) 25px;
}

.register-form-panel .auth-form-nav {
    margin-bottom: 12px;
}

.register-form-panel .auth-form-subtitle {
    margin-bottom: 19px;
}

.register-form-panel .auth-context-note {
    margin-bottom: 16px;
}

.register-form-panel .auth-field {
    margin-bottom: 13px;
}

.register-form-panel .auth-label-row {
    flex-wrap: wrap;
}

.auth-field-note {
    color: #929eb0;
    font-size: 10px;
    font-weight: 650;
}

.auth-field-help {
    margin: 6px 2px 0;
    color: #98a3b5;
    font-size: 10px;
    line-height: 1.5;
}

.auth-code-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 9px;
}

.auth-surface .auth-code-button {
    width: 126px;
    height: 50px;
    padding: 0 12px;
    color: #5875b8;
    font-size: 12px;
    border: 1px solid #d9e4f4;
    border-radius: 14px;
    background: #f3f7ff;
}

.auth-surface .auth-code-button:hover:not(:disabled) {
    opacity: 1;
    color: #4167ba;
    border-color: #c4d5ee;
    background: #eaf1ff;
}

.auth-code-status {
    min-height: 17px;
    margin: 5px 2px 0;
    line-height: 1.45;
}

.auth-agreement {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin: 3px 0 15px;
    color: #6f7c91;
    font-size: 11px;
    line-height: 1.65;
    cursor: pointer;
    user-select: none;
}

.auth-agreement input {
    width: 17px;
    height: 17px;
    min-width: 17px;
    margin: 1px 0 0;
    padding: 0;
    accent-color: #678ce2;
    cursor: pointer;
}

.auth-agreement a {
    color: #587bd0;
    font-weight: 750;
    text-decoration: none;
}

.register-submit {
    margin-top: 0 !important;
}

.register-separator {
    margin: 16px 0 13px;
}

.register-provider-grid {
    grid-template-columns: 1fr;
}

.register-form-panel .auth-register-callout {
    margin-top: 15px;
}

.register-form-foot {
    margin-top: 0;
    padding-top: 15px;
}

.consent-return-site {
    color: #7f8da2;
    font-weight: 650;
}

@media (max-width: 1000px) and (min-width: 901px) {
    .register-layout {
        grid-template-columns: minmax(280px, .68fr) minmax(440px, 1.32fr);
    }

    .register-brand-panel {
        padding: 34px 29px;
    }

    .register-brand-copy {
        margin-top: 42px;
    }

    .register-steps {
        max-width: 190px;
    }

    .auth-brand-art.register-brand-art {
        right: -14px;
        width: min(105%, 360px);
    }
}

@media (max-width: 900px) {
    .register-layout {
        display: block;
        min-height: 0;
    }

    .register-brand-panel {
        min-height: 198px;
        padding: 25px 30px;
    }

    .register-brand-copy {
        width: min(58%, 390px);
        margin-top: 22px;
    }

    .register-steps {
        display: none;
    }

    .auth-brand-art.register-brand-art {
        right: 24px;
        bottom: -29px;
        width: 225px;
    }

    .register-form-panel {
        padding: 30px clamp(28px, 7vw, 58px) 26px;
    }
}

@media (max-width: 768px) {
    .auth-surface .card.auth-shell {
        margin-block: 0;
    }
}

@media (max-width: 720px) {
    .register-brand-panel {
        min-height: 184px;
        padding: 23px 27px;
    }

    .register-brand-copy {
        width: 57%;
        margin-top: 20px;
    }

    .register-brand-copy p {
        display: none;
    }

    .auth-brand-art.register-brand-art {
        right: 12px;
        bottom: -25px;
        width: 190px;
    }

    .register-form-panel {
        padding: 28px 27px 25px;
    }
}

@media (max-width: 480px) {
    .register-brand-copy {
        width: 58%;
        margin-top: 17px;
    }

    .register-brand-copy h1 {
        font-size: 22px;
    }

    .auth-brand-art.register-brand-art {
        right: 3px;
        width: 143px;
    }

    .register-form-panel {
        padding: 25px 19px 22px;
    }

    .auth-code-row {
        grid-template-columns: minmax(0, 1fr) 108px;
        gap: 7px;
    }

    .auth-surface .auth-code-button {
        width: 108px;
        padding: 0 7px;
        font-size: 11px;
    }
}

@media (max-width: 360px) {
    .register-brand-panel {
        min-height: 148px;
        padding: 18px 18px;
    }

    .register-brand-panel .auth-brand-lockup span {
        font-size: 13px;
    }

    .register-brand-copy {
        width: 62%;
        margin-top: 13px;
    }

    .register-brand-copy h1 {
        font-size: 20px;
    }

    .auth-brand-art.register-brand-art {
        right: -2px;
        bottom: -20px;
        width: 128px;
    }

    .register-form-panel {
        padding: 23px 16px 20px;
    }

    .auth-code-row {
        grid-template-columns: 1fr;
    }

    .auth-surface .auth-code-button {
        width: 100%;
    }

    .register-form-foot {
        flex-direction: column;
        gap: 4px;
    }
}

/* 注册页新版：使用独立命名空间，避免旧版表单规则影响自适应布局。 */
.auth-surface .signup-shell {
    width: min(1040px, 100%);
}

.signup-layout {
    display: grid;
    grid-template-columns: minmax(320px, .8fr) minmax(510px, 1.2fr);
    min-height: min(720px, calc(100dvh - 48px));
}

.signup-visual {
    position: relative;
    min-width: 0;
    overflow: hidden;
    padding: 36px 38px;
    color: #233554;
    background:
        radial-gradient(circle at 92% 10%, rgba(255, 255, 255, .94), transparent 28%),
        radial-gradient(circle at 8% 68%, rgba(184, 220, 255, .52), transparent 32%),
        linear-gradient(150deg, #edf7ff 0%, #e9f1ff 48%, #eeeaff 100%);
}

.signup-visual::before {
    content: "";
    position: absolute;
    width: 320px;
    height: 320px;
    right: -170px;
    top: 120px;
    border: 1px solid rgba(103, 137, 210, .14);
    border-radius: 50%;
    box-shadow: inset 0 0 0 48px rgba(255, 255, 255, .18);
}

.signup-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .42;
    pointer-events: none;
    background-image: radial-gradient(rgba(105, 132, 187, .22) .7px, transparent .7px);
    background-size: 17px 17px;
    mask-image: linear-gradient(to bottom, #000, transparent 58%);
}

.signup-brand {
    position: relative;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: #263956;
    text-decoration: none;
}

.signup-brand img {
    width: 39px;
    height: 39px;
    flex: 0 0 auto;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, .82);
    border-radius: 13px;
    background: rgba(255, 255, 255, .9);
    box-shadow: 0 9px 25px rgba(63, 84, 134, .13);
}

.signup-brand span {
    font-size: 15px;
    font-weight: 850;
    letter-spacing: -.01em;
}

.signup-visual-copy {
    position: relative;
    z-index: 3;
    max-width: 300px;
    margin-top: 48px;
}

.signup-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 27px;
    margin-bottom: 14px;
    padding: 0 10px;
    color: #627db7;
    font-size: 9px;
    font-weight: 850;
    letter-spacing: .09em;
    text-transform: uppercase;
    border: 1px solid rgba(119, 150, 214, .23);
    border-radius: 999px;
    background: rgba(255, 255, 255, .55);
    backdrop-filter: blur(8px);
}

.signup-visual-copy h1 {
    margin: 0;
    color: #233653;
    font-size: clamp(30px, 3vw, 36px);
    line-height: 1.2;
    text-align: left;
    letter-spacing: -.045em;
}

.signup-visual-copy h1 em {
    color: #6584d8;
    font-style: normal;
}

.signup-visual-copy p {
    margin: 14px 0 0;
    color: #6b7b96;
    font-size: 12px;
    line-height: 1.78;
}

.signup-steps {
    position: relative;
    z-index: 3;
    display: grid;
    gap: 8px;
    max-width: 250px;
    margin: 26px 0 0;
    padding: 0;
    list-style: none;
}

.signup-steps li {
    display: grid;
    grid-template-columns: 31px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    min-height: 51px;
    padding: 7px 10px;
    color: #7a879d;
    border: 1px solid transparent;
    border-radius: 14px;
}

.signup-steps li.active {
    color: #385fba;
    border-color: rgba(139, 169, 226, .25);
    background: rgba(255, 255, 255, .54);
    box-shadow: 0 8px 24px rgba(72, 99, 151, .07);
    backdrop-filter: blur(8px);
}

.signup-steps i {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    color: #7488ac;
    font-size: 9px;
    font-style: normal;
    font-weight: 900;
    letter-spacing: .04em;
    border: 1px solid rgba(124, 150, 199, .24);
    border-radius: 10px;
    background: rgba(255, 255, 255, .43);
}

.signup-steps li.active i {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(135deg, #69a3ee, #7779e5);
    box-shadow: 0 6px 14px rgba(91, 126, 214, .23);
}

.signup-steps span,
.signup-steps b,
.signup-steps small {
    display: block;
    min-width: 0;
}

.signup-steps b {
    color: #53627a;
    font-size: 12px;
    font-weight: 800;
}

.signup-steps li.active b {
    color: #3f5f9b;
}

.signup-steps small {
    margin-top: 2px;
    color: #77859a;
    font-size: 10px;
    line-height: 1.45;
}

.signup-art {
    position: absolute;
    z-index: 2;
    right: -8px;
    bottom: -24px;
    width: min(88%, 320px);
    pointer-events: none;
}

.signup-art::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 35% 2% 5% 9%;
    border-radius: 50%;
    background: rgba(255, 255, 255, .58);
    filter: blur(12px);
}

.signup-art img {
    display: block;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 16px 22px rgba(58, 78, 126, .15));
}

.signup-main {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 34px clamp(35px, 4.5vw, 54px) 24px;
    background: rgba(255, 255, 255, .9);
}

.signup-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.signup-eyebrow {
    margin: 0 0 6px;
    color: #708ed0;
    font-size: 9px;
    font-weight: 850;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.signup-top h2 {
    margin: 0;
    color: #1c2c46;
    font-size: clamp(25px, 2.6vw, 30px);
    line-height: 1.2;
    text-align: left;
    letter-spacing: -.035em;
}

.signup-login-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 36px;
    padding: 0 11px;
    flex: 0 0 auto;
    color: #66758a;
    font-size: 12px;
    text-decoration: none;
    border: 1px solid #e2e9f4;
    border-radius: 11px;
    background: #f9fbff;
    transition: color .18s, border-color .18s, background .18s, transform .18s;
}

.signup-login-link b {
    color: #5b7fd0;
    font-weight: 800;
}

.signup-login-link:hover {
    color: #596981;
    border-color: #ccd9ed;
    background: #f2f7ff;
    transform: translateY(-1px);
}

.signup-desc {
    margin: 9px 0 18px;
    color: #66758a;
    font-size: 12px;
    line-height: 1.7;
}

.signup-context {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin: -4px 0 15px;
    padding: 10px 12px;
    color: #536a8d;
    font-size: 11px;
    line-height: 1.6;
    border: 1px solid #dce8f8;
    border-radius: 12px;
    background: #f5f9ff;
}

.signup-context[hidden] {
    display: none;
}

.signup-context svg {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
    margin-top: 1px;
    color: #648bdc;
}

.signup-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.signup-field {
    min-width: 0;
    margin-bottom: 13px;
}

.signup-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 18px;
    margin-bottom: 6px;
}

.signup-label label {
    flex: 0 0 auto;
    color: #40506a;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.signup-label span {
    min-width: 0;
    overflow: hidden;
    color: #718096;
    font-size: 10px;
    font-weight: 650;
    text-align: right;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.signup-control {
    position: relative;
    min-width: 0;
}

.signup-control > svg {
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 14px;
    width: 17px;
    height: 17px;
    color: #96a3b7;
    pointer-events: none;
    transform: translateY(-50%);
}

.signup-control input {
    width: 100%;
    height: 48px;
    box-sizing: border-box;
    padding: 0 42px;
    color: #1f2d45;
    font-size: 13px;
    border: 1px solid #dce5f1;
    border-radius: 13px;
    outline: none;
    background: #f9fbfe;
    box-shadow: inset 0 1px 1px rgba(37, 52, 83, .025);
    transition: border-color .18s, box-shadow .18s, background .18s;
}

.signup-control input::placeholder {
    color: #a4afc0;
}

.signup-control input:hover {
    border-color: #cad8eb;
    background: #fff;
}

.signup-control input:focus {
    border-color: #83a8e8;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(104, 148, 225, .11);
}

.signup-control:focus-within > svg {
    color: #648bd9;
}

.signup-email-help {
    margin: -7px 2px 10px;
    color: #718096;
    font-size: 10px;
    line-height: 1.5;
}

.signup-code-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 126px;
    gap: 9px;
}

.auth-surface .signup-code-btn {
    height: 48px;
    padding: 0 10px;
    color: #5674b8;
    font-family: inherit;
    font-size: 12px;
    font-weight: 800;
    border: 1px solid #d7e2f3;
    border-radius: 13px;
    background: #f1f6ff;
    box-shadow: none;
    cursor: pointer;
    transition: color .18s, border-color .18s, background .18s, transform .18s;
}

.auth-surface .signup-code-btn:hover:not(:disabled) {
    color: #3f66bd;
    border-color: #bfd0eb;
    background: #e9f1ff;
    transform: translateY(-1px);
}

.auth-surface .signup-code-btn:disabled {
    cursor: not-allowed;
}

.signup-code-status {
    min-height: 16px;
    margin: 4px 2px 0;
    font-size: 11px;
    line-height: 1.45;
}

.signup-code-status:empty {
    display: none;
}

.signup-code-status.ok {
    color: #26815a;
}

.signup-code-status.err {
    color: #c4515b;
}

.signup-password-toggle {
    position: absolute;
    z-index: 2;
    top: 50%;
    right: 7px;
    display: grid;
    width: 34px;
    height: 34px;
    padding: 0;
    place-items: center;
    color: #92a0b5;
    border: 0;
    border-radius: 10px;
    background: transparent;
    cursor: pointer;
    transform: translateY(-50%);
}

.signup-password-toggle:hover {
    color: #5f7fc2;
    background: #eef4fd;
}

.signup-password-toggle[aria-pressed="true"] {
    color: #5274ba;
    background: #eaf1fc;
}

.signup-password-toggle[aria-pressed="true"]::after {
    content: "";
    position: absolute;
    width: 19px;
    height: 1.5px;
    border-radius: 999px;
    background: currentColor;
    transform: rotate(42deg);
}

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

.signup-agreement {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin: 0 0 14px;
    color: #707d91;
    font-size: 11px;
    line-height: 1.65;
    cursor: pointer;
    user-select: none;
}

.signup-agreement input {
    width: 17px;
    height: 17px;
    min-width: 17px;
    margin: 0;
    padding: 0;
    accent-color: #688ddd;
    cursor: pointer;
}

.signup-agreement a {
    color: #587bd0;
    font-weight: 800;
    text-decoration: none;
}

.signup-agreement a:hover {
    text-decoration: underline;
}

.auth-surface .signup-submit {
    display: flex;
    width: 100%;
    height: 49px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 0 18px;
    color: #fff;
    font-family: inherit;
    font-size: 12px;
    font-weight: 850;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(110deg, #6099e9 0%, #7181e4 55%, #7975df 100%);
    box-shadow: 0 12px 24px rgba(90, 118, 205, .24);
    cursor: pointer;
    transition: transform .18s, box-shadow .18s, filter .18s;
}

.auth-surface .signup-submit:hover {
    filter: saturate(1.05) brightness(1.02);
    box-shadow: 0 15px 28px rgba(90, 118, 205, .29);
    transform: translateY(-1px);
}

.auth-surface .signup-submit:disabled {
    cursor: wait;
    opacity: .68;
    filter: saturate(.72);
    box-shadow: 0 7px 15px rgba(90, 118, 205, .15);
    transform: none;
}

.signup-submit svg {
    width: 17px;
    height: 17px;
}

.signup-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 15px 0 12px;
    color: #a0aaba;
    font-size: 9px;
}

.signup-divider::before,
.signup-divider::after {
    content: "";
    height: 1px;
    flex: 1;
    background: #e8edf5;
}

.auth-surface .signup-provider {
    display: flex;
    width: 100%;
    height: 44px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 0 16px;
    color: #52627b;
    font-family: inherit;
    font-size: 12px;
    font-weight: 800;
    border: 1px solid #e0e7f1;
    border-radius: 13px;
    background: #fff;
    cursor: pointer;
    transition: color .18s, border-color .18s, background .18s, transform .18s;
}

.auth-surface .signup-provider:hover {
    color: #3f5472;
    border-color: #cbd8e9;
    background: #f9fbff;
    transform: translateY(-1px);
}

.signup-provider img {
    width: 19px;
    height: 19px;
    object-fit: contain;
}

.signup-foot {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px 18px;
    margin-top: auto;
    padding-top: 15px;
    color: #748196;
    font-size: 10px;
    line-height: 1.5;
    text-align: center;
}

.consent-return-site {
    color: #7f8da2;
    font-weight: 650;
}

@media (max-width: 920px) {
    .signup-layout {
        display: block;
        min-height: 0;
    }

    .signup-visual {
        min-height: 210px;
        padding: 26px 31px;
    }

    .signup-visual::before {
        width: 280px;
        height: 280px;
        top: -70px;
        right: 90px;
    }

    .signup-visual-copy {
        width: min(58%, 390px);
        max-width: none;
        margin-top: 24px;
    }

    .signup-kicker {
        margin-bottom: 9px;
    }

    .signup-visual-copy h1 {
        font-size: 28px;
    }

    .signup-visual-copy p {
        max-width: 370px;
        margin-top: 8px;
    }

    .signup-steps {
        display: none;
    }

    .signup-art {
        right: 25px;
        bottom: -42px;
        width: 235px;
    }

    .signup-main {
        padding: 30px clamp(29px, 7vw, 58px) 25px;
    }

    .signup-control input {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .auth-surface .card.auth-shell {
        margin-block: 0;
    }
}

@media (max-width: 760px) {
    .signup-form-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .signup-email-help {
        margin-top: -6px;
    }
}

@media (max-width: 640px) {
    .signup-visual {
        min-height: 171px;
        padding: 22px 23px;
    }

    .signup-brand img {
        width: 35px;
        height: 35px;
        border-radius: 11px;
    }

    .signup-brand span {
        font-size: 13px;
    }

    .signup-visual-copy {
        width: 61%;
        margin-top: 20px;
    }

    .signup-kicker,
    .signup-visual-copy p {
        display: none;
    }

    .signup-visual-copy h1 {
        font-size: 25px;
    }

    .signup-art {
        right: 8px;
        bottom: -31px;
        width: 173px;
    }

    .signup-main {
        padding: 26px 21px 22px;
    }

    .signup-top {
        gap: 12px;
    }

    .signup-login-link span {
        display: none;
    }

}

@media (max-width: 480px) {
    .signup-visual {
        min-height: 150px;
        padding: 19px 19px;
    }

    .signup-visual-copy {
        margin-top: 16px;
    }

    .signup-visual-copy h1 {
        font-size: 22px;
    }

    .signup-art {
        right: 2px;
        bottom: -25px;
        width: 145px;
    }

    .signup-main {
        padding: 24px 18px 20px;
    }

    .signup-top h2 {
        font-size: 23px;
    }

    .signup-desc {
        margin-bottom: 16px;
    }

    .signup-code-row {
        grid-template-columns: minmax(0, 1fr) 108px;
        gap: 7px;
    }

    .auth-surface .signup-code-btn {
        padding: 0 6px;
        font-size: 10px;
    }

    .signup-foot {
        flex-direction: column;
        gap: 3px;
    }
}

@media (max-width: 370px) {
    .signup-visual {
        min-height: 139px;
        padding: 17px 16px;
    }

    .signup-brand img {
        width: 32px;
        height: 32px;
    }

    .signup-visual-copy {
        margin-top: 13px;
    }

    .signup-visual-copy h1 {
        font-size: 20px;
    }

    .signup-art {
        right: -5px;
        width: 130px;
    }

    .signup-main {
        padding: 22px 15px 19px;
    }

    .signup-login-link {
        min-height: 32px;
        padding: 0 8px;
        font-size: 10px;
    }

    .signup-code-row {
        grid-template-columns: 1fr;
    }

    .auth-surface .signup-code-btn {
        width: 100%;
        height: 44px;
    }
}

/* 登录页新版 */
.auth-surface .signin-shell {
    width: min(1000px, 100%);
}

.signin-layout {
    display: grid;
    grid-template-columns: minmax(330px, .86fr) minmax(470px, 1.14fr);
    min-height: min(640px, calc(100dvh - 48px));
}

.signin-visual {
    position: relative;
    min-width: 0;
    overflow: hidden;
    padding: 36px 38px;
    color: #263a59;
    background:
        radial-gradient(circle at 91% 10%, rgba(255, 255, 255, .95), transparent 29%),
        radial-gradient(circle at 7% 76%, rgba(178, 218, 255, .48), transparent 33%),
        linear-gradient(150deg, #edf8ff 0%, #e8f1ff 48%, #eeeaff 100%);
}

.signin-visual::before {
    content: "";
    position: absolute;
    width: 340px;
    height: 340px;
    right: -180px;
    top: 105px;
    border: 1px solid rgba(104, 137, 207, .14);
    border-radius: 50%;
    box-shadow: inset 0 0 0 52px rgba(255, 255, 255, .17);
}

.signin-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .4;
    pointer-events: none;
    background-image: radial-gradient(rgba(105, 132, 187, .22) .7px, transparent .7px);
    background-size: 17px 17px;
    mask-image: linear-gradient(to bottom, #000, transparent 61%);
}

.signin-brand,
.signin-mobile-brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: #263956;
    text-decoration: none;
}

.signin-brand {
    position: relative;
    z-index: 3;
}

.signin-brand img,
.signin-mobile-brand img {
    width: 39px;
    height: 39px;
    flex: 0 0 auto;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, .85);
    border-radius: 13px;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 9px 25px rgba(63, 84, 134, .13);
}

.signin-brand span,
.signin-mobile-brand span {
    font-size: 15px;
    font-weight: 850;
    letter-spacing: -.01em;
}

.signin-copy {
    position: relative;
    z-index: 3;
    max-width: 310px;
    margin-top: 58px;
}

.signin-kicker {
    display: inline-flex;
    min-height: 27px;
    align-items: center;
    margin-bottom: 14px;
    padding: 0 10px;
    color: #627db7;
    font-size: 9px;
    font-weight: 850;
    letter-spacing: .09em;
    text-transform: uppercase;
    border: 1px solid rgba(119, 150, 214, .24);
    border-radius: 999px;
    background: rgba(255, 255, 255, .56);
    backdrop-filter: blur(8px);
}

.signin-copy h1 {
    margin: 0;
    color: #223552;
    font-size: clamp(31px, 3.1vw, 37px);
    line-height: 1.2;
    text-align: left;
    letter-spacing: -.045em;
}

.signin-copy h1 em {
    color: #6484d6;
    font-style: normal;
}

.signin-copy p {
    max-width: 290px;
    margin: 14px 0 0;
    color: #667792;
    font-size: 12px;
    line-height: 1.8;
}

.signin-trust {
    position: relative;
    z-index: 3;
    display: grid;
    gap: 9px;
    max-width: 190px;
    margin-top: 27px;
}

.signin-trust span {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #61718b;
    font-size: 11px;
    font-weight: 700;
}

.signin-trust i {
    display: grid;
    width: 24px;
    height: 24px;
    place-items: center;
    flex: 0 0 auto;
    color: #fff;
    font-size: 10px;
    font-style: normal;
    font-weight: 900;
    border-radius: 9px;
    background: linear-gradient(135deg, #68a3eb, #777be1);
    box-shadow: 0 6px 13px rgba(91, 126, 214, .2);
}

.signin-art {
    position: absolute;
    z-index: 2;
    right: -25px;
    bottom: -33px;
    width: min(73%, 275px);
    pointer-events: none;
}

.signin-art::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 28% 5% 5% 8%;
    border-radius: 50%;
    background: rgba(255, 255, 255, .52);
    filter: blur(13px);
}

.signin-art img {
    display: block;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 17px 24px rgba(57, 77, 125, .16));
}

.signin-main {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 34px clamp(37px, 4.8vw, 56px) 25px;
    background: rgba(255, 255, 255, .91);
}

.signin-top {
    display: flex;
    min-height: 38px;
    align-items: center;
    justify-content: flex-end;
    gap: 18px;
}

.signin-mobile-brand {
    display: none;
}

.signin-create-link {
    display: inline-flex;
    min-height: 36px;
    align-items: center;
    gap: 6px;
    padding: 0 11px;
    color: #6e7c91;
    font-size: 11px;
    text-decoration: none;
    border: 1px solid #e1e8f3;
    border-radius: 11px;
    background: #f9fbff;
    transition: color .18s, border-color .18s, background .18s, transform .18s;
}

.signin-create-link b {
    color: #587bd0;
    font-weight: 850;
}

.signin-create-link:hover {
    color: #58677f;
    border-color: #cad8eb;
    background: #f2f7ff;
    transform: translateY(-1px);
}

.signin-heading {
    margin: 28px 0 24px;
}

.signin-heading p {
    margin: 0 0 7px;
    color: #708ed0;
    font-size: 9px;
    font-weight: 850;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.signin-heading h2 {
    margin: 0;
    color: #1c2c46;
    font-size: clamp(27px, 2.8vw, 31px);
    line-height: 1.2;
    text-align: left;
    letter-spacing: -.035em;
}

.signin-heading > span {
    display: block;
    margin-top: 9px;
    color: #68778c;
    font-size: 12px;
    line-height: 1.7;
}

.signin-context {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin: -8px 0 18px;
    padding: 10px 12px;
    color: #536a8d;
    font-size: 11px;
    line-height: 1.6;
    border: 1px solid #dce8f8;
    border-radius: 12px;
    background: #f5f9ff;
}

.signin-context[hidden] {
    display: none;
}

.signin-context svg {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
    margin-top: 1px;
    color: #648bdc;
}

.signin-field {
    min-width: 0;
    margin-bottom: 15px;
}

.signin-label {
    display: flex;
    min-height: 18px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 7px;
}

.signin-label label {
    color: #40506a;
    font-size: 12px;
    font-weight: 800;
}

.signin-label span,
.signin-label a {
    color: #708096;
    font-size: 11px;
    font-weight: 700;
}

.signin-label a {
    color: #5d7fc8;
    text-decoration: none;
}

.signin-label a:hover {
    color: #3f69c2;
}

.signin-control {
    position: relative;
    min-width: 0;
}

.signin-control > svg {
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 14px;
    width: 18px;
    height: 18px;
    color: #94a2b6;
    pointer-events: none;
    transform: translateY(-50%);
}

.signin-control input {
    width: 100%;
    height: 50px;
    box-sizing: border-box;
    padding: 0 44px;
    color: #1f2d45;
    font-size: 14px;
    border: 1px solid #dbe5f1;
    border-radius: 14px;
    outline: none;
    background: #f9fbfe;
    box-shadow: inset 0 1px 1px rgba(37, 52, 83, .025);
    transition: border-color .18s, box-shadow .18s, background .18s;
}

.signin-control input::placeholder {
    color: #a2aec0;
}

.signin-control input:hover {
    border-color: #c9d7ea;
    background: #fff;
}

.signin-control input:focus {
    border-color: #80a6e8;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(104, 148, 225, .11);
}

.signin-control:focus-within > svg {
    color: #648bd9;
}

.signin-password-toggle {
    position: absolute;
    z-index: 2;
    top: 50%;
    right: 7px;
    display: grid;
    width: 35px;
    height: 35px;
    padding: 0;
    place-items: center;
    color: #8e9cb1;
    border: 0;
    border-radius: 10px;
    background: transparent;
    cursor: pointer;
    transform: translateY(-50%);
}

.signin-password-toggle:hover,
.signin-password-toggle[aria-pressed="true"] {
    color: #5879bd;
    background: #ebf2fc;
}

.signin-password-toggle[aria-pressed="true"]::after {
    content: "";
    position: absolute;
    width: 19px;
    height: 1.5px;
    border-radius: 999px;
    background: currentColor;
    transform: rotate(42deg);
}

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

.auth-surface .signin-submit {
    display: flex;
    width: 100%;
    height: 50px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin-top: 2px;
    padding: 0 18px;
    color: #fff;
    font-family: inherit;
    font-size: 12px;
    font-weight: 850;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(110deg, #6099e9 0%, #7082e4 55%, #7975df 100%);
    box-shadow: 0 12px 24px rgba(90, 118, 205, .24);
    cursor: pointer;
    transition: transform .18s, box-shadow .18s, filter .18s, opacity .18s;
}

.auth-surface .signin-submit:hover:not(:disabled) {
    filter: saturate(1.05) brightness(1.02);
    box-shadow: 0 15px 28px rgba(90, 118, 205, .29);
    transform: translateY(-1px);
}

.auth-surface .signin-submit:disabled {
    cursor: wait;
    opacity: .68;
    filter: saturate(.72);
    box-shadow: 0 7px 15px rgba(90, 118, 205, .15);
    transform: none;
}

.signin-submit svg {
    width: 17px;
    height: 17px;
}

.signin-security {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin: 11px 0 0;
    color: #748196;
    font-size: 11px;
    line-height: 1.5;
}

.signin-security span {
    display: grid;
    width: 16px;
    height: 16px;
    place-items: center;
    color: #27855d;
    font-size: 9px;
    font-weight: 900;
    border-radius: 50%;
    background: #e8f8f0;
}

.signin-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 19px 0 13px;
    color: #8390a3;
    font-size: 11px;
    white-space: nowrap;
}

.signin-divider::before,
.signin-divider::after {
    content: "";
    height: 1px;
    flex: 1;
    background: #e7edf5;
}

.signin-provider-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 9px;
}

.auth-surface .signin-provider {
    display: flex;
    min-width: 0;
    height: 45px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 0 12px;
    color: #506078;
    font-family: inherit;
    font-size: 12px;
    font-weight: 800;
    border: 1px solid #dfe7f1;
    border-radius: 13px;
    background: #fff;
    cursor: pointer;
    transition: color .18s, border-color .18s, background .18s, transform .18s;
}

.signin-provider img {
    width: 19px;
    height: 19px;
    object-fit: contain;
}

.auth-surface .signin-provider:hover {
    color: #3f5472;
    border-color: #c9d7e9;
    background: #f9fbff;
    transform: translateY(-1px);
}

.auth-surface .signin-provider.wechat:hover {
    color: #15844a;
    border-color: #bde8cf;
    background: #f2fcf6;
}

.signin-provider-empty {
    grid-column: 1 / -1;
    margin: 0;
    padding: 11px 12px;
    color: #728096;
    font-size: 11px;
    line-height: 1.6;
    text-align: center;
    border: 1px dashed #dbe4f1;
    border-radius: 12px;
    background: #fafcff;
}

.signin-foot {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px 16px;
    margin-top: auto;
    padding-top: 20px;
    color: #748196;
    font-size: 11px;
    line-height: 1.5;
    text-align: center;
    flex-wrap: wrap;
}

.signin-foot a {
    color: #687a95;
    text-decoration: none;
}

.signin-foot a:hover {
    color: #5276c4;
}

@media (max-width: 880px) {
    .auth-surface .signin-shell {
        width: min(560px, 100%);
    }

    .signin-layout {
        display: block;
        min-height: 0;
    }

    .signin-visual {
        display: none;
    }

    .signin-main {
        padding: 30px clamp(28px, 7vw, 48px) 25px;
    }

    .signin-top {
        justify-content: space-between;
    }

    .signin-mobile-brand {
        display: inline-flex;
    }

    .signin-mobile-brand img {
        width: 36px;
        height: 36px;
        border-radius: 11px;
    }

    .signin-mobile-brand span {
        font-size: 13px;
    }

    .signin-heading {
        margin-top: 30px;
    }

    .signin-control input {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .signin-main {
        padding: 23px 18px 20px;
    }

    .signin-top {
        gap: 10px;
    }

    .signin-create-link span {
        display: none;
    }

    .signin-heading {
        margin: 25px 0 21px;
    }

    .signin-heading h2 {
        font-size: 27px;
    }

    .signin-provider-grid {
        grid-template-columns: 1fr;
    }

    .signin-foot {
        flex-direction: column;
        gap: 3px;
    }
}

@media (max-width: 360px) {
    .signin-main {
        padding: 21px 15px 18px;
    }

    .signin-mobile-brand span {
        display: none;
    }

    .signin-create-link {
        min-height: 33px;
        padding: 0 9px;
        font-size: 10px;
    }
}

/* 注册、登录与授权页的统一主操作按钮 */
.auth-surface .signup-submit.auth-primary-action,
.auth-surface .signin-submit.auth-primary-action,
.auth-surface .consent-actions .consent-allow.auth-primary-action {
    position: relative;
    isolation: isolate;
    display: flex;
    width: 100%;
    height: 52px;
    overflow: hidden;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 20px;
    color: #fff;
    font-family: inherit;
    font-size: 13px;
    font-weight: 850;
    letter-spacing: .015em;
    text-shadow: 0 1px 2px rgba(38, 55, 112, .16);
    border: 1px solid rgba(91, 112, 220, .28);
    border-radius: 16px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .19), transparent 48%),
        linear-gradient(112deg, #4f99f1 0%, #667ee8 50%, #8069df 100%);
    box-shadow:
        0 14px 28px rgba(82, 108, 205, .27),
        0 4px 10px rgba(82, 108, 205, .12),
        inset 0 1px 0 rgba(255, 255, 255, .3);
    cursor: pointer;
    transform: translateZ(0);
    transition:
        transform .2s cubic-bezier(.2, .8, .2, 1),
        box-shadow .2s ease,
        filter .2s ease,
        opacity .2s ease;
}

.auth-surface .auth-primary-action::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: -30%;
    bottom: -30%;
    left: -48%;
    width: 32%;
    opacity: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .45), transparent);
    transform: skewX(-20deg);
    transition: left .58s ease, opacity .22s ease;
}

.auth-surface .auth-primary-action::after {
    content: "";
    position: absolute;
    z-index: -1;
    top: -70px;
    right: -54px;
    width: 112px;
    height: 112px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
    transition: transform .28s ease, opacity .28s ease;
}

.auth-surface .auth-primary-action > span,
.auth-surface .auth-primary-action > svg {
    position: relative;
    z-index: 1;
}

.auth-surface .auth-primary-action > svg {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    transition: transform .2s ease;
}

.auth-surface .auth-primary-action:hover:not(:disabled) {
    opacity: 1;
    filter: saturate(1.08) brightness(1.035);
    box-shadow:
        0 18px 34px rgba(82, 108, 205, .32),
        0 5px 12px rgba(82, 108, 205, .14),
        inset 0 1px 0 rgba(255, 255, 255, .34);
    transform: translateY(-2px);
}

.auth-surface .auth-primary-action:hover:not(:disabled)::before {
    left: 116%;
    opacity: 1;
}

.auth-surface .auth-primary-action:hover:not(:disabled)::after {
    opacity: .9;
    transform: scale(1.16);
}

.auth-surface .auth-primary-action:hover:not(:disabled) > svg {
    transform: translateX(3px);
}

.auth-surface .auth-primary-action:active:not(:disabled) {
    filter: saturate(1.02);
    box-shadow:
        0 8px 17px rgba(82, 108, 205, .23),
        inset 0 1px 0 rgba(255, 255, 255, .24);
    transform: translateY(0) scale(.985);
}

.auth-surface .auth-primary-action:disabled {
    cursor: wait;
    opacity: .62;
    filter: saturate(.7);
    box-shadow: 0 7px 15px rgba(82, 108, 205, .14);
    transform: none;
}
