/* 登录页 · 落地页平台自研设计（湖蓝 / 石墨 / 晨光） */
:root {
  --ldy-blue: #1f6feb;
  --ldy-blue-deep: #1857c9;
  --ldy-ink: #1c2433;
  --ldy-muted: #667085;
  --ldy-line: #dfe4ec;
  --ldy-bg: #eef1f6;
  --ldy-graphite: #10141b;
  font-family: "Segoe UI Variable Text", "Segoe UI", -apple-system, "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0 }
html, body { height: 100% }
body {
  background: var(--ldy-bg);
  color: var(--ldy-ink);
  -webkit-font-smoothing: antialiased;
  display: grid;
  place-items: center;
  min-height: 100vh;
}

.shell {
  width: min(1060px, calc(100% - 32px));
  min-height: min(660px, calc(100vh - 32px));
  display: grid;
  grid-template-columns: 1.08fr 1fr;
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 24px 80px #10141b26;
}

/* —— 左侧品牌区 —— */
.story {
  position: relative;
  background:
    radial-gradient(1200px 500px at -10% -20%, #1d3a6e 0%, transparent 55%),
    radial-gradient(700px 400px at 110% 120%, #14304f 0%, transparent 60%),
    var(--ldy-graphite);
  color: #eef3fb;
  padding: 52px 54px 40px;
  display: flex;
  flex-direction: column;
  gap: 26px;
  overflow: hidden;
}
.story::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(#ffffff08 1px, transparent 1px),
    linear-gradient(90deg, #ffffff08 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(720px 520px at 20% 15%, #000 0%, transparent 75%);
  pointer-events: none;
}
.brand {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}
.brand i {
  font-style: normal;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: linear-gradient(135deg, #1f6feb, #1857c9);
  font-weight: 700;
  font-size: 19px;
  box-shadow: 0 8px 18px #1f6feb4d;
}
.brand b { font-size: 15px; display: block; letter-spacing: .5px }
.brand small { display: block; font-size: 11px; color: #8fa0bb; margin-top: 3px }
.story-lead { position: relative; margin: auto 0 }
.story .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2.5px;
  color: #8fb8f9;
  border: 1px solid #2b3d5c;
  border-radius: 999px;
  padding: 6px 13px;
  background: #16202f66;
}
.story-lead h1 {
  margin: 22px 0 16px;
  font-size: clamp(26px, 3.2vw, 34px);
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: .3px;
}
.story-lead h1 em { font-style: normal; color: #7fb0ff }
.story-lead p { color: #9fb0c9; font-size: 14px; line-height: 2; max-width: 40ch }
.story-signals { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px }
.story-signals span {
  font-size: 10px;
  letter-spacing: 1.6px;
  color: #7f92af;
  border: 1px solid #263349;
  border-radius: 7px;
  padding: 6px 10px;
  background: #131a26;
}
.story-foot {
  position: relative;
  color: #6c7d97;
  font-size: 10px;
  letter-spacing: 1.8px;
}

/* —— 右侧表单区 —— */
.login-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 52px 58px 36px;
  background: #fff;
}
.mobile-brand { display: none }
.form-wrap { width: min(360px, 100%); margin: 0 auto }
.form-wrap .chip {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--ldy-blue);
  background: #edf4ff;
  border-radius: 999px;
  padding: 6px 12px;
}
.form-wrap h2 { font-size: 26px; margin: 16px 0 8px; letter-spacing: .3px }
.form-wrap > p { color: var(--ldy-muted); font-size: 13px; margin-bottom: 28px }

#loginForm { display: flex; flex-direction: column; gap: 18px }
#loginForm label { display: flex; flex-direction: column; gap: 8px; font-size: 13px; font-weight: 600; color: #3a465a }
#loginForm input {
  height: 46px;
  border: 1px solid var(--ldy-line);
  border-radius: 9px;
  padding: 0 13px;
  font-size: 14px;
  color: var(--ldy-ink);
  background: #fbfcfe;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
#loginForm input:focus { border-color: var(--ldy-blue); box-shadow: 0 0 0 3px #1f6feb22; background: #fff }
.password { position: relative }
.password input { width: 100% }
#togglePassword {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  height: 34px;
  border: 0;
  background: none;
  color: var(--ldy-blue);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  padding: 0 10px;
  border-radius: 7px;
}
#togglePassword:hover { background: #edf4ff }

.submit {
  height: 48px;
  margin-top: 6px;
  border: 0;
  border-radius: 9px;
  background: linear-gradient(135deg, #1f6feb, #1857c9);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 10px 22px #1f6feb38;
  transition: transform .15s, box-shadow .15s, filter .15s;
}
.submit:hover:not(:disabled) { filter: brightness(1.06); box-shadow: 0 12px 26px #1f6feb47 }
.submit:active:not(:disabled) { transform: translateY(1px) }
.submit:disabled { opacity: .65; cursor: wait }
.submit span { font-size: 15px }

#message { min-height: 18px; font-size: 12px; color: #d92d3f; line-height: 1.7 }

.help {
  margin-top: 26px;
  border: 1px solid var(--ldy-line);
  border-radius: 10px;
  background: #f8fafc;
  padding: 14px 16px;
  font-size: 12px;
  line-height: 1.9;
  color: var(--ldy-muted);
}
.help b { color: #3a465a; display: block; margin-bottom: 3px }

.back {
  margin-top: 22px;
  text-align: center;
  color: var(--ldy-muted);
  font-size: 12px;
  text-decoration: none;
}
.back:hover { color: var(--ldy-blue) }

@media (max-width: 880px) {
  .shell { grid-template-columns: 1fr; min-height: auto }
  .story { padding: 34px 30px 26px; gap: 18px }
  .story-lead { margin: 8px 0 }
  .story-signals { display: none }
  .story-foot { display: none }
  .mobile-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 4px }
  .mobile-brand i {
    font-style: normal;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: linear-gradient(135deg, #1f6feb, #1857c9);
    color: #fff;
    font-weight: 700;
  }
  .mobile-brand b { font-size: 13px }
  .mobile-brand small { display: block; font-size: 10px; color: #8fa0bb }
  .login-card { padding: 30px 24px }
}
@media (prefers-reduced-motion: reduce) {
  .submit { transition: none }
}
