:root {
  color-scheme: light;
  --ink: #172033;
  --muted: #68748a;
  --line: #dde4ee;
  --primary: #1264b4;
  --primary-dark: #0b4e91;
  --panel: #ffffff;
  --bg: #edf4fb;
  --ok: #176b49;
  --danger: #b42318;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; margin: 0; }
body {
  font-family: "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
}
button, input { font: inherit; }
[hidden] { display: none !important; }

.shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(360px, 1.08fr) minmax(390px, 0.92fr);
}

.brand-panel {
  position: relative;
  overflow: hidden;
  padding: 54px clamp(38px, 5vw, 78px);
  display: flex;
  flex-direction: column;
  color: #fff;
  background:
    radial-gradient(circle at 15% 20%, rgba(80, 160, 235, .38), transparent 32%),
    radial-gradient(circle at 85% 78%, rgba(41, 116, 185, .28), transparent 38%),
    linear-gradient(145deg, #082b4d 0%, #0b3f6b 48%, #0d2b47 100%);
}
.brand-panel::after {
  content: "";
  position: absolute;
  inset: auto -12% -24% 34%;
  height: 62%;
  border: 1px solid rgba(151, 198, 238, .2);
  border-radius: 50%;
  transform: rotate(-12deg);
  pointer-events: none;
}
.brand { display: flex; align-items: center; gap: 13px; position: relative; z-index: 1; }
.brand-mark { width: 46px; height: 46px; object-fit: contain; }
.brand h1 { margin: 0; font-size: 21px; letter-spacing: .05em; }
.brand p { margin: 3px 0 0; font-size: 11px; letter-spacing: .18em; color: rgba(225, 241, 255, .66); }
.brand-copy { margin: auto 0; max-width: 560px; position: relative; z-index: 1; }
.eyebrow {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .19em;
  color: #2a75b7;
}
.brand-panel .eyebrow { color: #95c8ef; margin-bottom: 22px; }
.brand-copy h2 {
  margin: 0 0 24px;
  font-size: clamp(34px, 4.2vw, 58px);
  line-height: 1.16;
  letter-spacing: -.03em;
  font-weight: 750;
}
.brand-copy p {
  margin: 0;
  max-width: 490px;
  font-size: 14px;
  line-height: 1.9;
  color: rgba(224, 239, 253, .78);
}
.brand-foot {
  margin: 0;
  font-size: 11px;
  color: rgba(206, 229, 249, .54);
  letter-spacing: .03em;
  position: relative;
  z-index: 1;
}

.form-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 46px clamp(30px, 6vw, 92px);
  background:
    radial-gradient(circle at 92% 4%, rgba(181, 211, 238, .36), transparent 34%),
    #f6f9fd;
}
.form-box {
  width: min(100%, 410px);
  background: var(--panel);
  border: 1px solid #e3eaf3;
  border-radius: 14px;
  box-shadow: 0 16px 44px rgba(30, 65, 103, .09);
  padding: 34px 34px 28px;
}
.form-head { margin-bottom: 24px; }
.form-head .eyebrow { margin-bottom: 9px; }
.form-head h2 { margin: 0 0 8px; font-size: 29px; letter-spacing: -.03em; }
.form-head p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
label {
  display: block;
  margin: 16px 0 7px;
  font-size: 13px;
  font-weight: 600;
  color: #334156;
}
input {
  width: 100%;
  height: 44px;
  border: 1px solid #ccd8e6;
  border-radius: 8px;
  padding: 0 12px;
  color: var(--ink);
  background: #fff;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
input:focus { border-color: #4d95d5; box-shadow: 0 0 0 3px rgba(57, 137, 207, .14); }
button {
  width: 100%;
  height: 44px;
  margin-top: 22px;
  border: 0;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  font-weight: 650;
  cursor: pointer;
  transition: background .15s;
}
button:hover { background: var(--primary-dark); }
button:disabled { opacity: .68; cursor: wait; }
button.secondary {
  color: #31506e;
  background: #eef4fa;
  border: 1px solid #d6e2ef;
  margin-top: 18px;
}
button.secondary:hover { background: #e4eef8; }
.error {
  margin: 12px 0 0;
  padding: 9px 11px;
  border-radius: 7px;
  color: var(--danger);
  background: #fff4f2;
  border: 1px solid #f1d3ce;
  font-size: 12px;
  line-height: 1.5;
}
.secure-note, .server-note { margin: 17px 0 0; color: #8794a7; font-size: 11px; text-align: center; }
.server-note { margin-top: 20px; }
.account-meta { margin: 0; border-top: 1px solid var(--line); }
.account-meta > div { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.account-meta dt { color: var(--muted); font-size: 12px; }
.account-meta dd { margin: 0; color: var(--ink); font-size: 13px; font-weight: 600; text-align: right; }
.phase-note {
  margin: 20px 0 0;
  padding: 12px 13px;
  border-left: 3px solid #8fbde4;
  background: #f4f9fe;
  color: #52687f;
  font-size: 12px;
  line-height: 1.65;
}
.loading-box { text-align: center; padding: 64px 34px; }
.loading-box p { margin: 18px 0 0; color: var(--muted); font-size: 13px; }
.spinner {
  width: 26px;
  height: 26px;
  margin: 0 auto;
  border: 3px solid #dce9f5;
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .brand-panel { min-height: 290px; padding: 32px 30px; }
  .brand-copy { margin: 44px 0 24px; }
  .brand-copy h2 { font-size: clamp(30px, 8vw, 42px); margin-bottom: 14px; }
  .brand-copy p, .brand-foot { display: none; }
  .form-panel { padding: 32px 20px 46px; }
  .form-box { padding: 28px 24px 24px; }
}
