/* 登录页样式：与现有《随车资料包测试v1.1.html》保持一致（藏青 + 明黄，宋体标题） */
:root {
  --ink: #131b24;
  --ink2: #39434f;
  --muted: #6e7885;
  --blue: #1d4b73;
  --navy: #14375e;
  --yellow: #f5c93f;
  --serif: "Songti SC", "STSong", "Noto Serif SC", "Source Han Serif SC", serif;
  --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", "Menlo", "Consolas", monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  background: #eef2f6;
}

.login { min-height: 100svh; background: #eef2f6; padding: 22px 16px 34px; display: flex; flex-direction: column; }
.login-inner { width: 100%; max-width: 640px; margin: 0 auto; }
.brands { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 2px 4px 18px; }
.bm-word { font-family: var(--serif); font-weight: 700; font-size: 27px; letter-spacing: .1em; color: #14539b; line-height: 1; white-space: nowrap; }
.bm-word small { display: block; font-family: var(--mono); font-size: 9px; letter-spacing: .28em; color: #5e86c4; margin-top: 7px; font-weight: 400; }
.bm-block {
  background: var(--navy); color: #fff; width: 88px; height: 46px; flex: 0 0 88px;
  display: grid; place-content: center; text-align: center;
  font-family: var(--mono); font-weight: 700; font-size: 12px; letter-spacing: .18em; line-height: 1.5;
}
.card {
  background: #fff; border-top: 4px solid var(--yellow);
  box-shadow: 0 2px 14px rgba(20, 55, 94, .1);
  padding: 12px 20px 26px;
}
.card-bar { display: flex; justify-content: flex-end; }
.lang {
  background: none; border: 0; color: #5c7ea8; font-size: 12.5px;
  padding: 8px 2px; display: flex; align-items: center; gap: 5px; min-height: 36px;
  font-family: inherit; cursor: pointer;
}
.lang:hover { color: #14539b; }
.lang .car {
  width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent;
  border-top: 5px solid currentColor; display: inline-block; margin-top: 2px;
}
.card h1 {
  margin: 4px 0 22px; font-family: var(--sans); font-weight: 800;
  font-size: clamp(22px, 5.6vw, 32px); color: var(--navy); letter-spacing: -.01em; line-height: 1.25;
}
.fld { margin-bottom: 15px; }
.fld label { display: block; font-size: 13px; color: #4e5a66; margin-bottom: 6px; }
.fld input {
  width: 100%; height: 44px; border: 1px solid #c3cbd4; background: #fff;
  padding: 0 12px; font-size: 16px; color: var(--navy); border-radius: 2px;
  font-family: inherit;
}
.fld input::placeholder { color: #a9b2bb; }
.fld input:focus { outline: none; border-color: #1a6fd4; box-shadow: inset 0 0 0 1px #1a6fd4; background: #f6faff; }
.fld.bad input { border-color: #a93226; box-shadow: inset 0 0 0 1px #a93226; background: #fdf6f5; }
.pw { display: flex; }
.pw input { border-right: 0; }
.eye {
  flex: 0 0 46px; width: 46px; height: 44px; background: #fff; border: 1px solid #c3cbd4;
  color: #7b8794; display: grid; place-items: center; border-radius: 0 2px 2px 0; cursor: pointer;
}
.eye:hover { color: var(--navy); background: #f8fafc; }
.eye.on { color: #1a6fd4; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 2px 0 20px; }
.rem { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #4e5a66; min-height: 44px; cursor: pointer; }
.rem input { width: 16px; height: 16px; accent-color: #1a6fd4; }
.link {
  background: none; border: 0; color: #4a78c2; font-size: 13px;
  padding: 8px 0; min-height: 44px; font-family: inherit; cursor: pointer;
}
.link:hover { text-decoration: underline; }
.signin {
  width: 100%; height: 48px; background: var(--yellow); border: 1px solid #e4b92f; color: var(--navy);
  font-size: 15px; font-weight: 700; letter-spacing: .06em; border-radius: 2px;
  font-family: inherit; cursor: pointer;
}
.signin:hover { background: #f0be27; }
.signin:active { background: #e8b41f; }
.signin:disabled { opacity: .65; cursor: not-allowed; }
.login-foot { text-align: center; font-size: 11.5px; color: #94a0ac; margin-top: 18px; }

.msg {
  display: none; margin: 0 0 14px; padding: 9px 11px; border-radius: 2px;
  font-size: 13px; line-height: 1.5; border-left: 3px solid;
}
.msg.on { display: block; }
.msg-err { background: #f8ebe9; border-color: #a93226; color: #8c2a1f; }
.msg-warn { background: #f7f0e0; border-color: #a0731c; color: #7d5a15; }

@media (min-width: 768px) {
  .login { padding: 44px 24px 46px; }
  .brands { padding: 0 10px 26px; }
  .bm-word { font-size: 34px; }
  .card { padding: 16px 34px 34px; }
  .card h1 { margin-top: 6px; }
}
