:root {
  --page: #e9eff3;
  --panel: #ffffff;
  --ink: #18242d;
  --muted: #65737d;
  --line: #d6e0e5;
  --brand: #0f3d70;
  --brand-strong: #0b2c4e;
  --research: #112b36;
  --research-soft: #1b3b45;
  --green: #2c8a68;
  --gold: #d7aa53;
  --danger: #a93434;
  --focus: #1d63c6;
}

* { box-sizing: border-box; }

html { min-width: 320px; }

body {
  min-height: 100vh;
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: "Microsoft YaHei", "Noto Sans SC", "Segoe UI", Arial, sans-serif;
  letter-spacing: 0;
}

button,
input { font: inherit; }

.login-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
}

.login-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(360px, .84fr);
  width: min(100%, 1040px);
  min-height: 640px;
  overflow: hidden;
  border: 1px solid #cbd7dd;
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 24px 64px rgba(30, 49, 59, .16);
}

.research-panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 40px;
  background: var(--research);
  color: #f4f7f8;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .34);
  border-radius: 6px;
  background: #f5f8f9;
  color: var(--research);
  font-size: 15px;
  font-weight: 800;
}

.brand-lockup strong,
.brand-lockup span { display: block; }
.brand-lockup strong { font-size: 15px; }
.brand-lockup div > span { margin-top: 2px; color: #a9bbc2; font-size: 11px; }

.research-copy {
  max-width: 500px;
  margin-top: 72px;
}

.research-copy .eyebrow {
  margin: 0 0 14px;
  color: #8fd0ba;
  font-size: 12px;
  font-weight: 700;
}

.research-copy h1 {
  margin: 0;
  max-width: 480px;
  font-size: 32px;
  line-height: 1.35;
  letter-spacing: 0;
}

.research-copy > p:last-child {
  margin: 16px 0 0;
  max-width: 460px;
  color: #b9c8cd;
  font-size: 14px;
  line-height: 1.8;
}

.market-visual {
  position: relative;
  min-height: 190px;
  margin-top: 44px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 6px;
  background-color: var(--research-soft);
  background-image:
    linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px);
  background-size: 48px 40px;
}

.market-visual-head {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  color: #8da5ad;
  font-size: 10px;
}

.market-visual-head strong { color: #f1f5f6; font-size: 12px; }

.price-line {
  position: absolute;
  inset: 46px 18px 42px;
}

.price-line::before {
  content: "";
  position: absolute;
  inset: 0;
  clip-path: polygon(0 68%, 11% 56%, 22% 61%, 33% 38%, 44% 44%, 55% 29%, 66% 34%, 77% 19%, 88% 25%, 100% 10%, 100% 16%, 88% 31%, 77% 25%, 66% 40%, 55% 35%, 44% 50%, 33% 44%, 22% 67%, 11% 62%, 0 74%);
  background: #68c5a4;
}

.price-line i {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 6px;
  height: 6px;
  border: 2px solid #d4fff0;
  border-radius: 50%;
  background: var(--green);
  transform: translate(-50%, -50%);
}

.market-bars {
  position: absolute;
  inset: auto 18px 12px;
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  align-items: end;
  gap: 6px;
  height: 34px;
}

.market-bars span {
  height: var(--h);
  min-height: 4px;
  background: rgba(215, 170, 83, .6);
}

.trust-line {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 28px;
  color: #91a7ae;
  font-size: 11px;
}

.trust-line span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.trust-line b {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #69c6a5;
  box-shadow: 0 0 0 3px rgba(105, 198, 165, .12);
}

.form-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 48px;
}

.form-heading p {
  margin: 0 0 8px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 700;
}

.form-heading h2 {
  margin: 0;
  font-size: 26px;
  line-height: 1.35;
  letter-spacing: 0;
}

.form-heading > span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
}

#loginForm { margin-top: 32px; }

.field {
  display: block;
  margin-top: 20px;
}

.field > span:first-child {
  display: block;
  margin-bottom: 8px;
  color: #34434d;
  font-size: 13px;
  font-weight: 700;
}

.field input {
  width: 100%;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 5px;
  outline: 0;
  background: #fbfcfd;
  color: var(--ink);
  padding: 0 13px;
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.field input:hover { border-color: #b8c8d0; }

.field input:focus {
  border-color: var(--focus);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(29, 99, 198, .12);
}

.password-control {
  position: relative;
  display: block;
}

.password-control input { padding-right: 62px; }

.password-control button {
  position: absolute;
  right: 7px;
  top: 7px;
  min-width: 46px;
  height: 32px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--brand);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

.password-control button:hover,
.password-control button:focus-visible {
  outline: 2px solid rgba(29, 99, 198, .25);
  outline-offset: 0;
  background: #eef4fb;
}

.remember-option {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  margin-top: 20px;
  cursor: pointer;
}

.remember-option input {
  width: 17px;
  height: 17px;
  margin: 2px 0 0;
  accent-color: var(--brand);
}

.remember-option strong,
.remember-option small { display: block; }
.remember-option strong { color: #31404a; font-size: 13px; }
.remember-option small { margin-top: 3px; color: var(--muted); font-size: 11px; line-height: 1.5; }

.form-message {
  min-height: 20px;
  margin: 16px 0 0;
  color: var(--danger);
  font-size: 12px;
  line-height: 1.5;
}

.submit-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--brand);
  border-radius: 5px;
  background: var(--brand);
  color: #fff;
  padding: 0 16px;
  cursor: pointer;
  font-weight: 700;
  transition: background .16s ease, border-color .16s ease, transform .16s ease;
}

.submit-button:hover { border-color: var(--brand-strong); background: var(--brand-strong); }
.submit-button:active { transform: translateY(1px); }
.submit-button:focus-visible { outline: 3px solid rgba(29, 99, 198, .24); outline-offset: 3px; }
.submit-button:disabled { cursor: wait; opacity: .72; }

.privacy-note {
  margin: 24px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}

@media (max-width: 820px) {
  .login-page { place-items: start center; padding: 16px; }
  .login-shell { grid-template-columns: 1fr; min-height: 0; }
  .research-panel { min-height: 260px; padding: 28px; }
  .research-copy { margin-top: 34px; }
  .research-copy h1 { font-size: 25px; }
  .research-copy > p:last-child { margin-top: 10px; }
  .market-visual { display: none; }
  .trust-line { margin-top: 32px; }
  .form-panel { padding: 34px 28px 38px; }
}

@media (max-width: 420px) {
  .login-page { padding: 0; }
  .login-shell { min-height: 100vh; border: 0; border-radius: 0; box-shadow: none; }
  .research-panel { min-height: 226px; padding: 24px 20px; }
  .research-copy { margin-top: 28px; }
  .research-copy h1 { font-size: 22px; }
  .research-copy > p:last-child { display: none; }
  .trust-line { gap: 6px; margin-top: 26px; padding-top: 18px; }
  .form-panel { justify-content: flex-start; padding: 30px 20px 36px; }
  .form-heading h2 { font-size: 23px; }
  #loginForm { margin-top: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
