/* ── 方案二「境筑」登录页 ──────────────────────────────────────
   来源 02-jingzhu.html（2026-09-02 定稿）的公共样式 + .v2，v1/v3/v4 三套备选已删。

   这一页**不加载 app.css / tokens.css**：设计稿用的是 .header/.field/.role/.login
   这类通用类名，跟 app.css 撞得满地都是。所以整页自带一套样式，
   连滑块验证也在本文件里重画一遍（captcha.js 只认 class 名，不关心长相）。 */

:root{--accent:#2c6266;--ink:#243b3e;--muted:#8b909a;--line:#e7e9ee;--soft:#f2f7f7;
  font-family:"Noto Sans SC","Microsoft YaHei","PingFang SC","Noto Sans CJK SC",sans-serif;
  color:var(--ink);font-size:14px;color-scheme:light}
*{box-sizing:border-box}
body{margin:0}
button,input{font:inherit}
button,a,input{-webkit-tap-highlight-color:transparent}
button{border:0;background:none;color:inherit;cursor:pointer}
a{color:inherit;text-decoration:none}
button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #84acff;outline-offset:3px}
.icon{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;flex:none}
.symbols{position:absolute;width:0;height:0;overflow:hidden}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

.page{min-height:100svh;position:relative;isolation:isolate;overflow:hidden}
.header{position:absolute;inset:0 0 auto;z-index:2;height:110px;display:flex;align-items:center;justify-content:space-between;padding:0 54px}
.brand{display:flex;align-items:center;gap:12px}
.brand-mark{width:36px;height:36px;flex:none;display:block;border-radius:9px}
.brand-name{font-size:18px;font-weight:650;letter-spacing:.7px}
.brand-en{display:block;font-size:8px;font-weight:500;letter-spacing:2.3px;color:#979eaa;margin-top:5px}
.header-links{display:flex;gap:26px;font-size:12px;color:#7d8594}
.header-links a{padding:6px 0}
.header-links a:hover{color:#fff}
.footer{position:absolute;bottom:29px;left:54px;right:54px;display:flex;justify-content:space-between;align-items:center;color:#9aa0aa;font-size:10px;z-index:1;gap:18px}

.form-panel{width:100%;max-width:390px}
.form-panel h1{font-size:31px;line-height:1.4;letter-spacing:-.7px;font-weight:600;margin:0 0 9px}
.form-intro{margin:0 0 28px;color:#9b9fa8;font-size:13px;line-height:1.8;letter-spacing:.1px}
.roles{display:flex;justify-content:space-between;gap:0;border-bottom:1px solid #eceef2}
.role{position:relative;flex:1;padding:13px 0 15px;font-size:13px;color:#9196a0;line-height:1.4;white-space:nowrap;text-align:center;display:block}
.role:hover{color:var(--accent)}
.role[aria-selected=true]{color:var(--accent);font-weight:600}
.role-note{font-size:11px;color:#959daa;line-height:1.8;min-height:20px;margin:12px 0 22px}

/* 专家的两条路：注册过的用密码，没注册的用身份证 + 一次性评审码。
   设计稿里没有这一层——它是客户明确要的业务规则，按身份标签同样的语言补一条。 */
.modes{display:flex;gap:0;background:#eef3f2;border-radius:5px;padding:3px;margin:-8px 0 18px}
.mode{flex:1;text-align:center;padding:7px 0;font-size:11px;color:#899594;border-radius:4px;display:block}
.mode[aria-selected=true]{background:#fff;color:#325f60;font-weight:600;box-shadow:0 1px 5px #29423d10}

.field{display:block;margin-bottom:20px}
.field-label{font-size:12px;color:#545c69;display:block;margin-bottom:9px;font-weight:500}
.input-wrap{position:relative;display:block}
.input-wrap input{width:100%;height:48px;border:1px solid #e1e5ec;border-radius:7px;background:#fff;padding:0 42px 0 14px;outline:none;color:#273245;transition:border-color .15s,box-shadow .15s;font-size:13px}
.input-wrap input::placeholder{color:#b1b6bf;font-size:12px}
.input-wrap input:focus{border-color:var(--accent);box-shadow:0 0 0 3px #2c626612}
.password-toggle{position:absolute;right:4px;top:5px;width:38px;height:38px;display:grid;place-items:center;color:#a5adb9;border-radius:6px}
.password-toggle:hover{background:var(--soft);color:var(--accent)}
.password-toggle .icon{width:17px;height:17px}
.form-options{display:flex;align-items:center;justify-content:space-between;margin:-2px 0 23px;color:#8c94a1;font-size:11px;gap:12px}
.remember{display:flex;gap:6px;align-items:center;cursor:pointer}
.remember input{accent-color:var(--accent);width:13px;height:13px;margin:0}
.forgot{color:#718d89;font-size:11px;padding:3px 0;text-align:right;line-height:1.7}
.login{display:flex;align-items:center;justify-content:center;width:100%;height:48px;background:var(--accent);color:#fff;border-radius:7px;font-size:14px;font-weight:500;letter-spacing:3px;gap:13px;transition:filter .15s}
.login:hover{filter:brightness(.94)}
.login:disabled{background:#c3d2d1;cursor:not-allowed;filter:none}
.login .icon{width:18px;height:18px}
.form-status{font-size:11px;color:#b04b4b;line-height:1.65;min-height:18px;margin:7px 0 0}
.form-status.info{color:#5d7f81}
.register{display:flex;justify-content:center;align-items:center;gap:6px;font-size:11px;color:#9aa0ab;margin:17px 0 0;flex-wrap:wrap;text-align:center;line-height:1.8}
.register a{font-size:11px;color:var(--accent)}
.e-note{font-size:10px;text-transform:uppercase;letter-spacing:2px;color:#8b9eb9}

/* 滑块验证：真验证码，走 /captcha/new 和 /captcha/verify，服务端判定。
   设计稿那个「拖到头就算过」的演示弹窗已经去掉了。 */
.captcha-field{display:block;margin-bottom:17px}
.captcha{min-width:0}
.captcha-picture{position:relative;width:100%;overflow:hidden;border:1px solid #e1e7e5;border-radius:5px;background:#f5f7f6}
.captcha-bg{display:block;width:100%;height:100%;object-fit:cover}
.captcha-piece{position:absolute;left:0;height:auto}
.captcha-track{position:relative;height:40px;margin-top:8px;border:1px solid #e5ebe7;border-radius:5px;background:#f5f7f6;overflow:hidden}
.captcha-fill{position:absolute;inset:0 auto 0 0;width:0;background:#e3edea}
.captcha-handle{position:absolute;z-index:2;top:0;left:0;width:42px;height:38px;padding:0;border:0;border-radius:4px;
  background:var(--accent);color:#fff;display:grid;place-items:center;cursor:grab;touch-action:none}
.captcha-handle svg{display:block}
.captcha.is-dragging .captcha-handle{cursor:grabbing}
.captcha-status{margin-top:6px;font-size:10px;color:#8b9a94;line-height:1.6}
.captcha.is-passed .captcha-track{border-color:#cfe3d6;background:#f3faf6}
.captcha.is-passed .captcha-fill,.captcha.is-passed .captcha-handle{background:#3c8467}
.captcha.is-passed .captcha-status{color:#368565}
.captcha.is-failed .captcha-track{border-color:#e6cfcf;background:#fbf4f4}
.captcha.is-failed .captcha-status,.captcha.is-unavailable .captcha-status{color:#b04b4b}
.gatewhy{display:block;text-align:center;font-size:10px;color:#9aa8a4;margin-top:8px}

/* ── .v2「境筑」：建筑背景 + 左侧品牌文案 + 右侧暖白卡片 ── */
.v2{background:#344c55;--accent:#2c6266;--ink:#243b3e;--soft:#f2f7f7}
.v2 .backdrop{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-3;display:block}
.v2:before{content:"";position:absolute;inset:0;z-index:-2;
  background:linear-gradient(90deg,#102e3715,#18384300 45%,#142d351c),linear-gradient(0deg,#10292fba 0%,transparent 57%)}
.v2 .header{padding:0 65px;height:108px}
.v2 .brand-name{color:#fff}
.v2 .brand-en{color:#d5dcdf}
.v2 .header-links{color:#edf1f2}
.v2 .main-layout{min-height:100svh;display:flex;align-items:center;justify-content:flex-end;gap:70px;padding:131px max(7vw,65px) 105px 65px}
.v2 .form-area{width:424px;max-width:100%;padding:35px 36px 30px;background:#fffffff7;border-radius:14px;box-shadow:0 18px 70px #0f202b28;flex:none}
.v2 .form-panel{max-width:100%}
.v2 .form-panel h1{font-size:28px;letter-spacing:0}
.v2 .form-intro{font-size:12px;margin-bottom:22px;color:#929da3}
.v2 .roles{background:#f1f4f3;padding:4px;border:0;border-radius:6px}
.v2 .role{font-size:11px;padding:9px 0;color:#899594;border-radius:4px}
.v2 .role[aria-selected=true]{background:#fff;color:#325f60;box-shadow:0 1px 5px #29423d10}
.v2 .role-note{font-size:10px;margin:12px 0 19px;color:#92a09e}
.v2 .field{margin-bottom:17px}
.v2 .input-wrap input{height:45px;border-radius:5px;border-color:#e1e7e5}
.v2 .form-options{margin-bottom:19px}
.v2 .login{height:45px;border-radius:5px}
.v2 .register{margin-top:11px}
.v2 .hero-copy{position:absolute;bottom:180px;left:7%;max-width:500px;color:#fff}
.v2 .hero-copy .e-note{color:#dbe3e6;font-size:10px;letter-spacing:3px}
.v2 .hero-copy h2{font-size:48px;line-height:1.5;font-weight:400;letter-spacing:2px;margin:18px 0 19px;text-shadow:0 2px 35px #18323b30}
.v2 .hero-copy p{font-size:12px;letter-spacing:1px;line-height:1.9;color:#d3dfe1;margin:0}
.v2 .footer{left:65px;right:65px;color:#c5d0d5;font-size:9px}
.v2 .form-status{font-size:10px}

@media(min-width:1550px){
  .v2 .form-area{width:450px;padding:40px}
  .v2 .hero-copy h2{font-size:56px}
}
@media(max-height:940px){
  .v2 .main-layout{padding-top:112px;padding-bottom:46px}
  .v2 .form-area{padding-top:26px;padding-bottom:22px}
  .captcha-picture{max-width:76%}
  .v2 .form-intro{margin-bottom:16px}
  .v2 .field{margin-bottom:14px}
}
@media(max-width:1150px){
  .header{padding:0 35px}
  .brand-name{font-size:16px}
  .brand-en{font-size:7px;letter-spacing:1.7px}
  .v2 .header{padding:0 40px}
  .v2 .main-layout{padding-right:45px}
  .v2 .form-area{width:395px;padding:32px}
  .v2 .hero-copy{left:6%;max-width:400px}
  .v2 .hero-copy h2{font-size:39px}
  .v2 .hero-copy p{font-size:11px;max-width:330px}
  .v2 .footer{left:40px;right:40px}
  .footer{font-size:9px}
}
@media(max-width:880px){
  .v2 .hero-copy{left:4.5%;max-width:310px}
  .v2 .hero-copy h2{font-size:31px}
  .v2 .main-layout{padding-right:30px}
  .v2 .form-area{width:365px;padding:30px}
  .v2 .hero-copy p{max-width:275px}
}
@media(max-width:740px){
  .header-links{font-size:10px;gap:0}
  .brand{gap:9px}
  .brand-mark{width:31px;height:31px}
  .footer-slogan{display:none}
  /* 窄屏把左侧文案收起来，卡片居中——手机上软键盘弹出后表单还能滚到 */
  .v2 .hero-copy{display:none}
  .v2 .main-layout{min-height:100svh;padding:122px 23px 88px;justify-content:center}
  .v2 .form-area{width:390px;padding:31px 28px}
  .v2 .backdrop{object-position:34% 50%}
  .v2:before{background:#193b5060}
  .v2 .form-panel h1{font-size:27px}
  .v2 .brand-name{font-size:15px}
  .v2 .brand-en{font-size:7px}
  .form-options{font-size:11px}
}
@media(max-width:360px){
  .brand-en{letter-spacing:1px}
  .role{font-size:12px}
  .v2 .form-area{padding:28px 22px}
  .role-note{font-size:10px}
}
@media(prefers-reduced-motion:reduce){
  *{transition:none!important;scroll-behavior:auto!important}
}
