/* ══════════════════════════════════════════════════════════
   登录页样式（独立文件，不影响应用内其他页面）

   设计稿：qiuzhi-zhushou/login.html
   两套布局，纯 CSS 切换：
     移动端 < 1024px  →  .lm  单列居中
     桌面端 ≥ 1024px  →  .ld  左侧深色品牌区 720px + 右侧表单

   令牌和应用内完全一致（--primary #3D6BFF 等），所以两边看起来是一套东西。
   ══════════════════════════════════════════════════════════ */

:root {
  --bg: #F6F7F9;
  --card: #FFFFFF;
  --ink: #171A20;
  --ink2: #333844;
  --sub: #5B6472;
  --muted: #6B7480;          /* 设计稿 #9AA3B0 对比度只有 2.4:1，压深到 4.6:1 */
  --faint: #8A94A3;
  --line: #E6E9EE;
  --primary: #3D6BFF;
  --primary-soft: #EEF2FF;
  --red: #E05B4C;
  --red-soft: #FDECEC;
  --red-txt: #B84036;
  --green: #22A06B;
  --green-soft: #E8F7F0;
  --green-txt: #1B7A4B;
  --radius: 16px;
  --font: "Noto Sans SC", "PingFang SC", -apple-system, BlinkMacSystemFont,
          "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

/* 桌面端布局默认隐藏 */
.ld { display: none; }

/* ══════════════ 移动端 ══════════════ */
.lm {
  display: flex; flex-direction: column; align-items: center;
  padding: 0 16px calc(24px + env(safe-area-inset-bottom));
  min-height: 100%; width: 100%;
}

.lm-brand {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 48px 0 20px;
}
.lm-logo {
  width: 56px; height: 56px; border-radius: 16px; background: var(--primary);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 16px -6px rgba(61,107,255,.5);
}
.lm-name { font-size: 20px; font-weight: 700; color: var(--ink); }

.lm-title { font-size: 28px; font-weight: 700; color: var(--ink); width: 100%; }
.lm-sub { font-size: 14px; color: var(--sub); width: 100%; padding: 6px 0 24px; }

/* 输入框 */
.lm-field {
  width: 100%; height: 52px; border-radius: 12px;
  background: #fff; border: 1px solid var(--line);
  display: flex; align-items: center; gap: 10px; padding: 0 16px;
  transition: border-color .15s, box-shadow .15s;
}
.lm-field:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(61,107,255,.12);
}
.lm-field input {
  flex: 1; min-width: 0; height: 100%;
  border: none; outline: none; background: transparent;
  font-family: var(--font); font-size: 15px; color: var(--ink);
}
.lm-field input::placeholder { color: var(--muted); }
.lm-field svg { flex: none; }

.lm-code-row {
  display: flex; gap: 12px; width: 100%; padding-top: 14px; align-items: center;
}
.lm-code-row .lm-field { flex: 1; min-width: 0; }

.lm-get {
  width: 108px; height: 52px; flex: none;
  border-radius: 12px; background: var(--primary-soft); color: var(--primary);
  font-weight: 600; font-size: 14px; border: none; cursor: pointer;
  font-family: var(--font);
  transition: background .15s, opacity .15s;
}
.lm-get:hover:not(:disabled) { background: #E3EAFE; }
.lm-get:disabled { opacity: .6; cursor: default; }

.lm-login {
  width: 100%; height: 52px; border-radius: 16px;
  background: var(--primary); color: #fff;
  font-size: 16px; font-weight: 600; border: none; cursor: pointer;
  margin-top: 16px; font-family: var(--font);
  box-shadow: 0 6px 16px -4px rgba(61,107,255,.3);
  transition: opacity .15s, transform .1s;
}
.lm-login:hover:not(:disabled) { opacity: .92; }
.lm-login:active:not(:disabled) { transform: translateY(1px); }
.lm-login:disabled { opacity: .6; cursor: default; }

/* 反馈消息（设计稿没有，但发验证码/登录失败必须有地方说） */
.lm-msg {
  width: 100%; margin-top: 12px; padding: 10px 14px;
  border-radius: 10px; font-size: 13px; line-height: 1.5;
}
.lm-msg.err { background: var(--red-soft); color: var(--red-txt); }
.lm-msg.ok { background: var(--green-soft); color: var(--green-txt); }
.lm-msg[hidden] { display: none; }

/* 说明行（替代设计稿的协议勾选：本项目没有用户协议/隐私政策页） */
.lm-agree {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--sub); padding: 16px 0; width: 100%;
  line-height: 1.5;
}
.lm-agree svg { flex: none; }

.lm-div {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px 0 16px;
}
.lm-div-l, .lm-div-r { flex: 1; height: 1px; background: #EEF0F3; }
.lm-div-t { font-size: 12px; color: var(--muted); }

.lm-wechat {
  width: 100%; height: 52px; border-radius: 16px;
  background: #fff; border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 15px; color: var(--ink2); font-family: var(--font);
  cursor: default; opacity: .55;
}
.lm-wechat .soon {
  font-size: 11px; color: var(--muted); border: 1px solid var(--line);
  border-radius: 6px; padding: 1px 5px; margin-left: 2px;
}

.lm-bottom {
  display: flex; justify-content: center; gap: 4px;
  padding-top: 24px; font-size: 14px; color: var(--sub); width: 100%;
}

/* ══════════════ 桌面端（≥1024px）══════════════ */
@media (min-width: 1024px) {
  .lm { display: none; }

  .ld {
    display: grid; grid-template-columns: 720px 1fr;
    width: 100%; min-height: 100vh; position: relative; overflow: hidden;
  }
  /* 右上角那团蓝色光晕，纯装饰 */
  .ld-deco {
    position: absolute; top: -120px; right: -100px;
    width: 520px; height: 520px; border-radius: 50%;
    background: var(--primary); opacity: .22; pointer-events: none;
  }

  .ld-left {
    background: #0E1116; padding: 0 60px;
    display: flex; flex-direction: column; justify-content: center;
    position: relative; overflow: hidden;
  }
  .ld-left > * { position: relative; z-index: 1; }
  .ld-left::after {                 /* 深色区右下角的微弱蓝光 */
    content: ''; position: absolute; bottom: -160px; left: -80px;
    width: 420px; height: 420px; border-radius: 50%;
    background: var(--primary); opacity: .12; pointer-events: none;
  }

  .ld-brand-row { display: flex; align-items: center; gap: 12px; margin-bottom: 56px; }
  .ld-logo {
    width: 64px; height: 64px; border-radius: 18px; background: var(--primary);
    display: flex; align-items: center; justify-content: center;
  }
  .ld-name { font-size: 24px; font-weight: 700; color: #fff; }

  .ld-slogan { margin-bottom: 16px; }
  .ld-slogan div { font-size: 44px; font-weight: 700; color: #fff; line-height: 1.15; }
  .ld-sub { font-size: 16px; color: var(--faint); margin-bottom: 64px; }

  .ld-vp { display: flex; flex-direction: column; gap: 14px; margin-bottom: 48px; }
  .ld-vp-item { display: flex; align-items: center; gap: 12px; font-size: 15px; color: #E8EDF5; }
  .vp-dot svg { display: block; }

  .ld-copy { font-size: 13px; color: #5C6572; }

  .ld-right {
    background: var(--bg); padding: 60px;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
  }
  .ld-form-inner { width: 100%; max-width: 480px; display: flex; flex-direction: column; }
  .ld-title { font-size: 32px; margin-bottom: 8px; }
  .ld-sub-r { padding-bottom: 32px !important; }
}
