:root {
    --auth-ink: #1f2a3d;
    --auth-muted: #6c788c;
    --auth-line: #dfe5ed;
    --auth-blue: #2f6ff2;
    --auth-teal: #0f9f91;
    --auth-soft-teal: #edf9f6;
    --auth-danger: #b42318;
    --auth-danger-bg: #fff3f1;
}

* { box-sizing: border-box; }
html, body { min-width: 320px; min-height: 100%; }
body { margin: 0; color: var(--auth-ink); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, input:focus-visible, a:focus-visible { outline: 3px solid rgba(47, 111, 242, .2); outline-offset: 2px; }
[hidden] { display: none !important; }

.auth-body { min-height: 100vh; overflow-x: hidden; background: #f3f8f8; }
.auth-page { position: relative; height: 100vh; min-height: 0; padding: 18px 28px; display: grid; place-items: center; overflow: hidden; background: #f3f8f8; isolation: isolate; }
.auth-page::before { position: fixed; inset: 0; z-index: -2; content: ""; background: linear-gradient(125deg, #fbfefe 0%, #f2f8f9 44%, #edf7f5 100%); }
.auth-ambient { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.auth-ambient-matrix { position: absolute; inset: 0; opacity: .42; background-image: radial-gradient(circle, rgba(35, 127, 143, .18) 1px, transparent 1.4px); background-size: 28px 28px; -webkit-mask-image: linear-gradient(105deg, #000 0, transparent 35%, transparent 68%, #000 100%); mask-image: linear-gradient(105deg, #000 0, transparent 35%, transparent 68%, #000 100%); }
.auth-ambient-route { position: absolute; left: -12vw; width: 128vw; height: 1px; background: linear-gradient(90deg, transparent 0%, rgba(30, 154, 169, .14) 18%, rgba(48, 119, 214, .22) 52%, rgba(32, 176, 145, .12) 82%, transparent 100%); transform: rotate(-9deg); transform-origin: center; }
.auth-ambient-route::before, .auth-ambient-route::after { position: absolute; top: 50%; width: 7px; height: 7px; content: ""; background: #fff; border: 2px solid rgba(29, 151, 166, .48); border-radius: 50%; box-shadow: 0 0 0 7px rgba(29, 151, 166, .06); transform: translateY(-50%); }
.auth-ambient-route::before { left: 21%; }
.auth-ambient-route::after { right: 17%; }
.auth-ambient-route-one { top: 22%; }
.auth-ambient-route-two { top: 54%; opacity: .8; transform: rotate(-4deg); }
.auth-ambient-route-three { top: 79%; opacity: .55; transform: rotate(-13deg); }
.auth-ambient-route-one::after { animation: auth-route-pulse 4.8s ease-in-out infinite; }
.auth-ambient-route-two::before { animation: auth-route-pulse 4.8s ease-in-out infinite -1.6s; }
.auth-ambient-route-three::after { animation: auth-route-pulse 4.8s ease-in-out infinite -3.2s; }
.auth-ambient-wordmark { position: absolute; right: -3vw; bottom: -8vw; color: transparent; font-size: clamp(220px, 29vw, 520px); font-weight: 900; letter-spacing: -.1em; line-height: .78; opacity: .45; -webkit-text-stroke: 1px rgba(29, 119, 144, .13); user-select: none; }
.auth-ambient-coordinate { position: absolute; color: rgba(43, 109, 124, .34); font-size: 9px; font-weight: 700; letter-spacing: 1.5px; }
.auth-ambient-coordinate::before { width: 20px; height: 1px; margin-right: 8px; display: inline-block; content: ""; background: currentColor; vertical-align: middle; }
.auth-ambient-coordinate-one { top: 9%; left: 4%; }
.auth-ambient-coordinate-two { right: 4%; bottom: 7%; }
@keyframes auth-route-pulse { 0%, 100% { opacity: .35; transform: translateY(-50%) scale(.8); } 45% { opacity: 1; transform: translateY(-50%) scale(1.18); box-shadow: 0 0 0 12px rgba(29, 151, 166, 0); } }

.auth-shell { position: relative; z-index: 1; width: min(1180px, 100%); height: min(720px, calc(100vh - 36px)); min-height: 0; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(420px, .92fr); overflow: hidden; background: rgba(255, 255, 255, .96); border: 1px solid rgba(185, 209, 216, .78); border-radius: 26px; box-shadow: 0 30px 90px rgba(35, 80, 93, .14), 0 8px 28px rgba(49, 105, 119, .07); }
.auth-shell-register { grid-template-columns: minmax(0, 1.08fr) minmax(420px, .92fr); }

.auth-story { position: relative; min-height: 100%; padding: 38px 46px 32px; display: flex; flex-direction: column; overflow: hidden; color: #17233b; background: #edf7f5; isolation: isolate; }
.auth-story::before { position: absolute; top: 0; right: 0; z-index: -1; width: 44%; height: 100%; content: ""; background: linear-gradient(160deg, rgba(255, 255, 255, .74), rgba(214, 239, 236, .3)); border-left: 1px solid rgba(47, 139, 150, .1); transform: skewX(-8deg) translateX(16%); transform-origin: top; }
.auth-story::after { position: absolute; right: 24px; bottom: 24px; z-index: -1; width: 230px; height: 230px; content: ""; opacity: .46; background-image: radial-gradient(circle, rgba(32, 139, 153, .22) 1px, transparent 1.5px); background-size: 18px 18px; -webkit-mask-image: linear-gradient(135deg, transparent, #000); mask-image: linear-gradient(135deg, transparent, #000); }
.auth-story > header, .auth-card-brand { display: flex; align-items: center; gap: 12px; }
.auth-story > header > span:last-child, .auth-card-brand > span:last-child { display: flex; min-width: 0; flex-direction: column; gap: 3px; }
.auth-story > header strong { color: #13213b; font-size: 19px; letter-spacing: .3px; }
.auth-story > header small { color: #74829a; font-size: 10px; }
.auth-brand-mark { width: 44px; height: 44px; display: grid; flex: 0 0 auto; place-items: center; overflow: hidden; border: 1px solid rgba(195, 209, 229, .76); border-radius: 12px; background: #fff; box-shadow: 0 10px 26px rgba(52, 91, 145, .13); }
.auth-brand-mark img { width: 32px; height: 32px; object-fit: contain; }
.auth-story-stage { min-height: 0; display: grid; flex: 1; grid-template-columns: minmax(0, 1.3fr) minmax(180px, .7fr); align-items: center; gap: 16px; }
.auth-story-copy { max-width: 360px; }
.auth-story-copy > span { display: inline-flex; color: #177fbe; font-size: 10px; font-weight: 800; letter-spacing: 1.2px; }
.auth-story-copy h1 { max-width: 360px; margin: 18px 0 0; color: #101d36; font-size: clamp(32px, 2.75vw, 40px); line-height: 1.18; letter-spacing: -1.4px; }
.auth-story-copy > p { max-width: 350px; margin: 17px 0 0; color: #66758c; font-size: 13px; line-height: 1.8; }
.auth-story-copy ul { margin: 23px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.auth-story-copy li { padding: 8px 10px; display: flex; align-items: center; gap: 6px; color: #425674; background: rgba(255, 255, 255, .72); border: 1px solid rgba(187, 204, 227, .72); border-radius: 999px; font-size: 10px; box-shadow: 0 6px 16px rgba(71, 105, 151, .06); }
.auth-story-copy li i { color: #2097dc; font-size: 14px; }
.auth-story > footer { display: flex; align-items: center; gap: 8px; color: #8390a4; font-size: 10px; letter-spacing: .45px; }
.auth-story > footer span { width: 22px; height: 2px; background: linear-gradient(90deg, #2da5e9, #36c6a5); border-radius: 999px; }

.auth-answer-map { position: relative; width: 238px; height: 326px; padding: 20px 18px; justify-self: center; overflow: hidden; background: rgba(255, 255, 255, .52); border: 1px solid rgba(88, 159, 165, .24); border-radius: 4px 34px 4px 34px; box-shadow: 18px 22px 0 rgba(25, 133, 144, .055); }
.auth-answer-map::before { position: absolute; right: -34px; bottom: -38px; width: 120px; height: 120px; content: "GEO"; color: rgba(21, 118, 133, .07); font-size: 52px; font-weight: 900; transform: rotate(-90deg); }
.auth-answer-map-heading { display: flex; flex-direction: column; }
.auth-answer-map-heading span { color: #278593; font-size: 7px; font-weight: 800; letter-spacing: 1.6px; }
.auth-answer-map-heading b { margin-top: 4px; color: #213c4c; font-size: 12px; }
.auth-answer-map-rail { position: absolute; top: 66px; bottom: 70px; left: 37px; width: 1px; background: rgba(40, 135, 147, .2); }
.auth-answer-map-rail::before, .auth-answer-map-rail::after { position: absolute; left: -3px; width: 7px; height: 7px; content: ""; background: #fff; border: 1px solid rgba(31, 143, 155, .5); border-radius: 50%; }
.auth-answer-map-rail::before { top: 0; }
.auth-answer-map-rail::after { bottom: 0; }
.auth-answer-map-rail > i { position: absolute; top: 0; left: -1px; width: 3px; height: 46px; background: linear-gradient(180deg, transparent, #20a6a6, transparent); box-shadow: 0 0 12px rgba(32, 166, 166, .5); animation: auth-answer-scan 3.8s ease-in-out infinite; }
.auth-answer-map-step { position: absolute; right: 18px; left: 18px; display: grid; grid-template-columns: 28px minmax(0, 1fr); align-items: center; gap: 13px; }
.auth-answer-map-step::after { position: absolute; right: 0; bottom: -10px; left: 42px; height: 1px; content: ""; background: linear-gradient(90deg, rgba(36, 121, 137, .18), transparent); }
.auth-answer-map-step em { position: relative; z-index: 1; width: 28px; height: 28px; display: grid; place-items: center; color: #257e8b; background: #f8fdfc; border: 1px solid rgba(47, 141, 151, .32); border-radius: 50%; font-size: 8px; font-style: normal; font-weight: 800; }
.auth-answer-map-step > span { min-width: 0; display: grid; grid-template-columns: 22px minmax(0, 1fr); grid-template-rows: auto auto; align-items: center; }
.auth-answer-map-step > span > i { grid-row: 1 / 3; color: #2798a4; font-size: 16px; }
.auth-answer-map-step small { color: #80959b; font-size: 7px; font-weight: 700; letter-spacing: 1px; }
.auth-answer-map-step b { color: #23404e; font-size: 11px; }
.auth-answer-map-source { top: 72px; }
.auth-answer-map-model { top: 138px; }
.auth-answer-map-result { top: 204px; }
.auth-answer-map-result em { color: #fff; background: #1b9c91; border-color: #1b9c91; box-shadow: 0 0 0 7px rgba(27, 156, 145, .08); }
.auth-answer-map-result > span > i { color: #159486; }
.auth-answer-map-status { position: absolute; right: 18px; bottom: 18px; left: 18px; display: flex; align-items: center; justify-content: space-between; }
.auth-answer-map-status span { display: flex; align-items: center; gap: 6px; color: #52717a; font-size: 8px; }
.auth-answer-map-status i { color: #159486; font-size: 13px; }
.auth-answer-map-status strong { color: #168b80; font-size: 14px; }
@keyframes auth-answer-scan { 0% { opacity: 0; transform: translateY(0); } 18% { opacity: 1; } 82% { opacity: 1; } 100% { opacity: 0; transform: translateY(144px); } }

.auth-card { position: relative; height: calc(100% - 36px); min-height: 0; margin: 18px; padding: 30px 36px; align-self: center; overflow-y: auto; scrollbar-width: none; background: rgba(255, 255, 255, .98); border: 1px solid rgba(210, 220, 234, .9); border-radius: 19px; box-shadow: 0 20px 50px rgba(45, 78, 124, .12); animation: auth-card-in .28s ease both; }
@keyframes auth-card-in { from { opacity: .35; transform: translateX(8px); } to { opacity: 1; transform: translateX(0); } }
.auth-card::-webkit-scrollbar { display: none; }
.auth-shell-login .auth-card { padding-block: 20px; }
.auth-shell-register .auth-card { padding: 28px 38px; }
.auth-shell-forgot .auth-card { padding-block: 18px; }
.auth-card-brand { padding-bottom: 20px; border-bottom: 1px solid #edf0f4; }
.auth-card-brand strong { color: #1d293d; font-size: 17px; }
.auth-card-brand small { color: #8a94a4; font-size: 10px; }
.auth-heading { margin: 26px 0 18px; }
.auth-shell-login .auth-heading { margin: 18px 0 12px; }
.auth-shell-forgot .auth-card-brand { padding-bottom: 14px; }
.auth-shell-forgot .auth-heading { margin: 12px 0 8px; }
.auth-heading-compact { margin: 18px 0 12px; }
.auth-heading > span { color: var(--auth-teal); font-size: 9px; font-weight: 800; letter-spacing: 1.8px; }
.auth-heading h1 { margin: 7px 0 0; color: #1c2638; font-size: 28px; letter-spacing: -.5px; }
.auth-tabs { height: 46px; margin: 0 0 15px; padding: 4px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; border: 1px solid #e4e9ef; border-radius: 10px; background: #f3f6f8; }
.auth-tabs button { display: flex; align-items: center; justify-content: center; gap: 7px; border: 0; border-radius: 7px; color: #7a8495; background: transparent; font-size: 11px; font-weight: 700; cursor: pointer; transition: 160ms ease; }
.auth-tabs button:hover { color: #0f766e; background: rgba(255, 255, 255, .62); }
.auth-tabs button.is-active { color: #0f766e; background: #fff; box-shadow: 0 2px 7px rgba(31, 48, 77, .08); }
.auth-card > .auth-heading, .auth-card > .auth-tabs, .auth-card > .auth-notice, .auth-card > .auth-login-stage, .auth-card > .auth-form, .auth-card > .auth-switch-line, .auth-card > .auth-legal-links { width: min(388px, 100%); margin-inline: auto; }
.auth-login-stage { min-width: 0; }
.auth-login-stage > .auth-form { min-width: 0; opacity: 1; transform: translateY(0); transition: opacity .18s ease, transform .18s ease; }
.auth-login-stage > .auth-form[hidden] { display: none !important; }
.auth-form { display: flex; flex-direction: column; gap: 12px; }
.auth-login-stage .auth-form { gap: 10px; }
.auth-shell-forgot .auth-form { gap: 7px; }
.auth-form > label, .auth-form-grid > label { display: flex; flex-direction: column; gap: 6px; color: #465266; font-size: 11px; font-weight: 700; }
.auth-form input:not([type="checkbox"]) { width: 100%; height: 42px; padding: 0 11px; border: 1px solid #d6dce6; border-radius: 8px; outline: 0; color: #263348; background: #fff; font-size: 12px; font-weight: 500; transition: border-color .16s ease, box-shadow .16s ease; }
.auth-form input::placeholder { color: #a5adba; }
.auth-form input:focus { border-color: #34a4e7; box-shadow: 0 0 0 3px rgba(52, 164, 231, .11); }
.auth-field { position: relative; min-width: 0; }
.auth-field.is-feedback-open { z-index: 40; }
.auth-field.is-invalid input:not([type="checkbox"]) { border-color: #ef6a74; box-shadow: 0 0 0 3px rgba(239, 106, 116, .1); }
.auth-field-feedback { position: absolute; top: calc(100% + 9px); left: 10px; z-index: 50; width: max-content; max-width: min(304px, calc(100vw - 48px)); padding: 12px 14px; visibility: hidden; border: 1px solid #c9d7e6; border-radius: 10px; color: #334155; background: rgba(255, 255, 255, .98); box-shadow: 0 14px 34px rgba(42, 61, 87, .18), 0 3px 9px rgba(42, 61, 87, .08); font-size: 13px; font-weight: 500; line-height: 1.55; opacity: 0; transform: translateY(-5px) scale(.985); transform-origin: 24px 0; transition: visibility .16s ease, opacity .16s ease, transform .18s ease; pointer-events: none; }
.auth-field-feedback::before, .auth-field-feedback::after { position: absolute; bottom: 100%; left: 18px; width: 0; height: 0; content: ""; border: solid transparent; pointer-events: none; }
.auth-field-feedback::before { margin-left: -7px; border-width: 7px; border-bottom-color: #c9d7e6; }
.auth-field-feedback::after { margin-left: -6px; border-width: 6px; border-bottom-color: #fff; }
.auth-field-feedback.is-align-right { right: 10px; left: auto; transform-origin: calc(100% - 24px) 0; }
.auth-field-feedback.is-align-right::before, .auth-field-feedback.is-align-right::after { right: 18px; left: auto; }
.auth-field-feedback.is-open { visibility: visible; opacity: 1; transform: translateY(0) scale(1); }
.auth-field-feedback.is-error { border-color: #f0a2a8; color: #9f2631; background: #fffafa; box-shadow: 0 14px 34px rgba(139, 38, 49, .14), 0 3px 9px rgba(42, 61, 87, .07); }
.auth-field-feedback.is-error::before { border-bottom-color: #f0a2a8; }
.auth-field-feedback.is-error::after { border-bottom-color: #fffafa; }
.auth-field-feedback.is-success { border-color: #92daca; color: #176c5e; background: #f6fffc; }
.auth-field-feedback.is-success::before { border-bottom-color: #92daca; }
.auth-field-feedback.is-success::after { border-bottom-color: #f6fffc; }
.auth-feedback-rule { display: flex; align-items: flex-start; gap: 8px; white-space: normal; }
.auth-feedback-rule + .auth-feedback-rule { margin-top: 5px; }
.auth-feedback-rule i { width: 16px; height: 16px; margin-top: 2px; display: inline-grid; flex: 0 0 16px; place-items: center; border-radius: 50%; color: #fff; background: #9aa7b8; font-size: 10px; font-weight: 700; line-height: 16px; }
.auth-feedback-rule.is-pass { color: #237769; }
.auth-feedback-rule.is-pass i { background: #31a997; }
.auth-feedback-rule.is-fail { color: #a82934; }
.auth-feedback-rule.is-fail i { background: #df5360; }
.auth-feedback-rule.is-pending i { color: #fff; background: #9aa7b8; }
.auth-password-field { position: relative; display: block; }
.auth-password-field input { padding-right: 42px !important; }
.auth-password-field button { position: absolute; top: 1px; right: 1px; z-index: 2; width: 40px; height: 40px; border: 0; color: #718096; background: transparent; cursor: pointer; }
.auth-captcha-field { display: grid; grid-template-columns: minmax(0, 1fr) 124px; gap: 9px; }
.auth-captcha-field button { height: 42px; padding: 0; overflow: hidden; border: 1px solid #bae6e8; border-radius: 8px; background: #ecfeff; cursor: pointer; }
.auth-captcha-field img { display: block; width: 100%; height: 100%; object-fit: cover; }
.auth-sms-field { display: grid; grid-template-columns: minmax(0, 1fr) 112px; gap: 8px; }
.auth-sms-field button { border: 1px solid #9cddd9; border-radius: 8px; color: #117f98; background: #f0fbfc; font-size: 10px; font-weight: 700; cursor: pointer; transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease; }
.auth-sms-field button:not(:disabled):hover { border-color: #51c9bd; box-shadow: 0 7px 16px rgba(32, 156, 169, .12); transform: translateY(-1px); }
.auth-sms-field button:disabled { border-color: #dde3ea; color: #929cab; background: #f3f5f7; cursor: not-allowed; }
#aliyun-captcha-element { min-height: 0; }
.auth-options { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.auth-options label { display: inline-flex; align-items: center; gap: 6px; color: #7b8697; font-size: 10px; cursor: pointer; }
.auth-options input, .auth-agreement input { accent-color: var(--auth-teal); }
.auth-options a, .auth-switch-line a { color: #0f8e82; font-size: 10px; font-weight: 700; text-decoration: none; }
.auth-primary-button { position: relative; min-height: 44px; padding: 0 20px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; overflow: hidden; border: 0; border-radius: 7px; color: #fff; background: linear-gradient(100deg, #239be1, #23b6c4 52%, #2bc29d); box-shadow: 0 10px 24px rgba(26, 157, 185, .22); font-size: 12px; font-weight: 700; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, opacity .16s ease; }
.auth-primary-button::after { position: absolute; inset: 0; content: ""; background: linear-gradient(110deg, transparent 20%, rgba(255, 255, 255, .26) 48%, transparent 74%); transform: translateX(-115%); transition: transform .55s ease; }
.auth-primary-button:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 13px 28px rgba(26, 157, 185, .28); }
.auth-primary-button:hover:not(:disabled)::after { transform: translateX(115%); }
.auth-primary-button > * { position: relative; z-index: 1; }
.auth-primary-button:disabled { color: #98a2b3; background: #e5e9ee; box-shadow: none; cursor: not-allowed; }
.auth-primary-button:disabled::after { display: none; }
.auth-message, .auth-notice { padding: 9px 11px; display: flex; align-items: center; gap: 7px; border: 1px solid #f1c9c5; border-radius: 7px; color: var(--auth-danger); background: var(--auth-danger-bg); font-size: 10px; line-height: 1.55; }
.auth-message { height: 30px; min-height: 30px; padding: 0 11px; overflow: hidden; opacity: 1; transform: translateY(0); transition: height .22s ease, min-height .22s ease, padding .22s ease, border-width .22s ease, opacity .18s ease, transform .22s ease, visibility .22s ease; }
.auth-message[aria-hidden="true"] { height: 0; min-height: 0; padding: 0 11px; visibility: hidden; border-width: 0; opacity: 0; transform: translateY(-8px); }
.auth-notice { margin: -7px 0 14px; border-color: #cbe8de; color: #17765c; background: #edf9f5; }
.auth-message.is-success { border-color: #cbe8de; color: #17765c; background: #edf9f5; }
.auth-card.is-register-complete { overflow: hidden; }
.auth-register-success { position: absolute; inset: 0; z-index: 5; padding: 30px; display: grid; place-items: center; visibility: hidden; border-radius: inherit; background: rgba(255, 255, 255, .98); opacity: 0; transform: translateY(12px); transition: opacity .25s ease, transform .32s ease, visibility .32s ease; pointer-events: none; }
.auth-register-success.is-visible { visibility: visible; opacity: 1; transform: translateY(0); pointer-events: auto; }
.auth-register-success-content { display: flex; align-items: center; flex-direction: column; color: #657185; text-align: center; }
.auth-register-success-icon { width: 68px; height: 68px; display: grid; place-items: center; border: 1px solid #9ee5d5; border-radius: 50%; color: #fff; background: linear-gradient(135deg, #27a9d9, #24bd91); box-shadow: 0 14px 34px rgba(31, 172, 147, .24); }
.auth-register-success.is-visible .auth-register-success-icon { animation: auth-register-success-pop .5s cubic-bezier(.2, .9, .25, 1.25) both; }
.auth-register-success-icon i { font-size: 34px; font-weight: 700; }
.auth-register-success-content strong { margin-top: 20px; color: #1f2d3d; font-size: 24px; }
.auth-register-success-content p { margin: 9px 0 0; font-size: 11px; }
.auth-register-success-progress { width: 180px; height: 3px; margin-top: 24px; overflow: hidden; border-radius: 999px; background: #e5f0ee; }
.auth-register-success-progress i { width: 100%; height: 100%; display: block; border-radius: inherit; background: linear-gradient(90deg, #2d9ee5, #25be92); transform: translateX(-100%); }
.auth-register-success.is-visible .auth-register-success-progress i { animation: auth-register-success-progress 1.55s linear forwards; }
@keyframes auth-register-success-pop { from { opacity: 0; transform: scale(.55) rotate(-10deg); } to { opacity: 1; transform: scale(1) rotate(0); } }
@keyframes auth-register-success-progress { to { transform: translateX(0); } }
.auth-switch-line { margin: 10px 0 0; color: #7b8697; font-size: 10px; text-align: center; }
.auth-legal-links { margin: 10px 0 0; color: #8993a3; font-size: 9px; line-height: 1.7; text-align: center; }
.auth-legal-links button, .auth-agreement button { padding: 0; border: 0; color: #0f766e; background: transparent; font-size: inherit; cursor: pointer; }
.auth-legal-links button:hover, .auth-agreement button:hover { text-decoration: underline; }
.auth-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.auth-agreement { padding: 11px 12px; border: 1px solid #dce3ea; border-radius: 8px; color: #667085; background: #f8fafc; transition: 160ms ease; }
.auth-agreement:has(input:checked) { border-color: #99e7dc; background: #effbf8; }
.auth-agreement p { margin: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 4px; font-size: 10px; }
.auth-agreement input { width: 15px; height: 15px; margin: 0 3px 0 0; }
.auth-agreement label { cursor: pointer; }

.auth-agreement-dialog { width: min(760px, calc(100vw - 28px)); max-height: min(88vh, 860px); padding: 0; overflow: hidden; grid-template-rows: auto minmax(0, 1fr) auto; border: 1px solid #dce3eb; border-radius: 12px; color: var(--auth-ink); background: #fff; box-shadow: 0 28px 80px rgba(16, 29, 48, .24); }
.auth-agreement-dialog[open] { display: grid; }
.auth-agreement-dialog::backdrop { background: rgba(12, 25, 41, .52); backdrop-filter: blur(3px); }
.auth-agreement-dialog > header { padding: 18px 20px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #e8ecf1; }
.auth-agreement-dialog > header span { color: var(--auth-teal); font-size: 8px; font-weight: 800; letter-spacing: 1.4px; }
.auth-agreement-dialog h2 { margin: 4px 0 0; font-size: 18px; }
.auth-agreement-dialog > header button { width: 34px; height: 34px; border: 1px solid #dce3eb; border-radius: 7px; color: #697588; background: #fff; cursor: pointer; }
.auth-agreement-content { margin: 18px 20px; padding: 26px 30px; overflow-y: auto; border: 1px solid #dce3eb; border-radius: 9px; color: #475467; background: #fbfcfd; outline: none; overscroll-behavior: contain; }
.auth-agreement-article[hidden] { display: none; }
.auth-agreement-article h3 { margin: 0; color: #1f2d3d; font-size: 20px; line-height: 1.5; text-align: center; }
.auth-agreement-article h4 { margin: 24px 0 8px; color: #263348; font-size: 15px; line-height: 1.6; }
.auth-agreement-article h5 { margin: 18px 0 6px; color: #344054; font-size: 13px; line-height: 1.6; }
.auth-agreement-article p { margin: 8px 0 0; font-size: 12px; line-height: 1.9; text-align: justify; }
.auth-agreement-article .auth-agreement-date { margin-top: 4px; color: #7b8697; font-size: 11px; text-align: center; }
.auth-agreement-article .auth-agreement-notice { margin: 16px 0; padding: 12px 14px; border-left: 3px solid #20a99a; color: #344054; background: #edf9f7; }
.auth-agreement-table-wrap { margin-top: 12px; overflow-x: auto; }
.auth-agreement-table-wrap table { width: 100%; min-width: 600px; border-collapse: collapse; font-size: 11px; line-height: 1.7; }
.auth-agreement-table-wrap th, .auth-agreement-table-wrap td { padding: 9px 10px; border: 1px solid #d8e0e8; text-align: left; vertical-align: top; }
.auth-agreement-table-wrap th { color: #344054; background: #eef3f7; }
.auth-agreement-dialog > footer { padding: 13px 20px; display: flex; justify-content: flex-end; border-top: 1px solid #e8ecf1; }

.account-type-body { min-height: 100vh; background: #f3f6fa; }
.account-type-page { min-height: 100vh; padding: 34px 24px; display: grid; place-items: center; }
.account-type-shell { width: min(1240px, 100%); padding: 30px 40px 32px; border: 1px solid var(--auth-line); border-radius: 15px; background: #fff; box-shadow: 0 18px 54px rgba(31, 48, 77, .09); }
.account-type-header { min-height: 58px; display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; border-bottom: 1px solid #e8ecf1; }
.account-type-header .auth-card-brand { padding-bottom: 17px; border: 0; }
.account-type-user { padding-top: 5px; display: flex; align-items: center; gap: 13px; color: #667085; font-size: 12px; }
.account-type-user span { display: inline-flex; align-items: center; gap: 5px; }
.account-type-user span i { color: #15966f; }
.account-type-user button { padding: 0; border: 0; color: var(--auth-blue); background: transparent; font-size: 12px; cursor: pointer; }
.account-type-copy { max-width: 960px; padding: 34px 0 26px; }
.account-type-copy > span { color: var(--auth-blue); font-size: 11px; font-weight: 800; letter-spacing: 1.4px; }
.account-type-copy h1 { margin: 9px 0 0; color: #202b3e; font-size: 32px; line-height: 1.28; letter-spacing: -.7px; }
.account-type-copy p { margin: 12px 0 0; color: var(--auth-muted); font-size: 14px; line-height: 1.7; }
.account-type-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.account-type-list[data-count="2"] { grid-template-columns: repeat(2, minmax(0, 373px)); justify-content: center; }
.account-type-list[data-count="1"] { grid-template-columns: minmax(0, 373px); justify-content: center; }
.account-type-card { --type-accent: var(--auth-blue); --type-soft: #edf3ff; position: relative; width: 100%; min-height: 370px; padding: 28px 26px 26px; display: flex; align-items: flex-start; flex-direction: column; overflow: hidden; border: 1px solid #d7dee8; border-radius: 14px; color: #526074; background: #fff; cursor: pointer; text-align: left; transition: 180ms ease; }
.account-type-card[data-customer-type="2"] { --type-accent: #7558d9; --type-soft: #f2efff; }
.account-type-card[data-customer-type="3"] { --type-accent: #15966f; --type-soft: #eaf8f3; }
.account-type-card::before { position: absolute; inset: 0 0 auto; height: 3px; content: ""; background: transparent; transition: 180ms ease; }
.account-type-card:hover { border-color: #aebbd0; box-shadow: 0 12px 28px rgba(31, 48, 77, .08); transform: translateY(-3px); }
.account-type-card.is-selected { border-color: var(--type-accent); background: #fbfdff; box-shadow: inset 0 0 0 1px rgba(47, 111, 242, .08), 0 14px 30px rgba(31, 48, 77, .1); transform: translateY(-3px); }
.account-type-card.is-selected::before { background: var(--type-accent); }
.account-type-icon { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 12px; color: var(--type-accent); background: var(--type-soft); }
.account-type-icon i { font-size: 27px; }
.account-type-radio { position: absolute; top: 28px; right: 26px; width: 26px; height: 26px; display: grid; place-items: center; border: 1px solid #cbd2de; border-radius: 50%; color: transparent; background: #fff; }
.account-type-card.is-selected .account-type-radio { border-color: var(--type-accent); color: #fff; background: var(--type-accent); }
.account-type-main { width: 100%; margin-top: 22px; display: flex; flex: 1; flex-direction: column; }
.account-type-main strong { color: #263348; font-size: 21px; line-height: 1.35; }
.account-type-core { width: fit-content; margin-top: 16px; padding: 7px 10px; border-radius: 6px; color: var(--type-accent); background: var(--type-soft); font-size: 12px; font-weight: 750; line-height: 1.5; }
.account-type-main p { margin: 17px 0 0; color: #5f6d82; font-size: 14px; line-height: 1.8; }
.account-type-message { margin-top: 18px; }
.account-type-empty { padding: 16px; color: #8b5e00; background: #fff8e6; }
.account-type-actions { margin-top: 22px; padding-top: 20px; display: flex; align-items: center; justify-content: center; gap: 18px; border-top: 1px solid #e8ecf1; }

@media (max-width: 900px) {
    .auth-body { overflow-x: hidden; }
    .auth-page { height: auto; min-height: 100vh; padding: 18px; overflow: auto; }
    .auth-shell, .auth-shell-register { width: min(620px, 100%); height: auto; min-height: 0; grid-template-columns: minmax(0, 1fr); border-radius: 18px; }
    .auth-story { display: none; }
    .auth-card, .auth-shell-register .auth-card, .auth-shell-forgot .auth-card { width: 100%; height: auto; min-height: 0; max-height: none; margin: 0; padding: 28px; border: 0; border-radius: 18px; box-shadow: none; }
    .auth-shell-login .auth-card { min-height: 664px; }
    .account-type-page { padding: 18px; }
    .account-type-shell { padding: 24px; }
    .account-type-list,
    .account-type-list[data-count="2"],
    .account-type-list[data-count="1"] { grid-template-columns: minmax(0, 1fr); }
    .account-type-card { min-height: 0; }
}

@media (max-width: 620px) {
    .auth-page { padding: 12px; align-items: start; }
    .auth-shell, .auth-shell-register { border-radius: 14px; }
    .auth-card { padding: 22px 18px; }
    .auth-shell-login .auth-card { min-height: 664px; }
    .auth-heading h1 { font-size: 24px; }
    .auth-form-grid { grid-template-columns: minmax(0, 1fr); }
    .auth-field-feedback, .auth-field-feedback.is-align-right { right: 8px; left: 8px; width: auto; max-width: none; transform-origin: 24px 0; }
    .auth-field-feedback.is-align-right::before, .auth-field-feedback.is-align-right::after { right: auto; left: 18px; }
    .auth-captcha-field { grid-template-columns: minmax(0, 1fr) 112px; }
    .auth-message { height: 30px; }
    .auth-agreement-dialog { max-height: calc(100vh - 24px); }
    .auth-agreement-content { margin: 12px; padding: 18px 14px; }
    .auth-agreement-article h3 { font-size: 17px; }
    .auth-agreement-article p { font-size: 11px; line-height: 1.8; }
    .account-type-page { padding: 9px; align-items: start; }
    .account-type-shell { padding: 18px; border-radius: 11px; }
    .account-type-header, .account-type-actions { align-items: stretch; flex-direction: column; }
    .account-type-user { padding: 0 0 14px; justify-content: space-between; }
    .account-type-copy { padding: 22px 0 18px; }
    .account-type-copy h1 { font-size: 23px; }
    .account-type-card { padding: 18px; }
    .account-type-icon { width: 42px; height: 42px; }
    .account-type-radio { top: 18px; right: 18px; }
    .account-type-copy p { font-size: 13px; }
    .account-type-main strong { font-size: 18px; }
    .account-type-core { font-size: 12px; }
    .account-type-main p { font-size: 14px; line-height: 1.75; }
    .account-type-actions .auth-primary-button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
    .auth-ambient-route::before, .auth-ambient-route::after, .auth-answer-map-rail > i, .auth-card { animation: none !important; }
    .auth-primary-button::after { display: none; }
}
