/* ==========================================================================
 * 24 登录页（来源：docs/design-handoff/screens/24-登录页.png）
 * --------------------------------------------------------------------------
 * 下面每个数字都是在 PNG 上量出来的，不是照规范表抄的。PNG 是 780×1688 = 2x，
 * 所以除 2 得 css 像素；坐标用的是 390 宽的基准机。
 *
 *   整屏底色      linear-gradient(117deg, ...) —— 见 mobile-kit.css 的 --m-grad-login
 *   品牌 logo 方块  x 157.5~232.5（宽 76）   y 74~150（高 76）  圆角 ~24
 *     内含白色图形   40 × 32；描边 #0557C9，右上角星芒 #0091FF
 *   应用名         墨迹 180~205.5，字宽 27/字 → 27px，白
 *   英文名         墨迹 220.5~227.5，x 137~251（21 字符 → 10px），rgba(255,255,255,.68)
 *   标语           墨迹 257~267.5，x 74~317（243 宽 → 13px）
 *   登录卡         22~368（宽 346） 293~647（高 354） 圆角 26，纯白无投影
 *   输入框         44~346（宽 302） 高 52 圆角 14 底 #F1F4F7
 *                  账号框 379.75~431.75，密码框 445.75~497.75（框间距 14）
 *                  内部：左内边距 13 → 人像图标 18px（#8595A4）→ 间距 10 → 文字 85 起
 *   主按钮         44~346，543.5~595（高 52）圆角 24
 *                  在 x=130 / x=250 采样反解得到 #0070EA / #0082F6，正是
 *                  linear-gradient(90deg, #0064E0, #0091FF)，与规范一致
 *   勾选行         记住密码方框 17×17（y 513~529），文字 13px #5D6C7B
 *                  忘记密码? 13px #0064E0，右对齐到 346
 *   协议行         方框 15×15（y 609~623），文字 11px：正文 #8595A4、链接 #0064E0
 *   卡片下方       立即注册 672~681.5 / 其他登录方式 700.5~709.5 /
 *                  微信圆钮 724~771.5（直径 48，白底 + #07C160 图标）/ 页脚 807~815.5
 * ========================================================================== */

body.mobile .ml-page{
  position:fixed; inset:0; z-index:5;
  overflow-y:auto; overscroll-behavior:contain;
  display:flex; flex-direction:column; align-items:center;
  /* 74 = 状态栏 62 + 12，和 m-home 的头部同一套算法 */
  padding:calc(max(var(--m-status-h), var(--m-safe-top)) + 12px) 22px calc(24px + var(--m-safe-bottom));
  background:var(--m-grad-login);
  color:#fff;
  font-family:var(--m-ff);
  -webkit-font-smoothing:antialiased;
}

/* ---------------- 品牌区 ---------------- */
body.mobile .ml-logo{
  flex:none; width:76px; height:76px; border-radius:24px; background:#fff;
  display:flex; align-items:center; justify-content:center;
}
body.mobile .ml-logo svg{display:block}

body.mobile .ml-name{
  margin:26px 0 0; font-size:27px; font-weight:700; line-height:34px;
  letter-spacing:0; text-align:center; color:#fff;
}
body.mobile .ml-en{
  margin-top:7px; font-size:10px; font-weight:500; line-height:15px;
  letter-spacing:0; color:rgba(255,255,255,.68);
}
body.mobile .ml-slogan{
  margin-top:21px; font-size:13px; line-height:20px; text-align:center;
  color:rgba(255,255,255,.85);
}

/* ---------------- 登录卡 ---------------- */
body.mobile .ml-card{
  flex:none; width:100%; margin-top:21px;
  padding:24px 22px 22px;
  border-radius:26px; background:#fff;
  color:var(--m-t1);
  box-sizing:border-box;
}
body.mobile .ml-card h2{
  margin:0; font-size:20px; font-weight:600; line-height:26px; color:var(--m-t1);
}
body.mobile .ml-tip{
  margin:6px 0 0; font-size:12px; line-height:18px; color:var(--m-t4);
}

body.mobile .ml-field{
  display:flex; align-items:center; height:52px; margin-top:12px;
  padding:0 13px; border-radius:14px; background:#F1F4F7;
  transition:box-shadow .16s;
}
body.mobile .ml-field + .ml-field{margin-top:14px}
body.mobile .ml-field:focus-within{box-shadow:inset 0 0 0 1.5px var(--m-brand)}
body.mobile .ml-field > .mk-ic{color:var(--m-t4)}
body.mobile .ml-field input{
  flex:1 1 auto; min-width:0; height:100%; margin:0 0 0 10px;
  border:0; outline:0; background:none;
  font-family:inherit; font-size:13.5px; color:var(--m-t1);
}
body.mobile .ml-field input::placeholder{color:#BCC0C4}
body.mobile .ml-eye{
  flex:none; display:flex; align-items:center; justify-content:center;
  width:26px; height:36px; margin-right:-4px; padding:0; border:0;
  background:none; color:var(--m-t4); cursor:pointer;
}
body.mobile .ml-eye:active{opacity:.6}

body.mobile .ml-row{
  display:flex; align-items:center; justify-content:space-between;
  height:18px; margin-top:14px;
}
body.mobile .ml-check{
  display:flex; align-items:center; gap:11px;
  font-size:13px; line-height:18px; color:var(--m-t2); cursor:pointer;
}
body.mobile .ml-forgot{
  border:0; padding:0; background:none; cursor:pointer;
  font-family:inherit; font-size:13px; font-weight:500; line-height:18px;
  color:var(--m-brand);
}
body.mobile .ml-forgot:active{opacity:.6}

/* 勾选框：设计稿是实心品牌蓝 + 白勾，未勾选态设计稿没有，用浅描边兜底 */
body.mobile .ml-check input, body.mobile .ml-agree input{
  appearance:none; -webkit-appearance:none; flex:none;
  margin:0; padding:0; border:0; cursor:pointer; position:relative;
  background:var(--m-brand); transition:background .16s, box-shadow .16s;
}
body.mobile .ml-check input{width:17px; height:17px; border-radius:5px}
body.mobile .ml-agree input{width:15px; height:15px; border-radius:4px}
body.mobile .ml-check input:not(:checked), body.mobile .ml-agree input:not(:checked){
  background:#fff; box-shadow:inset 0 0 0 1.5px #BCC0C4;
}
body.mobile .ml-check input::after, body.mobile .ml-agree input::after{
  content:''; position:absolute; border:solid #fff; border-width:0 2px 2px 0;
  transform-origin:center;
}
body.mobile .ml-check input::after{
  left:5.5px; top:2px; width:4px; height:8.5px; transform:rotate(40deg);
}
body.mobile .ml-agree input::after{
  left:4.5px; top:1.5px; width:3.5px; height:7.5px; transform:rotate(40deg);
}
body.mobile .ml-check input:not(:checked)::after,
body.mobile .ml-agree input:not(:checked)::after{display:none}

body.mobile .ml-btn{
  display:block; width:100%; height:52px; margin-top:14px;
  border:0; border-radius:24px; cursor:pointer;
  background:var(--m-grad-btn); box-shadow:var(--m-sh-btn);
  color:#fff; font-family:inherit; font-size:15px; font-weight:600;
  letter-spacing:2px; text-indent:2px;
}
body.mobile .ml-btn:active{transform:scale(.99); filter:brightness(.96)}
body.mobile .ml-btn[disabled]{opacity:.7; pointer-events:none}

body.mobile .ml-agree{
  display:flex; align-items:center; flex-wrap:wrap;
  margin-top:12px; font-size:11px; line-height:16px; color:var(--m-t4);
}
body.mobile .ml-agree > span:first-of-type{margin-left:9px}
body.mobile .ml-agree > a{color:var(--m-brand); text-decoration:none; cursor:pointer}
body.mobile .ml-agree > a + span, body.mobile .ml-agree > span + a{margin:0 1px}

/* ---------------- 卡片下方 ---------------- */
body.mobile .ml-reg{
  flex:none; margin-top:20px; font-size:12px; line-height:19px;
  color:rgba(255,255,255,.72);
}
body.mobile .ml-reg b{
  margin-left:6px; font-weight:600; color:#fff; cursor:pointer;
}
body.mobile .ml-reg b:active{opacity:.7}

body.mobile .ml-other{
  flex:none; margin-top:10px; font-size:12px; line-height:19px;
  color:rgba(255,255,255,.6);
}
body.mobile .ml-wx{
  flex:none; display:flex; align-items:center; justify-content:center;
  width:48px; height:48px; margin-top:9px;
  border:0; border-radius:50%; background:#fff; cursor:pointer;
  box-shadow:0 8px 20px -8px rgba(3,22,60,.45);
}
body.mobile .ml-wx:active{transform:scale(.96)}
body.mobile .ml-wx svg{display:block}

body.mobile .ml-foot{
  flex:none; margin-top:31px; font-size:11px; line-height:17px;
  color:rgba(255,255,255,.5);
}
