:root {
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: #1c365d;
  background: #e8f1ff;
  --blue: #2861b7;
  --line: #d7e4f5;
  --muted: #7284a0;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at 10% 12%, #d9e8ff 0, transparent 34rem),
              radial-gradient(circle at 92% 90%, #fff0da 0, transparent 34rem), #e8f1ff;
}
.login-shell { width: min(100%, 1480px); min-height: 100vh; margin: auto; padding: 22px clamp(16px, 3vw, 44px) 34px; }
.brand {
  min-height: 72px; display: flex; align-items: center; gap: 14px; padding: 10px 20px;
  border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: 0 12px 35px #244f8c12;
}
.brand > span:first-child {
  width: 46px; height: 46px; flex: none; display: grid; place-items: center; border-radius: 14px;
  background: #376ac4; color: #fff; font-size: 24px; font-weight: 900; box-shadow: 0 6px 18px #315eb83b;
}
.brand > span.custom-brand-logo { overflow: hidden; background: #fff; }
.brand > span.custom-brand-logo img { width: 100%; height: 100%; object-fit: cover; }
.brand > div { min-width: 0; }
.brand b { font-size: 17px; font-weight: 850; }
.brand em { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; font-style: normal; }
.brand-lan {
  margin-left: auto; padding: 7px 12px; border: 1px solid #dce8f8; border-radius: 999px;
  background: #f5f9ff; color: #5474a5; font-size: 11px; font-weight: 750; white-space: nowrap;
}
.login-layout {
  min-height: calc(100vh - 140px); display: grid; grid-template-columns: minmax(240px, 340px) minmax(360px, 510px);
  gap: clamp(24px, 5vw, 72px); align-items: center; justify-content: center; padding: 28px 0;
}
.login-card { min-width: 0; border: 1px solid var(--line); border-radius: 24px; background: #fff; box-shadow: 0 22px 55px #1c4a8614; }
.eyebrow { margin: 0; color: #346dcc; font-size: 11px; font-weight: 900; letter-spacing: .16em; }
.showcase-frame {
  position: relative; display: grid; place-items: center; height: min(600px, calc(100vh - 170px));
  width: auto; max-width: 100%; aspect-ratio: 9 / 16; justify-self: center;
  overflow: hidden; border: 0; border-radius: 0; box-shadow: none; background: #101b2d;
}
.showcase-frame video { display: block; width: 100%; height: 100%; object-fit: contain; background: #0b1527; }
.showcase-frame video[hidden], .showcase-empty[hidden] { display: none !important; }
.showcase-empty { color: #b9ccea; font-size: 13px; text-align: center; }
.login-card { align-self: center; padding: clamp(26px, 3vw, 44px); }
.login-card h2 { margin: 10px 0; color: #173762; font-size: 32px; line-height: 1.2; }
.hint { margin: 0 0 26px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.login-card label { display: block; margin: 15px 0; color: #29446e; font-size: 12px; font-weight: 800; }
.login-card input {
  width: 100%; height: 48px; margin-top: 8px; padding: 0 14px; border: 1px solid #cfddf0;
  border-radius: 11px; background: #f8fbff; color: #1e3659; font: inherit; outline: 0;
}
.login-card input:focus { border-color: #6192df; box-shadow: 0 0 0 3px #4e85df21; }
.login-card button {
  width: 100%; min-height: 48px; margin-top: 10px; padding: 8px 16px; border: 0; border-radius: 11px;
  background: #3268c2; color: #fff; font: inherit; font-size: 14px; font-weight: 850; cursor: pointer;
  box-shadow: 0 8px 20px #3166b633;
}
.login-card button:hover { background: #275aaf; }
.login-card button:disabled { opacity: .6; cursor: wait; }
.error { min-height: 19px; margin: 12px 0 0; color: #bd3443; font-size: 12px; }
@media (max-width: 920px) {
  .login-layout { grid-template-columns: minmax(0, 1fr); min-height: auto; justify-items: center; }
  .showcase-frame { width: min(100%, 280px); height: auto; order: 2; }
  .login-card { width: 100%; max-width: 620px; justify-self: center; }
}
@media (max-width: 560px) {
  .login-shell { padding: 12px; }
  .brand { padding: 10px 13px; }
  .brand b { font-size: 14px; }
  .brand-lan { display: none; }
  .login-card { border-radius: 18px; }
  .login-card { padding: 23px; }
  .login-card h2 { font-size: 27px; }
}
