:root { --ink:#17213d; --muted:#8290aa; --brand:#596fe1; --line:#e2e7f1; }
* { box-sizing:border-box; }
html,body { min-height:100%; }
body { margin:0; padding:clamp(14px,4vw,42px); display:grid; place-items:center; color:var(--ink); background:radial-gradient(circle at 6% 5%,rgba(102,123,225,.22),transparent 28rem),radial-gradient(circle at 95% 90%,rgba(75,171,139,.13),transparent 26rem),#f1f4f9; font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif; }
button { font:inherit; }
.hidden { display:none!important; }
.login-shell { width:min(1080px,100%); min-height:650px; display:grid; grid-template-columns:1.03fr .97fr; overflow:hidden; border:1px solid rgba(219,225,238,.9); border-radius:34px; background:rgba(255,255,255,.96); box-shadow:0 35px 90px rgba(31,47,91,.16); }
.login-story { position:relative; overflow:hidden; padding:42px; display:flex; flex-direction:column; color:#fff; background:linear-gradient(145deg,#142653,#263d77 62%,#4d5da7); }
.login-story::before,.login-story::after { content:""; position:absolute; border:1px solid rgba(255,255,255,.12); border-radius:50%; }
.login-story::before { width:430px;height:430px;right:-230px;top:-150px; }
.login-story::after { width:270px;height:270px;right:-120px;top:-80px; }
.brand { position:relative; display:flex; align-items:center; gap:13px; }
.brand>span { width:45px;height:45px;display:grid;place-items:center;border-radius:15px;color:#263b76;background:#fff;font:800 21px/1 Georgia,serif;box-shadow:0 12px 30px rgba(0,0,0,.15); }
.brand div { display:grid; gap:3px; }
.brand strong { font-size:14px;letter-spacing:.12em; }
.brand small { color:#bfc9e7;font-size:8px;letter-spacing:.18em; }
.story-copy { position:relative; margin:auto 0; max-width:500px; }
.eyebrow { color:#bfcaff;font-size:10px;font-weight:800;letter-spacing:.2em; }
.story-copy h1 { margin:20px 0 18px;font-size:clamp(34px,4.3vw,51px);line-height:1.2;letter-spacing:-.055em; }
.story-copy h1 em { color:#ced6ff;font-style:normal; }
.story-copy p { max-width:430px;margin:0;color:#ced6eb;font-size:13px;line-height:1.85; }
.security-points { position:relative; display:flex;flex-wrap:wrap;gap:8px; }
.security-points span { padding:8px 11px;border:1px solid rgba(255,255,255,.14);border-radius:999px;color:#d6dcef;background:rgba(255,255,255,.06);font-size:9px; }
.login-panel { min-width:0;padding:46px 48px;display:flex;flex-direction:column;justify-content:center;background:linear-gradient(150deg,#fff,#fbfcff); }
.panel-head { text-align:center; }
.panel-head>span { color:#9da8bf;font-size:9px;font-weight:800;letter-spacing:.18em; }
.panel-head h2 { margin:10px 0 7px;font-size:27px;letter-spacing:-.04em; }
.panel-head p { margin:0;color:var(--muted);font-size:12px;line-height:1.6; }
.login-state { min-height:315px;margin-top:22px;padding:35px;display:grid;place-items:center;align-content:center;gap:11px;border:1px solid var(--line);border-radius:24px;text-align:center;background:#f7f9fd; }
.login-state strong { font-size:14px; }
.login-state small { max-width:300px;color:var(--muted);font-size:11px;line-height:1.6; }
.login-state.error { border-color:#f0d5d9;color:#9e3f4d;background:#fff7f8; }
.login-state.success { border-color:#cce9de;color:#217558;background:#f1fbf7; }
.spinner { width:28px;height:28px;border:3px solid #dfe4f1;border-top-color:var(--brand);border-radius:50%;animation:spin .8s linear infinite; }
@keyframes spin { to { transform:rotate(360deg); } }
.qr-wrap { position:relative; min-height:390px;margin-top:22px;overflow:hidden;border:1px solid var(--line);border-radius:24px;background:#fff; }
.qr-wrap iframe { width:100%;height:390px;border:0;background:white; }
.qr-cover { position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:12px;color:var(--muted);background:#f8faff;font-size:11px;transition:.25s; }
.qr-wrap.loaded .qr-cover { opacity:0;pointer-events:none; }
.wechat-button { width:100%;min-height:62px;margin-top:22px;padding:0 18px;border:0;border-radius:18px;display:flex;align-items:center;gap:12px;color:white;background:linear-gradient(135deg,#20b568,#159956);box-shadow:0 16px 32px rgba(28,166,95,.24);cursor:pointer; }
.wechat-button:active { transform:scale(.99); }
.wechat-mark { width:38px;height:38px;display:grid;place-items:center;border-radius:12px;color:#149254;background:white;font-weight:900; }
.wechat-button b { flex:1;text-align:left;font-size:14px; }
.wechat-button i { font-size:20px;font-style:normal; }
.mobile-code-card { min-height:315px;margin-top:22px;padding:29px 30px;border:1px solid var(--line);border-radius:24px;display:flex;flex-direction:column;align-items:center;justify-content:center;background:#f8faff;text-align:center; }
.mobile-code-icon { width:48px;height:48px;margin-bottom:16px;display:grid;place-items:center;border-radius:16px;color:#fff;background:linear-gradient(145deg,#6278e4,#465abf);font:800 20px Georgia;box-shadow:0 12px 25px rgba(79,98,197,.22); }
.mobile-code-card label { font-size:13px;font-weight:800; }
.mobile-code-card input { width:min(290px,100%);height:62px;margin:18px 0 10px;border:1px solid #d5dcef;border-radius:17px;outline:0;color:#263b76;background:#fff;text-align:center;font:800 26px ui-monospace,SFMono-Regular,Consolas,monospace;letter-spacing:.15em;font-variant-numeric:tabular-nums; }
.mobile-code-card input:focus { border-color:#7082e2;box-shadow:0 0 0 4px rgba(91,111,218,.11); }
.mobile-code-card p { margin:0;color:var(--muted);font-size:10px;line-height:1.6; }
.mobile-code-card button { width:min(290px,100%);min-height:50px;margin-top:19px;border:0;border-radius:15px;color:#fff;background:linear-gradient(135deg,#6276e5,#5264cf);font-weight:800;cursor:pointer;box-shadow:0 13px 25px rgba(82,100,207,.2); }
.mobile-code-card button:disabled { opacity:.6;cursor:wait; }
.mobile-code-card small { width:min(290px,100%);margin-top:11px;padding:9px;border-radius:10px;color:#a43f4e;background:#fff0f2;font-size:10px;line-height:1.5; }
.retry-button { min-height:46px;margin:12px auto 0;padding:0 18px;border:1px solid #dce2f1;border-radius:14px;color:#5266cb;background:#f7f8ff;font-weight:700;cursor:pointer; }
.login-foot { margin-top:20px;display:flex;align-items:flex-start;gap:9px;color:#8d98ad; }
.login-foot>span { width:7px;height:7px;margin-top:5px;flex:0 0 7px;border-radius:50%;background:#5ec39d;box-shadow:0 0 0 5px rgba(94,195,157,.12); }
.login-foot p { margin:0;font-size:10px;line-height:1.6; }
@media(max-width:760px) { body{padding:0;background:#f5f7fb}.login-shell{min-height:100vh;grid-template-columns:1fr;border:0;border-radius:0;box-shadow:none}.login-story{min-height:245px;padding:calc(24px + env(safe-area-inset-top)) 24px 27px}.story-copy{margin:35px 0 20px}.story-copy h1{margin:12px 0 10px;font-size:30px}.story-copy p{font-size:11px}.security-points{display:none}.login-panel{padding:31px 20px calc(30px + env(safe-area-inset-bottom))}.panel-head h2{font-size:23px}.login-state{min-height:210px}.qr-wrap,.qr-wrap iframe{min-height:380px;height:380px} }
