:root {color-scheme:light; font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif; color:#202536; background:#fff; font-size:14px}
* {box-sizing:border-box}
body.business-login {margin:0;min-height:100vh}
.auth-bar {height:72px;border-bottom:1px solid #e5e8ee;display:flex;align-items:center;justify-content:space-between;padding:0 clamp(20px,5vw,84px)}
.auth-brand {display:flex;align-items:center;gap:11px;font-size:18px;font-weight:650;line-height:1.35}
.auth-mark {position:relative;display:inline-block;flex:none;width:32px;height:32px;border-radius:9px;background:#315eef}
.auth-mark::before,.auth-mark::after {content:"";position:absolute;background:#fff;transform:skewY(-16deg);width:14px;height:12px;left:9px;border-radius:2px}
.auth-mark::before {top:13px;opacity:.56}.auth-mark::after {top:7px}
a {color:#375496;text-decoration:none}.auth-bar a {display:inline-flex;align-items:center;gap:4px;min-height:40px;color:#536078}
a:hover {color:#214ed9}
.auth-shell {display:grid;grid-template-columns:minmax(270px,380px) minmax(0,500px);gap:clamp(50px,8vw,150px);align-items:center;justify-content:center;padding:clamp(48px,7vh,100px) 6vw;min-height:calc(100vh - 72px)}
.auth-main {width:100%;max-width:380px;margin:auto}
h1 {font-size:clamp(26px,2.5vw,36px);line-height:1.25;letter-spacing:-.04em;font-weight:650;margin:0 0 26px}
.auth-tabs {display:flex;gap:28px;border-bottom:1px solid #e0e4ed;margin-bottom:22px}
button,input {font:inherit}
button {cursor:pointer}
.auth-tabs button {background:none;border:0;border-bottom:2px solid transparent;border-radius:0;color:#616b7d;font-weight:520;min-height:44px;padding:0}
.auth-tabs button[aria-selected=true] {color:#2857d9;border-color:#3265f6;font-weight:650}
[hidden] {display:none!important}
form label {display:block;margin:17px 0 7px;font-size:14px;line-height:1.45;font-weight:560}
form input {width:100%;height:44px;border:1px solid #c8cfdb;color:inherit;background:white;border-radius:7px;padding:0 12px;outline:none;transition:border-color 100ms,box-shadow 100ms}
form input:hover {border-color:#949fb1}
form input:focus {border-color:#3b68ed;box-shadow:0 0 0 3px #3464f01c}
input::placeholder {color:#8a93a4}
:where(button,a):focus-visible {outline:3px solid #3b68ed;outline-offset:3px}
.auth-secret,.auth-code {display:flex;position:relative}
.auth-secret input{padding-right:48px}
.auth-secret button {position:absolute;top:1px;right:1px;min-width:42px;height:42px;background:transparent;color:#647088;font-size:18px;border:0;border-radius:6px;display:grid;place-items:center}
.auth-code {gap:8px}
.auth-code input {flex:1;min-width:0}
.auth-code button {padding:0 13px;white-space:nowrap;background:#f5f7fc;color:#34579e;border:1px solid #d9dfeb;border-radius:7px}
.auth-primary {margin-top:24px;background:#315eed;border:1px solid #315eed;color:white;width:100%;height:45px;border-radius:7px;font-size:15px;font-weight:650}
.auth-primary:hover {background:#244ed1}
button:disabled {opacity:.64;cursor:default}
.auth-error,.auth-help {font-size:13px;line-height:1.5;margin:14px 0 0}
.auth-error {color:#b3223a}.auth-error:empty {display:none}
.auth-help {color:#69758a}
.auth-visual {position:relative;isolation:isolate;overflow:hidden;display:grid;place-items:center;aspect-ratio:1.05;border-radius:24px;background-color:#f2f5ff;background-image:radial-gradient(circle at 80% 22%,#e3eaff 0,transparent 53%),linear-gradient(145deg,#f7f9ff,#eaf0ff)}
.auth-visual::before {content:"";position:absolute;inset:0;background-image:linear-gradient(#7990c61a 1px,transparent 1px),linear-gradient(90deg,#7990c61a 1px,transparent 1px);background-size:36px 36px;mask-image:linear-gradient(38deg,#0008,transparent 68%)}
.auth-sheets {width:65%;position:relative;aspect-ratio:1.37;transform:rotate(-12deg) skewY(3deg)}
.sheet {position:absolute;inset:0;border-radius:13px;overflow:hidden}
.sheet-back {background:#6289ec;transform:translate(4%,15%) rotate(4deg)}
.sheet-middle {background:#b5caff;transform:translate(2%,8%) rotate(2deg);border:1px solid #95b2fa}
.sheet-front {background:#fff;border:1px solid #d9e2fa;box-shadow:0 20px 35px #364c8724;display:grid;grid-template-rows:23% 1fr;padding:0 7% 6%}
.sheet-top {display:flex;gap:5%;align-items:center}.sheet-top span {display:block;height:24%;aspect-ratio:1;background:#4476fb;border-radius:3px}.sheet-top b {width:29%;height:10%;background:#c9d5ee;border-radius:3px}
.sheet-body {display:grid;grid-template-columns:1.15fr 1fr .8fr;border:1px solid #dce3f1;border-radius:4px;overflow:hidden;background:#e3e9f3;gap:1px}
.sheet-body i {display:flex;align-items:center;justify-content:center;background:#fff}
.sheet-body i::before {content:"";width:62%;height:12%;border-radius:4px;background:#dce4f2}
.sheet-body i:nth-child(3n)::before {width:49%;height:28%;background:#d8e8ff}
.sheet-body i:nth-child(6)::before {background:#d0eee4}
.sheet-body i:nth-child(5) {position:relative;background:#edf3ff;outline:2px solid #5384ff;z-index:1}
@media(max-width:820px) {
.auth-shell {grid-template-columns:minmax(0,380px);align-items:start;padding:clamp(36px,9vh,84px) 24px}.auth-visual{display:none}.auth-bar{height:60px}.auth-shell{min-height:calc(100vh - 60px)}
}
@media(max-width:600px) {form input {font-size:16px}.auth-bar a{min-height:44px}.auth-secret button{height:44px;top:0;width:44px}.auth-shell{padding:44px 22px 32px}}
@media(prefers-reduced-motion:reduce) {form input {transition:none}}

body.business-login.app-keyboard { padding-bottom:calc(var(--app-keyboard-inset,0px) + 12px); }

/* 登录前的安全验证 */
.login-captcha-dialog {padding:0;border:0;border-radius:14px;box-shadow:0 18px 50px rgba(16,24,40,.25);margin:auto}
.login-captcha-dialog::backdrop {background:rgba(16,24,40,.45)}
.login-captcha-dialog { width: min(calc(100vw - 2rem), 21.75rem); }
.login-captcha { display: grid; justify-items: center; gap: .75rem; padding: 1rem 1.125rem 1.125rem; }
.login-captcha-head { display: flex; align-items: center; justify-content: space-between; width: 100%; max-width: 18.75rem; }
.login-captcha-head h2 { margin: 0; color: #202536; font-size: 1rem; font-weight: 600; }
.login-captcha-tools { display: flex; gap: .25rem; }
.login-captcha-icon { display: grid; place-items: center; width: 1.875rem; height: 1.875rem; border: 0; border-radius: 50%; background: transparent; color: #667085; cursor: pointer; }
.login-captcha-icon:hover { background: #f2f4f7; color: #202536; }
.login-captcha-icon:focus-visible { outline: 3px solid rgba(37,99,235,.35); outline-offset: 1px; }
.login-captcha-prompt { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .375rem; width: 100%; max-width: 18.75rem; margin: 0; color: #202536; font-size: .9rem; }
.login-captcha-prompt small { width: 100%; color: #667085; font-size: .75rem; text-align: center; }
.login-captcha-chip { display: grid; place-items: center; min-width: 1.75rem; height: 1.75rem; padding: 0 .375rem; border: 1px solid #c7ccd6; border-radius: .5rem; background: #fff; font-size: 1rem; font-weight: 600; }
.login-captcha-chip.is-done { border-color: #067647; background: #dcfae6; color: #05603a; }
.login-captcha-status { width: 100%; max-width: 18.75rem; min-height: 1.25rem; margin: 0; color: #667085; font-size: .8rem; text-align: center; }
.login-captcha-status[data-tone="error"] { color: #b42318; }
.login-captcha-status[data-tone="success"] { color: #067647; }
.login-captcha-stage { position: relative; width: 100%; max-width: 18.75rem; aspect-ratio: 5 / 3; overflow: hidden; border-radius: .75rem; background: #e4e7ec; cursor: crosshair; touch-action: manipulation; }
.login-captcha-image { display: block; width: 100%; height: 100%; user-select: none; -webkit-user-drag: none; }
.login-captcha-marks { position: absolute; inset: 0; pointer-events: none; }
.login-captcha-mark { position: absolute; display: grid; place-items: center; width: 1.5rem; height: 1.5rem; margin: -.75rem 0 0 -.75rem; border-radius: 50%; background: rgba(37,99,235,.92); color: #fff; font-size: .75rem; font-weight: 600; box-shadow: 0 1px 4px rgba(0,0,0,.35); }
.login-captcha-loading { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; background: #f2f4f7; color: #667085; font-size: .8rem; }
.login-captcha-dialog.is-failed .login-captcha-stage { animation: captchaShake .36s ease-in-out; }
.login-captcha-dialog.is-done .login-captcha-stage { outline: 2px solid #067647; outline-offset: -2px; }
@keyframes captchaShake { 20%, 60% { transform: translateX(-.3125rem); } 40%, 80% { transform: translateX(.3125rem); } }
@media (prefers-reduced-motion: reduce) { .login-captcha-dialog.is-failed .login-captcha-stage { animation: none; } }
