:root {
  color-scheme: light;
  --ink: #152442;
  --deep: #122449;
  --action: #2458c4;
  --muted: #53627a;
  --line: #d9e2ef;
  --canvas: #edf2fa;
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100svh; display: grid; place-items: center; padding: 36px; background: var(--canvas); color: var(--ink); }
.portal { width: min(100%, 1040px); min-height: 610px; display: grid; grid-template-columns: 1.04fr 1fr; border-radius: 22px; overflow: hidden; background: white; box-shadow: 0 22px 70px #24447422; }
.brand-panel { position: relative; display: flex; flex-direction: column; min-height: 100%; overflow: hidden; background: var(--deep); color: #f3f7ff; padding: 50px 52px; }
.wordmark { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 21px; letter-spacing: .06em; }
.mark { color: #a9e9ff; flex: none; }
.brand-message { margin-block: auto 126px; position: relative; z-index: 1; }
.brand-message > p:first-child { color: #b9d6ff; margin: 0 0 16px; font-size: 15px; font-weight: 600; letter-spacing: .1em; }
.brand-message h2 { margin: 0 0 22px; font-size: clamp(38px, 4.25vw, 62px); line-height: 1.18; letter-spacing: -.065em; font-weight: 750; }
.brand-detail { margin: 0; color: #c0cfe8; font-size: 15px; line-height: 1.8; }
.constellation { position: absolute; bottom: -34px; left: 0; width: min(112%, 560px); pointer-events: none; }
.entry { display: flex; align-items: center; justify-content: center; padding: 54px 50px; }
.entry-content { width: min(100%, 342px); }
.entry-kicker { display: inline-flex; align-items: center; gap: 8px; color: #38547d; font-size: 13px; font-weight: 650; }
.entry-kicker span { width: 7px; height: 7px; border-radius: 50%; background: var(--action); }
h1 { margin: 13px 0 10px; font-size: clamp(32px, 3.2vw, 45px); line-height: 1.2; letter-spacing: -.05em; }
.description { color: var(--muted); margin: 0 0 31px; font-size: 15px; line-height: 1.65; }
.fields { display: grid; gap: 18px; }
.field { display: grid; gap: 8px; }
label { font-size: 14px; font-weight: 680; }
input, button { font: inherit; }
input:not([type=hidden]) { display: block; color: var(--ink); width: 100%; min-height: 51px; padding: 12px 13px; border: 1px solid var(--line); border-radius: 8px; background: #f8faff; }
input::placeholder { color: #66758b; }
input:focus-visible, button:focus-visible, a:focus-visible { outline: 2px solid var(--action); outline-offset: 3px; }
.password-field { position: relative; }
.password-field input { padding-right: 62px; }
.password-toggle { position: absolute; right: 4px; top: 4px; min-width: 48px; min-height: 44px; padding: 0 5px; background: none; border: 0; border-radius: 4px; color: #264883; font-size: 13px; cursor: pointer; }
.submit { min-height: 51px; margin-top: 4px; padding: 10px 14px; border: 0; border-radius: 8px; color: white; background: var(--action); font-weight: 700; cursor: pointer; }
.submit:hover { background: #193f97; }
.alert { margin: -12px 0 18px; padding: 11px 13px; border-left: 3px solid #a83742; background: #fff0f1; color: #872430; font-size: 14px; line-height: 1.55; }
.back { margin-top: 21px; border-top: 1px solid #e8edf5; padding-top: 15px; }
.back a { display: inline-flex; align-items: center; min-height: 44px; color: #315596; text-decoration-thickness: 1px; text-underline-offset: 4px; font-size: 14px; }
@media (max-width: 780px) {
  body { padding: 20px; }
  .portal { max-width: 500px; min-height: 0; grid-template-columns: 1fr; }
  .brand-panel { min-height: 120px; padding: 22px 28px; justify-content: space-between; }
  .wordmark { font-size: 18px; }
  .mark { width: 28px; height: 28px; }
  .brand-message { margin: 0; }
  .brand-message > p:first-child { margin: 0; font-size: 13px; }
  .brand-message h2, .brand-detail { display: none; }
  .constellation { width: 62%; left: auto; right: -6%; bottom: -44px; opacity: .85; }
  .entry { padding: 34px 29px; }
}
@media (max-width: 360px) { body { padding: 12px; } .entry, .brand-panel { padding-inline: 20px; } }
