:root {
  --ink: #192238;
  --muted: #687086;
  --blue: #315efb;
  --blue-dark: #243a9b;
  --line: #dfe4ee;
  --danger: #b42318;
  --font-ui: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --font-calligraphy: "STXingkai", "华文行楷", "STKaiti", "Kaiti SC", "KaiTi", serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background: #f4f6fb;
  color: var(--ink);
  font-family: var(--font-ui);
}

button,
input { font: inherit; }

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

.login-intro {
  position: relative;
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  overflow: hidden;
  padding: 54px 7vw 46px;
  background: linear-gradient(145deg, #315efb 0%, #243a9b 72%, #1e2c73 100%);
  color: #fff;
}

.login-intro::before,
.login-intro::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 50%;
}

.login-intro::before { width: 420px; height: 420px; right: -210px; top: 12%; }
.login-intro::after { width: 620px; height: 620px; left: -360px; bottom: -390px; }

.brand-line {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 15px;
}

.brand-seal {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.1);
  font-family: var(--font-calligraphy);
  font-size: 25px;
}

.brand-line strong,
.mobile-brand {
  font-family: var(--font-calligraphy);
  font-size: 29px;
  letter-spacing: 0.16em;
}

.brand-line small { display: block; margin-top: 2px; color: #dbe4ff; letter-spacing: 0.12em; }

.intro-copy {
  position: relative;
  z-index: 1;
  margin: auto 0;
}

.eyebrow { color: #fde68a; font-size: 12px; letter-spacing: 0.16em; }
.intro-copy h1 { margin: 22px 0; font-size: clamp(42px, 4.4vw, 68px); line-height: 1.18; letter-spacing: 0.03em; }
.intro-copy p { max-width: 520px; margin: 0; color: #dbe4ff; font-size: 17px; line-height: 1.9; }
.disclaimer { position: relative; z-index: 1; margin: 0; color: #cbd7ff; font-size: 13px; letter-spacing: 0.08em; }

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

.login-card {
  width: min(430px, 100%);
  padding: 42px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(30, 41, 59, 0.1);
}

.mobile-brand { display: none; color: #243a9b; }
.section-label { color: #d97706; font-size: 12px; font-weight: 700; letter-spacing: 0.14em; }
.login-card h2 { margin: 8px 0 4px; font-size: 30px; }
.form-help { margin: 0 0 28px; color: var(--muted); font-size: 14px; }
.login-card label { display: block; margin: 17px 0 7px; color: #3c465c; font-size: 13px; font-weight: 650; }

.login-card input {
  width: 100%;
  height: 46px;
  padding: 0 13px;
  border: 1px solid #cfd6e3;
  border-radius: 9px;
  outline: none;
  background: #fbfcff;
  color: var(--ink);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.login-card input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(49, 94, 251, 0.13); }
.password-field { position: relative; }
.password-field input { padding-right: 62px; }
.password-field button { position: absolute; top: 0; right: 5px; height: 46px; border: 0; background: transparent; color: var(--blue); cursor: pointer; font-size: 12px; }

.login-error {
  display: none;
  margin-top: 18px;
  padding: 10px 12px;
  border: 1px solid #ef4444;
  border-left: 4px solid #dc2626;
  border-radius: 7px;
  background: #fff1f2;
  color: var(--danger);
  font-size: 13px;
}

.login-error.show { display: block; }
.login-button { width: 100%; height: 46px; margin-top: 22px; border: 0; border-radius: 9px; background: var(--blue); color: #fff; cursor: pointer; font-weight: 700; transition: background 0.18s ease, transform 0.18s ease; }
.login-button:hover { background: #2448c8; transform: translateY(-1px); }
.login-button:disabled { opacity: 0.65; cursor: wait; transform: none; }
.security-note { margin: 18px 0 0; color: #8a92a3; font-size: 12px; line-height: 1.6; text-align: center; }

@media (max-width: 820px) {
  .login-shell { grid-template-columns: 1fr; }
  .login-intro { display: none; }
  .login-panel { min-height: 100vh; padding: 24px; }
  .login-card { padding: 32px 26px; }
  .mobile-brand { display: block; margin-bottom: 32px; }
}

/* Keep labels and icons centered inside every login-page button. */
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.35;
}
