:root {
  color-scheme: dark;
  font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  background: #070914;
  color: #f5f7ff;
}

* { box-sizing: border-box; }

body {
  min-height: 100vh;
  margin: 0;
  display: grid;
  grid-template-rows: 1fr auto;
  background:
    linear-gradient(rgba(77, 66, 140, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(77, 66, 140, 0.08) 1px, transparent 1px),
    #070914;
  background-size: 42px 42px;
}

.login-shell {
  width: min(1120px, calc(100% - 40px));
  min-height: 620px;
  margin: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(360px, 0.8fr);
  border: 1px solid #2b2d4b;
  background: #0c0e1b;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.46);
}

.identity-pane {
  position: relative;
  overflow: hidden;
  padding: 46px 52px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid #2b2d4b;
  background:
    linear-gradient(135deg, rgba(87, 68, 255, 0.2), transparent 52%),
    linear-gradient(315deg, rgba(245, 196, 81, 0.1), transparent 45%),
    #0b0d1a;
}

.identity-pane::after {
  content: "MARKET SIGNAL / EVENT RADAR / TRADE PLAN";
  position: absolute;
  right: -82px;
  bottom: 118px;
  transform: rotate(-90deg);
  color: rgba(78, 233, 255, 0.16);
  font: 700 12px/1 monospace;
}

.brand-line {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid #4ee9ff;
  color: #4ee9ff;
  font: 800 18px/1 monospace;
  box-shadow: inset 0 0 18px rgba(78, 233, 255, 0.12);
}

.brand-line div { display: grid; gap: 3px; }
.brand-line strong { font-size: 18px; }
.brand-line span:last-child { color: #8186a8; font: 11px/1.2 monospace; }

.identity-copy { max-width: 620px; }
.eyebrow { color: #f5c451; font: 700 12px/1.2 monospace; }
.identity-copy h1 {
  margin: 18px 0;
  font-size: clamp(38px, 5vw, 62px);
  line-height: 1.14;
  letter-spacing: 0;
}
.identity-copy p { max-width: 520px; margin: 0; color: #adb2d2; font-size: 16px; line-height: 1.8; }

.system-state {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 20px;
  border-top: 1px solid #292c4a;
  color: #9298bb;
  font-size: 12px;
}
.system-state span:first-child { color: #62f2c0; }
.system-state i {
  width: 7px;
  height: 7px;
  display: inline-block;
  margin-right: 8px;
  border-radius: 50%;
  background: #62f2c0;
  box-shadow: 0 0 12px #62f2c0;
}

.login-pane { display: grid; place-items: center; padding: 48px; background: #101221; }
.login-form { width: min(100%, 390px); }
.form-head { margin-bottom: 34px; }
.form-head > span { color: #9b83ff; font: 700 11px/1.2 monospace; }
.form-head h2 { margin: 10px 0 8px; font-size: 28px; letter-spacing: 0; }
.form-head p { margin: 0; color: #898eaf; font-size: 13px; line-height: 1.7; }

.login-form > label:not(.show-password) { display: grid; gap: 9px; margin-top: 20px; }
.login-form label > span { color: #b8bdd8; font-size: 13px; }
.login-form input[type="text"],
.login-form input:not([type]) ,
.login-form input[type="password"] {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid #343858;
  border-radius: 6px;
  outline: none;
  background: #0a0c18;
  color: #f8f9ff;
  font-size: 15px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.login-form input:focus { border-color: #6d8cff; box-shadow: 0 0 0 3px rgba(109, 140, 255, 0.12); }

.show-password {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #9298b9;
  cursor: pointer;
}
.show-password input { accent-color: #6d8cff; }

.login-error { min-height: 22px; margin-top: 16px; color: #ff7398; font-size: 13px; }
.login-form button {
  width: 100%;
  height: 48px;
  border: 0;
  border-radius: 6px;
  background: linear-gradient(90deg, #7560ff, #3aa7f5);
  color: white;
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(72, 96, 230, 0.25);
}
.login-form button:disabled { opacity: 0.55; cursor: wait; }
.login-note { margin: 18px 0 0; color: #686e91; font-size: 11px; line-height: 1.7; text-align: center; }

footer { padding: 18px; color: #565c7d; font-size: 11px; text-align: center; }

@media (max-width: 820px) {
  .login-shell { width: min(100% - 24px, 520px); min-height: 0; grid-template-columns: 1fr; margin: 24px auto; }
  .identity-pane { min-height: 260px; padding: 28px; border-right: 0; border-bottom: 1px solid #2b2d4b; }
  .identity-copy { margin: 42px 0 26px; }
  .identity-copy h1 { font-size: 32px; }
  .identity-copy p { font-size: 13px; }
  .identity-pane::after { display: none; }
  .login-pane { padding: 34px 28px 40px; }
}

@media (max-width: 420px) {
  .login-shell { width: 100%; margin: 0; border-left: 0; border-right: 0; }
  .identity-pane { min-height: 230px; padding: 22px; }
  .identity-copy { margin: 32px 0 18px; }
  .identity-copy h1 { font-size: 27px; }
  .system-state span:last-child { display: none; }
  .login-pane { padding: 30px 22px 36px; }
}
