/* Auth page artwork and layout; kept separate from the shared client styles. */
.auth-shell{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
.auth-visual{position:sticky;top:0;align-self:start;height:100vh;min-height:100vh;display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr) auto auto;padding:38px clamp(30px,4.8vw,72px) 32px;background:radial-gradient(circle at 76% 34%,#6944d9 0,transparent 31%),linear-gradient(145deg,#21153e 5%,#6037d5 100%)}
.auth-visual::before{display:block;content:'';position:absolute;inset:0;width:auto;height:auto;border:0;border-radius:0;box-shadow:none;background:linear-gradient(130deg,#ffffff0a 0 1px,transparent 1px 84px);pointer-events:none}
.auth-visual .brand{z-index:3;font-size:21px;letter-spacing:0;word-spacing:.08em}
.auth-theme-toggle{position:absolute;z-index:5;top:32px;right:clamp(30px,4.8vw,72px);display:grid;place-items:center;width:38px;height:38px;border:1px solid #ffffff60;border-radius:12px;background:#ffffff22;color:#fff;cursor:pointer;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px)}
.auth-theme-toggle .ti{font-size:19px}
.auth-theme-toggle:hover{background:#ffffff36}
.auth-theme-toggle:focus-visible{outline:2px solid #fff;outline-offset:3px}
.auth-stage{position:relative;isolation:isolate;width:min(100%,600px);height:min(59vh,760px);min-height:380px;place-self:center}
.auth-stage::before{content:'';position:absolute;width:72%;aspect-ratio:1;border:1px solid #ffffff25;border-radius:50%;left:50%;top:50%;transform:translate(-50%,-50%);box-shadow:0 0 0 52px #ffffff08,0 0 0 104px #ffffff05}
.auth-stage::after{content:'';position:absolute;inset:18% 0 14%;z-index:-1;background-image:radial-gradient(#e4d8ff75 1px,transparent 1px);background-size:19px 19px;mask-image:linear-gradient(90deg,transparent,#000 78%);opacity:.4}
.auth-stage-route{position:absolute;inset:0;width:100%;height:100%;overflow:visible;filter:drop-shadow(0 0 9px #ffffff55)}
.auth-stage-route path{fill:none;stroke:#ded1ff;stroke-width:2;stroke-dasharray:5 8;stroke-linecap:round;opacity:.85}
.auth-transfer-card{position:absolute;z-index:2;width:43%;max-width:255px;height:150px;border-radius:24px;padding:21px 22px;display:flex;flex-direction:column;justify-content:space-between;box-shadow:0 30px 55px #160b3c5c,0 3px 8px #160b3c30}
.auth-transfer-send{left:5%;top:17%;background:linear-gradient(155deg,#fff,#eee9ff);color:#2c2250;transform:rotate(-7deg)}
.auth-transfer-receive{right:3%;bottom:18%;background:linear-gradient(140deg,#8460ed,#4d29ae);border:1px solid #ffffff4d;color:#fff;transform:rotate(7deg)}
.auth-transfer-card::after{content:'';position:absolute;right:19px;top:20px;width:31px;height:31px;border:1px solid currentColor;border-radius:50%;opacity:.13;box-shadow:-12px 0 0 -1px currentColor}
.auth-transfer-top,.auth-transfer-bottom{display:flex;align-items:center;justify-content:space-between;gap:12px}
.auth-transfer-top{justify-content:flex-start;font-size:10px;letter-spacing:.18em;font-weight:800;opacity:.82}
.auth-transfer-icon{width:34px;height:34px;border-radius:11px;display:grid;place-items:center;background:#eee8ff;color:#6039d3;font-size:18px;letter-spacing:0}
.auth-transfer-receive .auth-transfer-icon{background:#ffffff29;color:#fff}
.auth-transfer-bottom strong{font:800 32px/1 Manrope,sans-serif;letter-spacing:-.06em}
.auth-transfer-bars{display:flex;align-items:end;gap:3px;height:17px;opacity:.56}
.auth-transfer-bars b{display:block;width:5px;height:9px;border-radius:3px;background:currentColor}
.auth-transfer-bars b:nth-child(2){height:15px}.auth-transfer-bars b:nth-child(3){height:12px}
.auth-transfer-hub{position:absolute;z-index:3;left:50%;top:49%;width:66px;height:66px;display:grid;place-items:center;border:5px solid #ffffff3d;border-radius:22px;background:#fff;color:#6138d5;font-size:28px;box-shadow:0 17px 35px #1e0e4b73;transform:translate(-50%,-50%) rotate(-8deg)}
.auth-transfer-hub i{transform:rotate(8deg)}
.auth-copy{max-width:510px;margin-bottom:35px}
.auth-copy .eyebrow{margin-bottom:14px;font-size:10px;letter-spacing:.24em}
.auth-copy h1{font:800 clamp(34px,3.8vw,52px)/1.08 Manrope,sans-serif;letter-spacing:-.065em;margin:0}
.auth-copy h1 em{color:#d9caff}
.auth-visual footer{display:flex;align-items:center;gap:7px;color:#ded3fa;font-size:10px;font-weight:700;letter-spacing:.08em;text-transform:none}
.auth-visual footer .ti{font-size:14px}
.auth-panel{padding:36px clamp(25px,5vw,70px);background:#f7f6fb}
.auth-form-wrap{width:min(440px,100%);padding:36px 38px;background:#fff;border:1px solid #ece9f3;border-radius:26px;box-shadow:0 28px 70px #31205b12}
.auth-form-wrap h2{font-size:27px;letter-spacing:-.055em}
.auth-form-wrap>p,.auth-password>p,.auth-lock>p{font-size:12px;line-height:1.55;color:#77708a}
.auth-form-wrap .eyebrow{font-size:10px}
.auth-form-wrap .input-field{border-color:#e4e0ee;border-radius:11px;font-size:13px}
.auth-form-wrap .form-label{color:#514960}
.auth-form-wrap .btn-primary{border-radius:11px;box-shadow:0 10px 22px #6236ff23}
.auth-foot{font-size:12px}
.auth-form-wrap>.auth-fine{font-size:10px;margin:15px 0 0}

@media(max-width:850px){
  .auth-shell{grid-template-columns:1fr}
  .auth-visual{position:relative;top:auto;align-self:auto;height:270px;min-height:270px;padding:22px 28px 49px;display:flex;justify-content:space-between}
  .auth-theme-toggle{top:19px;right:28px}
  .auth-stage{position:absolute;right:5%;top:49px;width:250px;height:200px;min-height:0;opacity:.9;place-self:auto}
  .auth-transfer-card{height:89px;border-radius:15px;padding:11px 13px}
  .auth-transfer-top{font-size:8px;gap:5px}.auth-transfer-icon{width:23px;height:23px;border-radius:7px;font-size:13px}
  .auth-transfer-bottom strong{font-size:21px}.auth-transfer-bars{transform:scale(.75);transform-origin:right bottom}
  .auth-transfer-hub{width:39px;height:39px;border-width:3px;border-radius:13px;font-size:17px}
  .auth-copy{max-width:300px;margin:0;z-index:3}.auth-copy h1{font-size:31px}.auth-copy .eyebrow{margin-bottom:9px}
  .auth-visual footer{display:none}
  .auth-panel{margin-top:-23px;border-radius:25px 25px 0 0;padding:31px 24px 50px;position:relative;z-index:4}
  .auth-form-wrap{background:transparent;border:0;box-shadow:none;border-radius:0;padding:0;width:min(440px,100%)}
}

@media(max-width:600px){
  .auth-visual{height:260px;min-height:260px;padding:19px 23px 43px}
  .auth-theme-toggle{right:23px}
  .auth-visual .brand{font-size:20px}
  .auth-stage{width:178px;height:151px;right:2px;top:59px}
  .auth-stage::before{box-shadow:0 0 0 20px #ffffff08,0 0 0 40px #ffffff05}
  .auth-transfer-card{width:62%;height:72px;padding:10px;border-radius:13px}
  .auth-transfer-send{left:0;top:4%}.auth-transfer-receive{right:3%;bottom:3%}
  .auth-transfer-top{font-size:7px;letter-spacing:.12em}.auth-transfer-icon{width:19px;height:19px;border-radius:6px;font-size:11px}
  .auth-transfer-bottom strong{font-size:17px}.auth-transfer-bars{display:none}
  .auth-transfer-hub{width:33px;height:33px;border-width:2px;border-radius:11px;font-size:15px;left:48%;top:51%}
  .auth-copy{max-width:167px}.auth-copy h1{font-size:24px;line-height:1.1}.auth-copy .eyebrow{font-size:8px;margin-bottom:8px;letter-spacing:.14em}
  .auth-panel{padding:30px 23px 45px}
  .auth-form-wrap h2{font-size:24px}
}

@media(max-height:700px) and (min-width:851px){
  .auth-stage{height:340px;min-height:340px}
  .auth-transfer-card{height:125px}
  .auth-copy{margin-bottom:18px}
}
@media(max-height:620px) and (min-width:851px){
  .auth-visual{padding-top:22px;padding-bottom:20px}
  .auth-stage{height:250px;min-height:250px}
  .auth-transfer-card{height:105px;padding:14px}
  .auth-transfer-bottom strong{font-size:24px}
  .auth-copy h1{font-size:32px}
}

/* Compact account-creation steps and channel controls. */
.auth-progress{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin:0 0 27px}
.auth-progress span{display:flex;align-items:center;gap:6px;min-width:0;padding:7px 8px;border:1px solid #ece7f5;border-radius:10px;background:#f8f6fc;color:#938aa4;font-size:10px;font-weight:800;white-space:nowrap}
.auth-progress b{display:grid;place-items:center;flex:none;width:19px;height:19px;border-radius:6px;background:#e7e0f3;color:#81739a;font-size:10px}
.auth-progress .active{border-color:#bcaaff;background:#efe9ff;color:#542ebd}
.auth-progress .active b{background:#6236e9;color:#fff}
.auth-progress .complete{color:#6044b0}
.auth-progress .complete b{background:#dcd1ff;color:#5935c7}
.phone-group{display:flex;align-items:stretch;min-height:49px;border:1px solid #e4e0ee;border-radius:11px;background:#fff;overflow:hidden;transition:border-color .2s,box-shadow .2s}
.phone-group:focus-within{border-color:#8866f2;box-shadow:0 0 0 4px #6236ff1a}
.phone-group select{flex:none;width:116px;border:0;border-right:1px solid #e9e4f1;background:#f7f4ff;color:#302454;padding:0 9px;font:800 12px 'DM Sans',sans-serif;outline:0;cursor:pointer}
.phone-group input{min-width:0;width:100%;border:0;background:transparent;color:#29213e;padding:0 13px;font:600 13px 'DM Sans',sans-serif;outline:0}
.phone-group input::placeholder{color:#a8a0b5}
.verify-channels{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:0 0 22px}
.verify-channels span{display:flex;align-items:center;justify-content:center;gap:7px;padding:10px;border:1px solid #e9e4f2;border-radius:11px;color:#9b91a9;background:#f8f6fc;font-size:11px;font-weight:800}
.verify-channels .ti{font-size:17px}
.verify-channels .active{border-color:#bba8fc;color:#5d38cc;background:#f0ebff}
.verify-channels .complete{color:#5d38cc;background:#f6f2ff}
.auth-code{text-align:center;letter-spacing:.24em;font-size:18px!important;font-weight:800!important;font-variant-numeric:tabular-nums}
.auth-resend{margin-top:18px;text-align:center}
.auth-resend button{padding:5px;border:0;background:none;font:800 12px 'DM Sans',sans-serif;cursor:pointer}
.auth-channel{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:0 0 18px;padding:0;border:0}
.auth-channel legend{margin-bottom:9px;color:#514960;font-size:12px;font-weight:800}
.auth-channel label{position:relative;cursor:pointer}
.auth-channel input{position:absolute;opacity:0;inset:0;width:100%;height:100%;margin:0;cursor:pointer}
.auth-channel span{display:flex;align-items:center;justify-content:center;gap:7px;min-height:42px;border:1px solid #e6e1ef;border-radius:11px;background:#faf9fd;color:#776d88;font-size:12px;font-weight:800}
.auth-channel span .ti{font-size:17px}
.auth-channel input:checked+span{border-color:#aa92fb;background:#f0eaff;color:#5b32cd}
.auth-channel input:focus-visible+span{outline:2px solid #8866f2;outline-offset:2px}
.auth-login-method{margin:20px 0 19px;padding:4px;border:1px solid #e9e4f2;border-radius:14px;background:#f8f6fc}
.auth-login-method span{min-height:39px;border-color:transparent;border-radius:10px;background:transparent}
.auth-login-method input:checked+span{border-color:#ded5fa;background:#fff;box-shadow:0 3px 10px #31205b12}
#loginEmailGroup[hidden],#loginPhoneGroup[hidden]{display:none}
html[data-theme="dark"] .auth-progress span,html[data-theme="dark"] .verify-channels span,html[data-theme="dark"] .auth-channel span{border-color:#423756;background:#2d243b;color:#b7adca}
html[data-theme="dark"] .auth-progress .active,html[data-theme="dark"] .verify-channels .active,html[data-theme="dark"] .auth-channel input:checked+span{border-color:#8d70ef;background:#3d2c63;color:#dfd4ff}
html[data-theme="dark"] .auth-login-method{border-color:#423756;background:#21192f}
html[data-theme="dark"] .auth-login-method span{border-color:transparent;background:transparent}
html[data-theme="dark"] .auth-login-method input:checked+span{border-color:#5d487d;background:#3d2c63;color:#dfd4ff}
html[data-theme="dark"] .auth-progress b{background:#514464;color:#dfd4ff}
html[data-theme="dark"] .auth-progress .active b{background:#744ef0;color:#fff}
html[data-theme="dark"] .phone-group{border-color:#423756;background:#241d32}
html[data-theme="dark"] .phone-group select{border-color:#423756;background:#332743;color:#e8ddff}
html[data-theme="dark"] .phone-group input{color:#fff}
html[data-theme="dark"] .auth-channel legend{color:#b8accb}
@media(max-width:390px){.phone-group select{width:105px}.auth-progress span{padding:6px 5px;font-size:9px}}
