@charset "utf-8";
/* ==========================================================================
   优益优 · 统一登录视觉系统
   桌面端与移动端共用同一套色彩、字体、控件与视觉元素，仅布局容器不同。
   本文件在 app.css / mobile.css 之后引入，独立接管登录页，不污染后台样式。
   ========================================================================== */

.auth-page{
  --brand:#0061c0;          /* logo 蓝 */
  --brand-light:#2b86e8;
  --brand-deep:#062a5a;     /* 稳重深蓝 */
  --ink:#0a1f3c;
  --ink-2:#1b2a41;
  --muted:#5a6b85;
  --line:#e2e9f4;
  --gold:#ffd000;           /* logo 黄，仅作点缀 */
  --danger:#b42318;
  --danger-bg:#fef3f2;
  --radius:16px;
  --field-h:46px;

  min-height:100vh;min-height:100dvh;margin:0;padding:0;
  font:14px/1.6 "PingFang SC","Microsoft YaHei","HarmonyOS Sans SC","Segoe UI",Tahoma,sans-serif;
  color:var(--ink);background:#061c3a;
  overflow-x:hidden;overflow-y:auto;
  -webkit-font-smoothing:antialiased;
  -webkit-tap-highlight-color:transparent;
}
.auth-page *{box-sizing:border-box}

/* ---------- 背景：深蓝渐变 + 细网格 + 柔光 + 可选壁纸质感 ---------- */
.auth-bg{position:fixed;inset:0;z-index:0;pointer-events:none;overflow:hidden;
  background:linear-gradient(128deg,#041631 0%,#072a58 48%,#0a3f7d 100%)}
.auth-bg::before{content:"";position:absolute;inset:0;
  background-image:linear-gradient(rgba(255,255,255,.045) 1px,transparent 1px),
                   linear-gradient(90deg,rgba(255,255,255,.045) 1px,transparent 1px);
  background-size:44px 44px;
  -webkit-mask-image:radial-gradient(ellipse at 50% 45%,#000 20%,transparent 82%);
  mask-image:radial-gradient(ellipse at 50% 45%,#000 20%,transparent 82%)}
.auth-bg__photo{position:absolute;inset:0;background-image:var(--auth-photo);
  background-size:cover;background-position:center;opacity:.14;filter:saturate(.65);
  mix-blend-mode:screen}
.auth-bg__glow{position:absolute;border-radius:50%;filter:blur(2px)}
.auth-bg__glow--a{width:620px;height:620px;left:-180px;top:-220px;
  background:radial-gradient(circle,rgba(0,120,230,.34),transparent 66%)}
.auth-bg__glow--b{width:560px;height:560px;right:-160px;bottom:-240px;
  background:radial-gradient(circle,rgba(0,170,220,.22),transparent 66%)}

/* ---------- 外壳 ---------- */
.auth-shell{position:relative;z-index:1;min-height:100vh;min-height:100dvh;
  display:flex;align-items:center;justify-content:center;padding:48px 32px}
.auth-frame{width:min(1060px,100%);min-height:600px;display:grid;
  grid-template-columns:1.06fr .94fr;border-radius:20px;overflow:hidden;
  background:#fff;border:1px solid rgba(255,255,255,.16);
  box-shadow:0 34px 90px rgba(2,14,36,.62),0 2px 8px rgba(2,14,36,.3)}

/* ---------- 品牌展示区 ---------- */
.auth-brand{position:relative;display:flex;flex-direction:column;justify-content:space-between;
  padding:44px 48px 34px;color:#fff;overflow:hidden;
  background:linear-gradient(155deg,#0a356d 0%,#072c5c 52%,#05214a 100%)}
.auth-brand::before{content:"";position:absolute;inset:0;pointer-events:none;
  background-image:linear-gradient(rgba(255,255,255,.05) 1px,transparent 1px),
                   linear-gradient(90deg,rgba(255,255,255,.05) 1px,transparent 1px);
  background-size:38px 38px;
  -webkit-mask-image:linear-gradient(120deg,#000,transparent 78%);
  mask-image:linear-gradient(120deg,#000,transparent 78%)}
.auth-brand::after{content:"";position:absolute;width:520px;height:520px;right:-260px;top:-180px;
  border:1px solid rgba(255,255,255,.10);border-radius:50%;box-shadow:0 0 0 62px rgba(255,255,255,.025),
  0 0 0 124px rgba(255,255,255,.018);pointer-events:none}
.auth-brand>*{position:relative;z-index:1}

/* Logo 徽章：醒目、白底承载透明 PNG，独立于表单不干扰输入 */
.auth-logo{display:inline-flex;align-items:center;justify-content:center;
  width:236px;padding:14px 18px;border-radius:12px;background:#fff;
  box-shadow:0 10px 26px rgba(0,12,36,.28),0 0 0 1px rgba(255,255,255,.5) inset}
.auth-logo img{display:block;width:100%;height:auto}
/* 品牌区不再出现系统名与副标题：仅 logo → 金线 → 能力点 → 机构脚注 */
.auth-brand__body{padding:0}
.auth-rule{width:44px;height:3px;border-radius:2px;background:var(--gold);margin:0 0 26px}
.auth-feats{list-style:none;margin:0;padding:0;display:grid;gap:0;max-width:380px}
.auth-feats li{display:flex;align-items:flex-start;gap:13px;padding:13px 0;
  border-top:1px solid rgba(255,255,255,.11)}
.auth-feats li:last-child{border-bottom:1px solid rgba(255,255,255,.11)}
.auth-feats i{width:30px;height:30px;flex:0 0 30px;display:flex;align-items:center;justify-content:center;
  border:1px solid rgba(255,255,255,.2);border-radius:7px;font-size:13px;color:var(--gold);margin-top:1px}
.auth-feats b{display:block;font-size:13.5px;font-weight:600;color:#fff;letter-spacing:.3px}
.auth-feats span{display:block;font-size:12.5px;color:rgba(255,255,255,.82);margin-top:3px}
.auth-brand__foot{font-size:11.5px;color:rgba(255,255,255,.45);letter-spacing:.3px}
.auth-brand__foot .dot{margin:0 8px;color:var(--gold)}

/* ---------- 登录区 ---------- */
.auth-formside{display:flex;flex-direction:column;justify-content:center;
  padding:40px 46px 26px;background:#fff}
.auth-card{position:relative;width:100%;max-width:376px;margin:0 auto}
/* 卡片顶部的品牌色短横：两端都用文档流内的元素，避免绝对定位被外壳裁切 */
.auth-card__bar{width:40px;height:3px;border-radius:2px;margin-bottom:20px;
  background:linear-gradient(90deg,var(--brand),var(--brand-light))}
.auth-card__head{margin-bottom:24px}
.auth-card__eyebrow{margin:0 0 8px;font-size:10px;letter-spacing:2.4px;font-weight:600;color:#8fa4c2}
.auth-card h2{margin:0;font-size:26px;line-height:1.4;font-weight:600;letter-spacing:.6px;color:var(--ink)}

/* ---------- 错误反馈（服务端校验，保持原有文案） ---------- */
.auth-alert{display:flex;align-items:flex-start;gap:9px;margin-bottom:18px;padding:11px 13px;
  border:1px solid #f5c9c4;border-left:3px solid var(--danger);border-radius:8px;
  background:var(--danger-bg);color:var(--danger);font-size:13px;line-height:1.55}
.auth-alert i{font-size:15px;margin-top:2px}
.auth-alert.is-fading{opacity:.45;transition:opacity .25s}

/* ---------- 表单控件：两端完全统一 ---------- */
.auth-form{margin:0}
.auth-field{margin-bottom:18px}
.auth-field>label{display:block;margin-bottom:7px;font-size:13px;font-weight:600;color:#33445f}
.auth-field__box{position:relative}
.auth-field__box>i.fa{position:absolute;left:14px;top:50%;transform:translateY(-50%);
  font-size:15px;color:#9aa9bf;pointer-events:none;z-index:1}
.auth-field .ipt{width:100%;height:var(--field-h);padding:0 42px 0 40px;
  border:1px solid var(--line);border-radius:8px;background:#fbfcfe;
  font:14px/1.4 "PingFang SC","Microsoft YaHei","Segoe UI",sans-serif;color:var(--ink);
  outline:none;transition:border-color .18s,box-shadow .18s,background .18s;max-width:none}
.auth-field .ipt::placeholder{color:#a6b2c4;font-size:13px}
.auth-field .ipt:hover{border-color:#c3d2e8}
.auth-field .ipt:focus{border-color:var(--brand);background:#fff;
  box-shadow:0 0 0 3px rgba(0,97,192,.12)}
.auth-field .ipt:focus~i.fa,.auth-field__box:focus-within>i.fa{color:var(--brand)}
.auth-eye{position:absolute;right:6px;top:50%;transform:translateY(-50%);
  width:34px;height:34px;display:flex;align-items:center;justify-content:center;
  border:0;border-radius:6px;background:transparent;color:#9aa9bf;cursor:pointer;font-size:15px}
.auth-eye:hover{color:var(--brand);background:#eef4fd}
.auth-eye:focus-visible{outline:2px solid var(--brand);outline-offset:-2px}

.auth-actions{margin-top:24px}
/* 选择器带 .auth-page .btn 前缀：压过 app.css 里 .btn.primary 的旧深蓝纯色，
   否则两端按钮会退回后台控件的配色，渐变与品牌蓝都不生效 */
.auth-page .btn.auth-btn{width:100%;height:var(--field-h);display:flex;align-items:center;justify-content:center;gap:10px;
  padding:0;border:0;border-radius:8px;background:linear-gradient(96deg,#0061c0,#0b76d8);color:#fff;
  font:600 15px/1 "PingFang SC","Microsoft YaHei","Segoe UI",sans-serif;letter-spacing:3px;
  cursor:pointer;box-shadow:0 8px 18px rgba(0,97,192,.24);
  transition:transform .15s,box-shadow .15s,filter .15s}
.auth-page .btn.auth-btn i{font-size:13px;letter-spacing:0;opacity:.85}
.auth-page .btn.auth-btn:hover{filter:brightness(1.06);box-shadow:0 10px 24px rgba(0,97,192,.32);
  transform:translateY(-1px);background:linear-gradient(96deg,#0061c0,#0b76d8);color:#fff;border-color:transparent}
.auth-page .btn.auth-btn:active{transform:translateY(0);box-shadow:0 4px 12px rgba(0,97,192,.24)}
.auth-page .btn.auth-btn[disabled]{opacity:.72;cursor:wait;transform:none;box-shadow:none}
.auth-page .btn.auth-btn:focus-visible{outline:2px solid var(--brand-deep);outline-offset:3px}

/* ---------- 提示信息层 ---------- */
.auth-note{margin-top:26px;padding:15px 16px;border:1px solid #e9eef7;border-radius:9px;background:#f7faff}
.auth-note__title{display:flex;align-items:center;gap:7px;margin:0 0 9px;
  font-size:12px;font-weight:600;color:#3a5273;letter-spacing:.4px}
.auth-note__title i{color:var(--brand);font-size:13px}
.auth-note ul{list-style:none;margin:0;padding:0;display:grid;gap:6px}
.auth-note li{position:relative;padding-left:13px;font-size:12px;line-height:1.65;color:#6b7c95}
.auth-note li::before{content:"";position:absolute;left:1px;top:8px;width:4px;height:4px;
  border-radius:50%;background:#a9bcd6}

/* ---------- 页脚 ---------- */
.auth-foot{margin:26px 0 0;text-align:center;font-size:11.5px;color:#9aa7ba;line-height:1.9}
.auth-foot a{color:#5b7fae;text-decoration:none;border-bottom:1px solid #c8d7ea;padding-bottom:1px}
.auth-foot a:hover{color:var(--brand);border-color:var(--brand)}

/* ==========================================================================
   桌面窄窗 / 平板：分栏收成上下结构，品牌区压缩为横条
   ========================================================================== */
@media(max-width:960px){
  .auth-shell{padding:28px 18px}
  .auth-frame{grid-template-columns:1fr;min-height:0;max-width:520px;border-radius:16px}
  .auth-brand{padding:26px 28px 22px}
  .auth-brand__body{padding:14px 0 0}
  .auth-rule{margin:0}
  .auth-feats{display:none}
  .auth-brand__foot{display:none}
  .auth-logo{width:180px;padding:10px 14px}
  .auth-formside{padding:32px 28px 24px}
}
@media(max-width:420px){
  .auth-shell{padding:16px 12px}
  .auth-brand{padding:22px 20px 18px}
  .auth-formside{padding:28px 20px 20px}
}

/* ==========================================================================
   移动端：纵向紧凑，组件与桌面共用，仅调整尺度与间距
   ========================================================================== */
.auth-page--mobile{background:#061c3a}
.auth-page--mobile .auth-shell{display:block;min-height:100vh;min-height:100dvh;
  padding:calc(30px + env(safe-area-inset-top)) 18px calc(20px + env(safe-area-inset-bottom))}
.auth-mwrap{width:100%;max-width:400px;margin:0 auto}
.auth-mbrand{text-align:center;color:#fff;margin-bottom:24px}
.auth-logo--sm{width:182px;padding:11px 14px;border-radius:10px;
  box-shadow:0 8px 22px rgba(0,10,30,.35)}
.auth-mbrand .auth-rule{width:34px;height:3px;margin:16px auto 0;border-radius:2px}

.auth-card--m{max-width:none;padding:24px 20px 20px;border-radius:16px;
  background:#fff;box-shadow:0 18px 44px rgba(1,12,34,.45)}
.auth-card--m .auth-card__bar{width:40px;margin-bottom:18px}
.auth-card--m .auth-card__head{margin-bottom:20px}
.auth-card--m h2{font-size:22px}
.auth-page--mobile{--field-h:48px}
.auth-page--mobile .auth-field{margin-bottom:16px}
.auth-page--mobile .auth-field .ipt{font-size:16px}  /* iOS 聚焦不自动放大 */
.auth-page--mobile .auth-actions{margin-top:22px}
.auth-page--mobile .btn.auth-btn{font-size:16px}
.auth-page--mobile .auth-note{margin-top:20px;padding:13px 14px}
.auth-page--mobile .auth-note li{font-size:11.5px}
.auth-mfoot{margin:22px 0 0;text-align:center;color:rgba(255,255,255,.62);
  font-size:11.5px;line-height:2}
.auth-mfoot a{color:#fff;text-decoration:none;border-bottom:1px solid rgba(255,255,255,.45);padding-bottom:1px}
.auth-mfoot .sep{margin:0 6px;color:var(--gold)}

/* 矮屏（如 iPhone SE）收紧纵向留白，保证一屏内可读 */
@media(max-height:700px){
  .auth-page--mobile .auth-shell{padding-top:calc(16px + env(safe-area-inset-top))}
  .auth-mbrand{margin-bottom:16px}
  .auth-logo--sm{width:150px}
  .auth-mbrand .auth-rule{margin-top:10px}
  .auth-card--m{padding:20px 18px 16px}
}

/* 减少动效偏好 */
@media(prefers-reduced-motion:reduce){
  .auth-page *{transition:none!important;animation:none!important}
}
