:root {
    --auth-brand: #2463ff;
    --auth-brand-dark: #1746c8;
    --auth-ink: #17233c;
    --auth-muted: #718097;
    --auth-line: #e1e9f6;
    --auth-pale: #f5f8ff;
}

* { box-sizing: border-box; }

body.theme-auth {
    min-width: 320px;
    margin: 0;
    color: var(--auth-ink);
    background: #f8faff;
    font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.theme-auth a { color: inherit; text-decoration: none; }
.theme-auth button, .theme-auth input { font: inherit; }
.theme-auth-page { position: relative; min-height: 100vh; overflow: hidden; background: #f8faff; }
.theme-auth-page::before { position: absolute; inset: 0 0 auto; height: 780px; pointer-events: none; background-image: linear-gradient(rgba(36, 99, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(36, 99, 255, .045) 1px, transparent 1px); background-size: 36px 36px; -webkit-mask-image: linear-gradient(180deg, #000 24%, transparent); mask-image: linear-gradient(180deg, #000 24%, transparent); content: ""; }
.theme-auth-page::after { position: absolute; top: 120px; right: -180px; width: 470px; height: 470px; border-radius: 50%; background: rgba(152, 183, 255, .15); filter: blur(3px); pointer-events: none; content: ""; }
.theme-auth-container { position: relative; z-index: 1; width: min(1180px, calc(100% - 48px)); margin: 0 auto; }
.theme-auth-header { display: flex; align-items: center; justify-content: space-between; min-height: 88px; }
.theme-auth-brand { display: flex; align-items: center; gap: 14px; }
.theme-auth-brand img { display: block; width: 174px; height: auto; max-height: 48px; object-fit: contain; object-position: left center; }
.theme-auth-brand-copy { padding-left: 14px; border-left: 1px solid #dce5f3; color: #8995a8; font-size: 12px; line-height: 1.5; }
.theme-auth-home { display: inline-flex; align-items: center; gap: 9px; padding: 11px 16px; border: 1px solid #e1e9f6; border-radius: 12px; background: rgba(255, 255, 255, .8); color: #5d6d85 !important; font-size: 13px; font-weight: 700; transition: color .18s ease, border-color .18s ease, transform .18s ease; }
.theme-auth-home:hover { border-color: #cbdafe; color: var(--auth-brand) !important; transform: translateY(-1px); }
.theme-auth-main { display: grid; grid-template-columns: minmax(0, 1fr) minmax(420px, 482px); gap: 82px; align-items: center; min-height: calc(100vh - 88px); padding: 44px 0 82px; }
.theme-auth-intro { max-width: 575px; }
.theme-auth-status { display: inline-flex; align-items: center; gap: 9px; padding: 10px 15px; border: 1px solid #deE8fb; border-radius: 999px; background: rgba(255, 255, 255, .8); color: var(--auth-brand-dark); font-size: 12px; font-weight: 800; box-shadow: 0 9px 24px rgba(36, 99, 255, .07); }
.theme-auth-status i { display: block; width: 8px; height: 8px; border-radius: 50%; background: var(--auth-brand); box-shadow: 0 0 0 5px rgba(36, 99, 255, .1); }
.theme-auth-eyebrow { margin: 30px 0 16px; color: var(--auth-brand); font-size: 12px; font-weight: 800; letter-spacing: .2em; }
.theme-auth-intro h1 { max-width: 570px; margin: 0; color: var(--auth-ink); font-size: clamp(38px, 5vw, 64px); font-weight: 800; letter-spacing: -.065em; line-height: 1.12; }
.theme-auth-intro h1 strong { color: var(--auth-brand); font-weight: 800; }
.theme-auth-description { max-width: 510px; margin: 25px 0 0; color: #6f7d94; font-size: 16px; line-height: 1.95; }
.theme-auth-points { display: grid; gap: 13px; margin: 30px 0 0; padding: 0; list-style: none; color: #607089; font-size: 13px; font-weight: 600; }
.theme-auth-points li { display: flex; align-items: center; gap: 10px; }
.theme-auth-points b { display: inline-grid; width: 21px; height: 21px; place-items: center; border-radius: 50%; background: #eaf1ff; color: var(--auth-brand); font-size: 12px; }
.theme-auth-note { display: flex; align-items: center; gap: 14px; max-width: 430px; margin-top: 39px; padding: 17px 19px; border: 1px solid #e2eaf7; border-radius: 18px; background: rgba(255, 255, 255, .76); box-shadow: 0 14px 38px rgba(32, 63, 110, .06); }
.theme-auth-note-mark { display: grid; flex: 0 0 39px; width: 39px; height: 39px; place-items: center; border-radius: 12px; background: #eff4ff; color: var(--auth-brand); font-size: 22px; font-weight: 800; }
.theme-auth-note strong { display: block; margin-bottom: 4px; color: var(--auth-ink); font-size: 13px; }
.theme-auth-note span { color: #8390a4; font-size: 12px; line-height: 1.5; }
.theme-auth-card { width: 100%; padding: 39px 40px 35px; border: 1px solid rgba(220, 230, 245, .95); border-radius: 27px; background: rgba(255, 255, 255, .94); box-shadow: 0 26px 75px rgba(36, 76, 142, .13); }
.theme-auth-card-head { margin-bottom: 27px; }
.theme-auth-card-head .theme-auth-eyebrow { margin: 0 0 12px; font-size: 10px; letter-spacing: .18em; }
.theme-auth-card h2 { margin: 0; color: var(--auth-ink); font-size: 30px; letter-spacing: -.045em; line-height: 1.2; }
.theme-auth-card-subtitle { margin: 10px 0 0; color: #8190a5; font-size: 13px; line-height: 1.65; }
.theme-auth-form { margin: 0; }
.theme-auth-field { margin-bottom: 18px; }
.theme-auth-field label { display: block; margin-bottom: 8px; color: #51627d; font-size: 13px; font-weight: 800; }
.theme-auth-input-wrap { position: relative; display: flex; align-items: center; }
.theme-auth-input-wrap > input { width: 100%; height: 51px; padding: 0 15px; border: 1px solid #dce5f3; border-radius: 13px; outline: 0; background: #fbfcff; color: var(--auth-ink); font-size: 14px; transition: border-color .18s ease, box-shadow .18s ease, background .18s ease; }
.theme-auth-input-wrap > input::placeholder { color: #a5afbe; }
.theme-auth-input-wrap > input:focus { border-color: #9db9ff; background: #fff; box-shadow: 0 0 0 4px rgba(36, 99, 255, .09); }
.theme-auth-field .input-group-merge { display: flex; align-items: center; }
.theme-auth-field .input-group-merge > input { padding-right: 53px; }
.theme-auth-field .input-group-text { position: absolute; right: 5px; display: grid; width: 42px; height: 42px; place-items: center; border: 0; border-radius: 10px; background: transparent; color: #91a0b4; cursor: pointer; }
.theme-auth-field .input-group-text:hover { background: #eff4ff; color: var(--auth-brand); }
.theme-auth-field .input-group-text i { font-size: 18px; }
.theme-auth-code-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 9px; }
.theme-auth-code-row input { width: 100%; min-width: 0; height: 51px; padding: 0 15px; border: 1px solid #dce5f3; border-radius: 13px; outline: 0; background: #fbfcff; color: var(--auth-ink); font-size: 14px; transition: border-color .18s ease, box-shadow .18s ease, background .18s ease; }
.theme-auth-code-row input::placeholder { color: #a5afbe; }
.theme-auth-code-row input:focus { border-color: #9db9ff; background: #fff; box-shadow: 0 0 0 4px rgba(36, 99, 255, .09); }
.theme-auth-code-row button { min-width: 112px; padding: 0 15px; border: 1px solid #d9e4fb; border-radius: 12px; background: #eff4ff; color: var(--auth-brand-dark); font-size: 12px; font-weight: 800; cursor: pointer; transition: background .18s ease, color .18s ease; }
.theme-auth-code-row button:hover:not(:disabled) { background: #e2ebff; color: var(--auth-brand); }
.theme-auth-code-row button:disabled { cursor: not-allowed; opacity: .6; }
.theme-auth-hint { margin: 7px 0 0; color: #97a3b4; font-size: 11px; line-height: 1.5; }
.theme-auth-geetest { min-height: 58px; padding: 0; border: 1px solid #dce5f3; border-radius: 13px; overflow: hidden; background: #fbfcff; }
.theme-auth-geetest:empty::before { display: flex; align-items: center; height: 56px; padding: 0 15px; color: #97a3b4; content: "请完成安全验证"; font-size: 13px; }
.theme-auth-check-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 2px 0 20px; }
.theme-auth-check { display: inline-flex; align-items: center; gap: 8px; color: #74829a; font-size: 12px; cursor: pointer; }
.theme-auth-check input { width: 16px; height: 16px; margin: 0; accent-color: var(--auth-brand); }
.theme-auth-forgot { color: var(--auth-brand) !important; font-size: 12px; font-weight: 800; }
.theme-auth-forgot:hover, .theme-auth-switch a:hover { color: var(--auth-brand-dark) !important; }
.theme-auth-submit { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 53px; margin: 3px 0 0; border: 0; border-radius: 14px; background: var(--auth-brand); color: #fff; font-size: 14px; font-weight: 800; box-shadow: 0 14px 28px rgba(36, 99, 255, .22); cursor: pointer; transition: background .18s ease, box-shadow .18s ease, transform .18s ease; }
.theme-auth-submit:hover { background: var(--auth-brand-dark); box-shadow: 0 17px 34px rgba(36, 99, 255, .28); transform: translateY(-1px); }
.theme-auth-switch { margin: 22px 0 0; color: #8793a5; font-size: 13px; text-align: center; }
.theme-auth-switch a { color: var(--auth-brand) !important; font-weight: 800; }
.theme-auth-divider { display: flex; align-items: center; gap: 13px; margin: 24px 0 17px; color: #a3adbc; font-size: 11px; }
.theme-auth-divider::before, .theme-auth-divider::after { flex: 1; height: 1px; background: #e8eef7; content: ""; }
.theme-auth-socials { display: flex; justify-content: center; gap: 13px; }
.theme-auth-social { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-width: 120px; height: 42px; border: 1px solid #e2eaf6; border-radius: 12px; background: #fff; color: #62718a; font-size: 12px; font-weight: 800; cursor: pointer; transition: border-color .18s ease, background .18s ease, transform .18s ease; }
.theme-auth-social:hover { border-color: #bdd0fb; background: #f5f8ff; transform: translateY(-1px); }
.theme-auth-social-mark { display: grid; width: 23px; height: 23px; place-items: center; border-radius: 7px; color: #fff; font-size: 11px; font-style: normal; font-weight: 800; }
.theme-auth-social-qq .theme-auth-social-mark { background: #68a5e1; }
.theme-auth-social-wechat .theme-auth-social-mark { background: #28c445; }
.theme-auth-footnote { margin: 24px 0 0; color: #a0aabb; font-size: 11px; line-height: 1.6; text-align: center; }

@media (max-width: 940px) {
    .theme-auth-main { grid-template-columns: 1fr; gap: 45px; align-items: start; padding-top: 34px; }
    .theme-auth-intro { max-width: 700px; }
    .theme-auth-card { max-width: 560px; margin: 0 auto; }
    .theme-auth-note { margin-top: 27px; }
}

@media (max-width: 600px) {
    .theme-auth-container { width: min(100% - 32px, 520px); }
    .theme-auth-header { min-height: 74px; }
    .theme-auth-brand { gap: 9px; }
    .theme-auth-brand img { width: 139px; max-height: 39px; }
    .theme-auth-brand-copy { display: none; }
    .theme-auth-home { padding: 9px 12px; font-size: 11px; }
    .theme-auth-main { min-height: 0; padding: 30px 0 54px; }
    .theme-auth-status { padding: 9px 12px; font-size: 11px; }
    .theme-auth-eyebrow { margin-top: 24px; font-size: 10px; letter-spacing: .16em; }
    .theme-auth-intro h1 { font-size: clamp(37px, 11vw, 52px); }
    .theme-auth-description { margin-top: 19px; font-size: 14px; line-height: 1.85; }
    .theme-auth-points { gap: 11px; margin-top: 23px; font-size: 12px; }
    .theme-auth-note { margin-top: 25px; }
    .theme-auth-card { padding: 29px 21px 25px; border-radius: 22px; }
    .theme-auth-card-head { margin-bottom: 23px; }
    .theme-auth-card h2 { font-size: 27px; }
    .theme-auth-field { margin-bottom: 16px; }
    .theme-auth-code-row { grid-template-columns: 1fr; gap: 8px; }
    .theme-auth-code-row button { min-height: 44px; }
    .theme-auth-check-row { align-items: flex-start; }
    .theme-auth-social { min-width: 0; flex: 1; }
}

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