/* ---------- 登录页（浅蓝参考风 · v3.1 全尺寸自适应） ---------- */
:root{
  --brand:#2e80ff; --brand-deep:#1f5fe0;
  --text:#1f2a44; --muted:#8a94ab; --line:#e3e9f4;
  --sans:-apple-system,"PingFang SC","HarmonyOS Sans SC","Microsoft YaHei",system-ui,sans-serif;
}
*{margin:0;padding:0;box-sizing:border-box}
html,body{height:100%}
body{font-family:var(--sans);color:var(--text);
  background:#eef3fb url("../img/login-bg-light.jpg") center/cover no-repeat fixed}

.stage{position:relative;display:flex;justify-content:center;min-height:100vh;min-height:100dvh;overflow:hidden}

/* 网格底纹 */
.stage::before{content:"";position:absolute;inset:0;pointer-events:none;background:
  repeating-linear-gradient(0deg,rgba(46,108,223,.045) 0 1px,transparent 1px 48px),
  repeating-linear-gradient(90deg,rgba(46,108,223,.045) 0 1px,transparent 1px 48px)}

/* 水印大字 */
.wm{position:absolute;font-size:150px;font-weight:800;letter-spacing:.1em;color:rgba(46,108,223,.06);pointer-events:none;user-select:none;z-index:0}
.wm1{top:36px;left:44%}
.wm2{bottom:30px;right:6%;font-size:120px}

/* 底部同心圆环 */
.rings{position:absolute;left:-120px;bottom:-200px;width:460px;height:460px;border-radius:50%;border:1.5px solid rgba(46,108,223,.16);pointer-events:none}
.rings::before{content:"";position:absolute;inset:52px;border-radius:50%;border:1.5px solid rgba(46,108,223,.13)}
.rings::after{content:"";position:absolute;inset:112px;border-radius:50%;border:1.5px solid rgba(46,108,223,.1)}

/* ---------- 左侧 ---------- */
.hero{position:relative;z-index:1;flex:0 0 auto;width:640px;display:flex;flex-direction:column;justify-content:center;gap:38px;padding:6vh 0}
.brand-row{display:flex;align-items:center;gap:11px;flex-wrap:wrap}
.brand-name{font-size:18px;font-weight:700;color:#17233f;letter-spacing:.02em}
.hero-mid h1{font-size:clamp(26px,2.6vw,40px);font-weight:800;line-height:1.35;color:#141d33;letter-spacing:.01em}
.hero-mid h1 em{font-style:normal;white-space:nowrap;background:linear-gradient(92deg,#2e80ff 10%,#22c3e6 90%);-webkit-background-clip:text;background-clip:text;color:transparent}
.lead{margin-top:16px;font-size:14.5px;line-height:1.85;color:#5b6b8c;max-width:460px}

.fcards{margin-top:34px;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;width:100%}
.fcard{background:rgba(255,255,255,.9);border:1px solid rgba(255,255,255,.6);border-radius:12px;padding:18px 10px 14px;text-align:center;box-shadow:0 10px 28px rgba(31,58,120,.08);transition:.2s}
.fcard:hover{transform:translateY(-3px);box-shadow:0 14px 34px rgba(31,58,120,.14)}
.fcard svg{width:28px;height:28px;margin-bottom:9px}
.fcard b{display:block;font-size:13px;color:#243252;margin-bottom:5px}
.fcard span{display:block;font-size:11.5px;color:#8a94ab;line-height:1.5}

/* ---------- 右侧登录卡 ---------- */
/* ---------- 右侧登录卡 ---------- */
.auth{position:relative;z-index:1;flex:0 0 auto;display:flex;align-items:center;padding:5vh 0 5vh 3vw}
.auth-card{width:100%;max-width:404px;background:#fff;border-radius:16px;box-shadow:0 22px 64px rgba(31,58,120,.14);padding:38px 36px 28px}
.auth-card h2{font-size:22px;font-weight:700;color:#141d33}
.auth-sub{margin-top:10px;font-size:12.5px;color:var(--muted);line-height:1.7}

.alert{margin:16px 0 0;padding:10px 14px;border-radius:8px;font-size:13px}
.alert-err{background:#fdeeee;border:1px solid #f3cccc;color:#c05252}
.alert-ok{background:#eef7f0;border:1px solid #cbe6d3;color:#3f8a58}

.lform{margin-top:24px;display:grid;gap:15px}
.in-wrap{position:relative}
.in-wrap svg{position:absolute;left:13px;top:50%;transform:translateY(-50%);color:#a6afc4}
.fld input{width:100%;height:44px;padding:0 14px 0 36px;border-radius:8px;border:1px solid var(--line);background:#fff;color:#243252;font-size:14px;transition:.2s}
.fld input::placeholder{color:#b6bfd2}
.fld input:focus{outline:none;border-color:var(--brand);box-shadow:0 0 0 3px rgba(46,128,255,.13)}

.btn-go{margin-top:6px;height:46px;border:none;border-radius:8px;cursor:pointer;font-size:15px;letter-spacing:.3em;text-indent:.3em;color:#fff;font-weight:600;
  background:linear-gradient(92deg,#3b8bff,#2e6ff2);box-shadow:0 8px 20px rgba(46,128,255,.32);transition:.2s}
.btn-go:hover{filter:brightness(1.06);box-shadow:0 10px 26px rgba(46,128,255,.42)}

.demo{margin-top:22px;border-top:1px dashed #e6ebf5;padding-top:14px}
.demo-t{font-size:11.5px;letter-spacing:.14em;color:var(--muted);margin-bottom:10px}
.demo-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.demo-grid code{font-family:inherit;font-size:12px;color:#55617e;background:#f6f9fe;border:1px solid #eaeef7;border-radius:999px;padding:6px 13px;display:flex;align-items:center;justify-content:space-between;gap:8px;white-space:nowrap}
.demo-grid code b{color:var(--brand);font-weight:500;flex:0 0 auto}
@media (max-width:460px){.demo-grid{grid-template-columns:1fr}}

/* ---------- 中等宽度（1081–1360）：收紧留白防挤压 ---------- */
@media (max-width:1360px) and (min-width:1081px){
  .hero{width:560px;padding:5vh 0;gap:30px}
  .hero-mid h1{font-size:clamp(24px,2.3vw,34px)}
  .fcards{gap:10px}
  .fcard{padding:15px 8px 12px}
  .auth{padding:5vh 4vw}
  .auth-card{padding:34px 30px 26px}
  .wm{font-size:110px}
}

/* ---------- ≤1080：上下堆叠 ---------- */
@media (max-width:1080px){
  .stage{flex-direction:column}
  .hero{flex:auto;padding:48px 7vw 10px;max-width:none;margin:0;gap:26px}
  .fcards{max-width:none}
  .wm{display:none}
  .auth{padding:26px 6vw 56px}
}

/* ---------- 手机 ---------- */
@media (max-width:560px){
  .hero{padding:38px 6vw 6px}
  .hero-mid h1{font-size:25px}
  .fcards{grid-template-columns:repeat(2,1fr)}
  .auth{padding:20px 5vw 46px}
  .auth-card{padding:30px 22px 24px}
  .demo-grid code{font-size:11.5px;padding:5px 11px}
}
