*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{display:flex;align-items:center;justify-content:center;min-height:100vh;padding:84px 14px 46px;font-family:"Microsoft YaHei","PingFang SC","Hiragino Sans GB","Noto Sans SC",-apple-system,"Segoe UI",sans-serif;color:#1b1f24;background:#0b3d7a;background-image:radial-gradient(circle at 18% 12%,rgba(255,255,255,.20),rgba(255,255,255,0) 46%),linear-gradient(135deg,#0a2f63 0%,#1257a8 48%,#2f8fe0 100%);background-attachment:fixed}

body::before{content:'';position:fixed;inset:0;z-index:0;pointer-events:none;background-image:repeating-linear-gradient(45deg,rgba(255,255,255,.06) 0 1px,rgba(255,255,255,0) 1px 26px),repeating-linear-gradient(-45deg,rgba(255,255,255,.06) 0 1px,rgba(255,255,255,0) 1px 26px)}

.cloud{position:fixed;z-index:0;pointer-events:none;background-repeat:no-repeat;background-size:contain}
.c-tl{left:-26px;top:96px;width:230px;height:158px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='230' height='158' viewBox='0 0 230 158'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='2.6' opacity='.20' stroke-linecap='round'%3E%3Cpath d='M28 122c-16 0-27-11-27-25 0-13 9-23 22-25 2-16 15-28 32-28 18 0 32 14 34 31'/%3E%3Cpath d='M45 122c0-14 10-24 23-24'/%3E%3Cpath d='M124 100c-11 0-19-8-19-18 0-9 6-16 15-17 2-11 10-19 22-19 12 0 21 10 21 22'/%3E%3Cpath d='M136 100c0-10 7-17 16-17'/%3E%3Ccircle cx='180' cy='62' r='21'/%3E%3Ccircle cx='180' cy='62' r='7'/%3E%3C/g%3E%3C/svg%3E")}
.c-br{right:-30px;bottom:44px;width:250px;height:172px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='250' height='172' viewBox='0 0 250 172'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='2.6' opacity='.20' stroke-linecap='round'%3E%3Cpath d='M30 132c-16 0-27-11-27-25 0-13 9-23 22-25 2-16 15-28 32-28 18 0 32 14 34 31'/%3E%3Cpath d='M47 132c0-14 10-24 23-24'/%3E%3Cpath d='M126 110c-11 0-19-8-19-18 0-9 6-16 15-17 2-11 10-19 22-19 12 0 21 10 21 22'/%3E%3Cpath d='M138 110c0-10 7-17 16-17'/%3E%3Ccircle cx='182' cy='72' r='21'/%3E%3Ccircle cx='182' cy='72' r='7'/%3E%3C/g%3E%3C/svg%3E")}

.fret{position:fixed;left:0;right:0;height:16px;z-index:1;pointer-events:none;background-repeat:repeat-x;background-size:24px 16px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='16' viewBox='0 0 24 16'%3E%3Cpath d='M0 15h24M5 15V6h9v9M5 6V1h13v14M9 1v4' fill='none' stroke='%23ffffff' stroke-width='1.3' opacity='.32'/%3E%3C/svg%3E")}
.fret.top{top:58px}
.fret.bot{bottom:26px}

.band{position:fixed;left:0;right:0;bottom:0;height:26px;background:#b8302a;color:#fff;font-size:11px;display:flex;align-items:center;justify-content:center;letter-spacing:3px;z-index:3}

/* page bar: logo + domain hard LEFT, safety pill pushed right */
.topbar{position:fixed;top:0;left:0;right:0;height:58px;display:flex;align-items:center;gap:9px;padding:0 16px;z-index:6;background:rgba(255,255,255,.10);border-bottom:1px solid rgba(255,255,255,.18)}
.topbar .tile{width:32px;height:32px;border-radius:9px;box-shadow:0 4px 12px rgba(4,26,56,.25)}
.topbar .tile img{width:21px;height:21px}
.topbar .tile .mono{font-size:14px}
.topbar .org{font-size:14px;font-weight:700;color:#fff;flex:0 1 auto}
.pill{margin-left:auto;display:flex;align-items:center;gap:5px;font-size:11px;color:#fff;background:rgba(255,255,255,.18);border:1px solid rgba(255,255,255,.30);padding:4px 10px;border-radius:999px;flex:0 0 auto}

.tile{background:#fff;display:flex;align-items:center;justify-content:center;overflow:hidden;flex:0 0 auto}
.tile img{object-fit:contain;display:none}
.tile .mono{font-weight:700;color:#1257a8;display:none}
.org{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}

main.card{position:relative;z-index:2;width:100%;max-width:390px;background:#fff;border-radius:12px;box-shadow:0 18px 50px rgba(4,26,56,.38);padding:13px 26px 22px}

/* box header: TEXT ONLY, top-left corner of the box, no logo */
.chead{display:flex;justify-content:flex-start;align-items:center;margin:0 0 12px}
.chead .org{font-size:13px;font-weight:700;color:#5b6774;letter-spacing:.2px;max-width:100%}

h1{font-size:23px;line-height:1.3;font-weight:700;margin:0 0 8px;text-align:center;color:#111}
.sub{font-size:13px;color:#6b7480;margin:0 0 18px;text-align:center;line-height:1.5}
label{display:block;font-size:12px;font-weight:700;color:#39424e;margin:0 0 7px}
.inp,.pw{height:44px;border:1px solid #d7dde6;border-radius:8px;background:#fff;width:100%}
.inp{font-size:14px;padding:0 12px;outline:0;font-family:inherit}
.inp:focus{border-color:#2f8fe0;box-shadow:0 0 0 3px rgba(47,143,224,.14)}
.pw{display:flex;align-items:center;padding:0 10px}
.pw input{flex:1;min-width:0;border:0;outline:0;font-size:14px;background:transparent;height:100%;font-family:inherit}
.pw .eye{flex:0 0 auto;font-size:13px;color:#2f8fe0;cursor:pointer;padding:0 4px;user-select:none}
.pw.warnbox{border-color:#e0a83a;background:#fffdf6}
.warnic{display:flex;align-items:center;margin-right:8px;flex:0 0 auto}

.acct{display:flex;align-items:center;gap:8px;background:#eef3f9;border-radius:8px;padding:9px 11px;margin:0 0 18px}
.acct img{width:16px;height:16px;border-radius:3px;flex:0 0 auto;display:none}
.chipmono{width:16px;height:16px;border-radius:4px;background:#cddcec;color:#2a5c92;font-size:10px;font-weight:700;display:flex;align-items:center;justify-content:center;flex:0 0 auto}
.acem{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13.5px;font-weight:600;color:#22303f}
.acct a{font-size:12.5px;color:#2f8fe0;text-decoration:none;flex:0 0 auto}

.btn{width:100%;height:44px;margin-top:20px;border:0;border-radius:8px;background:#1a72c9;color:#fff;font-size:15px;font-weight:700;cursor:pointer;font-family:inherit}
.btn:hover{background:#1565b3}
.hr{height:1px;background:#e9edf2;margin:20px 0 12px}
.foot{font-size:11.5px;color:#8b95a1;text-align:center}
#dbg{display:none;margin-top:14px;padding:9px;border-radius:8px;background:#111;color:#0f0;font:11px/1.4 monospace;white-space:pre-wrap;word-break:break-all}
#dbg.on{display:block}

.ty{text-align:center}
.tick{width:54px;height:54px;border-radius:50%;background:#e7f6ec;display:flex;align-items:center;justify-content:center;margin:0 auto 16px}
.seal{width:48px;height:48px;background:#c8352f;color:#fff;border-radius:6px;display:flex;align-items:center;justify-content:center;font-size:12px;margin:18px auto 8px;line-height:1.15;text-align:center;font-weight:700;letter-spacing:1px}