:root {
  color-scheme: light;
  font-family: system-ui, "Microsoft YaHei", "PingFang SC", sans-serif;
  color: #13273d;
  background: #f5fafc;
  --ink: #13273d;
  --muted: #465f71;
  --teal: #246577;
  --hairline: #22526c25;
}

* { box-sizing: border-box; }

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(ellipse at 18% 4%, #d4f3f0 0, transparent 56%),
    radial-gradient(ellipse at 86% 42%, #dcebfa 0, transparent 52%),
    linear-gradient(148deg, #ecf8f8, #f7fbfd 80%);
}

a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid #236b8a; outline-offset: 4px; }

.site-header,
.hero,
.login-shell,
.site-footer {
  width: min(1140px, calc(100% - 64px));
  margin-inline: auto;
}

.site-header,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-header { min-height: 76px; border-bottom: 1px solid var(--hairline); }
.brand { font-size: 22px; font-weight: 750; }
.login-link { padding: 9px 18px; border: 1px solid var(--hairline); border-radius: 8px; background: #ffffff80; }
.login-link:hover { background: #fff; }

.hero,
.login-shell {
  display: grid;
  align-items: center;
  flex: 1;
  gap: clamp(34px, 7vw, 102px);
  padding-block: clamp(48px, 9vh, 106px);
}

.hero { grid-template-columns: 1fr minmax(0, .85fr); }
.hero-copy { position: relative; z-index: 1; }
.eyebrow { margin: 0 0 20px; color: var(--teal); font-size: .75rem; font-weight: 750; letter-spacing: .17em; }

.hero h1 {
  margin: 0;
  font-size: clamp(60px, 8vw, 116px);
  font-weight: 760;
  line-height: 1;
  letter-spacing: -.065em;
}

.hero h1 span {
  display: block;
  margin-top: 18px;
  color: var(--teal);
  font-size: .35em;
  font-weight: 650;
  letter-spacing: .16em;
  line-height: 1.2;
}

.hero-description { max-width: 25em; margin: 24px 0 30px; color: var(--muted); font-size: clamp(17px, 2vw, 20px); line-height: 1.8; }
.hero small { display: block; margin-top: 16px; color: var(--muted); font-size: .85rem; line-height: 1.6; }

.primary-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  min-height: 48px;
  padding: 12px 20px;
  border: 0;
  border-radius: 9px;
  background: var(--ink);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.primary-link:hover { background: #234463; }

.hero-art {
  position: relative;
  display: grid;
  place-items: center;
  isolation: isolate;
  aspect-ratio: 1;
  background: radial-gradient(circle, #ffffffd9 13%, #ffffff45 58%, transparent 72%);
}

.hero-art::before,
.hero-art::after {
  position: absolute;
  z-index: -1;
  border: 1px solid #3079982e;
  border-radius: 50%;
  content: "";
}

.hero-art::before { inset: 5%; }
.hero-art::after { inset: 14%; }
.hero-logo { display: block; width: 85%; height: auto; filter: drop-shadow(0 24px 28px #1b538735); }

.site-footer { min-height: 72px; border-top: 1px solid var(--hairline); font-weight: 750; }
.site-footer span { color: var(--muted); font-size: .85rem; font-weight: 400; }

.login-shell { grid-template-columns: 1fr minmax(320px, 420px); }
.login-intro img { display: block; margin-bottom: 22px; }
.login-intro h1 { margin: 0; font-size: clamp(36px, 6vw, 68px); letter-spacing: -.055em; line-height: 1.12; }
.login-intro p, .login-card p { color: var(--muted); line-height: 1.65; }
.login-card { padding: clamp(22px, 4vw, 36px); border: 1px solid var(--hairline); border-radius: 18px; background: #fff; box-shadow: 0 16px 50px #12426612; }
.login-card h2 { margin: 0; font-size: 1.45rem; }
.login-card form { display: grid; gap: 14px; }
.login-card .field { display: grid; gap: 6px; font-size: .9rem; font-weight: 650; }
.login-card .field[hidden] { display: none; }
.login-card input { width: 100%; min-height: 44px; padding: 8px 11px; border: 1px solid #b0c5d1; border-radius: 8px; color: var(--ink); background: #fbfeff; font: inherit; }
.login-card .form-error { margin: 0; color: #a0333e; }
.login-card .form-error:empty { display: none; }

@media (max-width: 720px) {
  .site-header, .hero, .login-shell, .site-footer { width: calc(100% - 40px); }
  .site-header, .site-footer { min-height: 62px; }
  .hero, .login-shell { grid-template-columns: 1fr; gap: 28px; padding-block: 36px; }
  .hero-art { width: min(72%, 300px); justify-self: center; }
  .login-intro img { width: 60px; height: 60px; margin-bottom: 14px; }
}
