/* ============ 予你 · 公开页认证区（登录 / 注册 / 找回密码 共用） ============ */

.auth{display:flex;flex-direction:column;height:100%}
.auth-scroll{flex:1;min-height:0;overflow-y:auto;-webkit-overflow-scrolling:touch;display:flex;flex-direction:column}

/* 顶栏 */
.auth-top{
  display:flex;align-items:center;gap:8px;
  padding:calc(var(--safe-t) + 10px) var(--sp-4) 6px;min-height:48px;
}
.auth-top img{width:30px;height:30px;border-radius:10px;box-shadow:0 4px 12px rgba(90,120,190,.18)}
.auth-top .wm{font-size:15px;font-weight:800;color:var(--ink);letter-spacing:-.01em}
.auth-top .back{
  width:44px;height:44px;margin-left:-10px;display:grid;place-items:center;
  text-decoration:none;color:var(--ink);flex:0 0 auto;
}
.auth-top .back svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}

/* 标题区 */
.auth-hd{padding:14px var(--sp-4) 0}
.auth-hd h1{margin:0;font-size:28px;line-height:1.25;font-weight:800;letter-spacing:-.03em;color:var(--ink)}
.auth-hd p{margin:10px 0 0;font-size:13px;line-height:1.7;color:var(--muted)}

/* 表单 */
.auth-form{padding:20px var(--sp-4) 0;display:flex;flex-direction:column;gap:12px}
.fld{position:relative}
.fld label{
  display:block;font-size:12px;font-weight:700;color:var(--muted);
  margin:0 0 7px 3px;letter-spacing:.01em;
}
.fld .box{
  display:flex;align-items:center;gap:10px;height:54px;padding:0 15px;
  background:rgba(255,255,255,.96);border:1px solid var(--line);
  border-radius:var(--r-md);box-shadow:var(--sh-1);
  transition:border-color .16s ease,box-shadow .16s ease;
}
.fld .box:focus-within{
  border-color:rgba(94,124,255,.55);
  box-shadow:0 0 0 3px rgba(94,124,255,.13),var(--sh-1);
}
.fld .box.err{border-color:rgba(224,74,74,.6);box-shadow:0 0 0 3px rgba(224,74,74,.12)}
.fld .box > svg{width:19px;height:19px;flex:0 0 auto;fill:none;stroke:var(--faint);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.fld input{
  flex:1;min-width:0;height:100%;border:0;background:transparent;outline:none;
  font-size:15px;color:var(--ink);font-family:inherit;
}
.fld input::placeholder{color:var(--faint)}
.fld .suffix{
  flex:0 0 auto;font-size:13px;font-weight:700;color:var(--brand-ink);
  background:none;border:0;padding:0 2px;height:44px;min-width:44px;
  display:inline-flex;align-items:center;justify-content:center;cursor:pointer;font-family:inherit;
}
.fld .suffix:disabled{color:var(--faint);cursor:default;font-weight:600}
.fld .eye{
  width:44px;height:44px;margin-right:-9px;display:grid;place-items:center;
  background:none;border:0;cursor:pointer;color:var(--faint);
}
.fld .eye svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.fld .hint{margin:7px 3px 0;font-size:12px;line-height:1.5;color:var(--faint)}
.fld .hint.bad{color:#C42B35}
.fld .hint.ok{color:var(--ok-ink)}

/* 验证码行 */
.cap-row{display:flex;gap:10px;align-items:flex-start}
.cap-row .fld{flex:1;min-width:0}
.cap-img{
  flex:0 0 132px;height:56px;border-radius:var(--r-md);overflow:hidden;
  border:1px solid var(--line);background:#EFF4FF;cursor:pointer;
  display:grid;place-items:center;box-shadow:var(--sh-1);margin-top:19px;
}
.cap-img img{width:100%;height:100%;object-fit:contain;display:block}
.cap-img span{font-size:11px;color:var(--faint);text-align:center;line-height:1.4;padding:0 6px}

/* 记住我 / 忘记密码 */
.auth-row{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:2px 0 0}
.chk{
  display:inline-flex;align-items:center;gap:8px;min-height:44px;
  font-size:13px;color:var(--ink-2);cursor:pointer;user-select:none;
}
.chk i{
  width:19px;height:19px;border-radius:6px;border:1.8px solid #C3CEE4;
  background:#fff;flex:0 0 auto;display:grid;place-items:center;
  transition:background .15s ease,border-color .15s ease;
}
.chk i svg{width:12px;height:12px;fill:none;stroke:#fff;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round;opacity:0}
.chk.on i{background:linear-gradient(135deg,#5B7BFF,#8B6BFF);border-color:transparent}
.chk.on i svg{opacity:1}
.chk input{position:absolute;opacity:0;width:0;height:0}
.auth-link{
  font-size:13px;font-weight:700;color:var(--brand-ink);text-decoration:none;
  min-height:44px;display:inline-flex;align-items:center;
}

/* 主按钮 */
.auth-btn{
  height:54px;border-radius:var(--r-pill);border:0;cursor:pointer;
  display:flex;align-items:center;justify-content:center;gap:8px;
  font-size:16px;font-weight:800;font-family:inherit;letter-spacing:.01em;
  background:linear-gradient(120deg,#5B7BFF,#8B6BFF 62%,#A46BFF);
  color:#fff;box-shadow:0 12px 28px rgba(94,124,255,.34);
  transition:transform .12s ease,opacity .16s ease;
}
.auth-btn:active{transform:translateY(1px)}
.auth-btn:disabled{opacity:.5;box-shadow:none;cursor:default}
.auth-btn.ghost{
  background:rgba(255,255,255,.96);color:var(--ink);
  border:1px solid var(--line);box-shadow:var(--sh-1);
}

/* 协议 */
.agree{
  display:flex;align-items:flex-start;gap:9px;margin:2px 0 0;
  font-size:12px;line-height:1.65;color:var(--muted);cursor:pointer;
}
.agree i{
  width:19px;height:19px;border-radius:6px;border:1.8px solid #C3CEE4;background:#fff;
  flex:0 0 auto;margin-top:2px;display:grid;place-items:center;transition:background .15s ease,border-color .15s ease;
}
.agree i svg{width:12px;height:12px;fill:none;stroke:#fff;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round;opacity:0}
.agree.on i{background:linear-gradient(135deg,#5B7BFF,#8B6BFF);border-color:transparent}
.agree.on i svg{opacity:1}
.agree input{position:absolute;opacity:0;width:0;height:0}
.agree a{color:var(--brand-ink);font-weight:700;text-decoration:none}





/* 底部 */
.auth-foot{
  margin-top:auto;padding:18px var(--sp-4) calc(var(--safe-b) + 22px);
  text-align:center;font-size:13px;color:var(--muted);
}
.auth-foot a{color:var(--brand-ink);font-weight:800;text-decoration:none;padding:0 4px}
.auth-foot .tip{display:block;margin-top:14px;font-size:11px;color:var(--faint);line-height:1.7}

/* 步骤条（找回密码） */
.steps{display:flex;align-items:center;gap:0;padding:16px var(--sp-4) 0}
.steps .s{display:flex;align-items:center;gap:7px;flex:0 0 auto}
.steps .s .n{
  width:24px;height:24px;border-radius:50%;display:grid;place-items:center;
  font-size:12px;font-weight:800;background:#E7EDFA;color:var(--faint);
}
.steps .s .t{font-size:12px;font-weight:700;color:var(--faint)}
.steps .s.on .n{background:linear-gradient(135deg,#5B7BFF,#8B6BFF);color:#fff}
.steps .s.on .t{color:var(--ink)}
.steps .s.done .n{background:var(--brand-soft);color:var(--brand-ink)}
.steps .s.done .t{color:var(--muted)}
.steps .ln{flex:1;height:2px;background:#E7EDFA;margin:0 8px;border-radius:2px}
.steps .ln.on{background:linear-gradient(90deg,#5B7BFF,#8B6BFF)}

/* 密码强度 */
.pwd-bar{display:flex;gap:5px;margin:9px 0 0}
.pwd-bar i{flex:1;height:4px;border-radius:2px;background:#E7EDFA}
.pwd-bar i.on1{background:#F0A0A0}
.pwd-bar i.on2{background:#F2C55C}
.pwd-bar i.on3{background:#6FCF97}

/* 成功态 */
.done-box{padding:34px var(--sp-4) 0;text-align:center}
.done-ic{
  width:76px;height:76px;border-radius:50%;margin:0 auto 18px;display:grid;place-items:center;
  background:linear-gradient(150deg,#D9F5E8,#F0FBF6);color:#12996A;
  box-shadow:0 12px 28px rgba(18,153,106,.18);
}
.done-ic svg{width:38px;height:38px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
.done-box h2{margin:0;font-size:22px;font-weight:800;color:var(--ink);letter-spacing:-.02em}
.done-box p{margin:10px 0 0;font-size:13px;line-height:1.7;color:var(--muted)}

/* 状态切换 */
[data-state="pwd"] .st1,[data-state="done"] .st1,
[data-state="done"] .st2{display:none}
[data-state="pwd"] .st2,[data-state="done"] .st2,
[data-state="done"] .st3{display:block}
.st2,.st3{display:none}
.auth-scroll > *{flex:0 0 auto}

/* toast */
.auth-toast{
  position:fixed;left:50%;top:calc(var(--safe-t) + 16px);z-index:9999;
  transform:translate(-50%,-140%);max-width:calc(100% - 40px);
  padding:11px 16px;border-radius:14px;font-size:13px;line-height:1.5;
  background:rgba(42,51,82,.94);color:#fff;
  box-shadow:0 12px 30px rgba(30,40,80,.28);
  transition:transform .26s cubic-bezier(.2,.9,.3,1);
}
.auth-toast.bad{background:rgba(180,42,58,.96)}
.auth-toast.on{transform:translate(-50%,0)}