:root {
  --site-header-height: 53px;
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #172033;
  background: #f6f7fb;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(54, 102, 255, 0.16), transparent 30rem),
    #f6f7fb;
}

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 2147483647;
  height: var(--site-header-height);
  border-bottom: 1px solid rgba(226, 231, 240, 0.9);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 24px;
}

.site-brand {
  color: #172033;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.site-collection-name {
  min-width: 0;
  color: #526070;
  font-size: 0.95rem;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-collection-name::before {
  content: "/";
  margin-right: 14px;
  color: #9aa6b5;
}

.landing {
  max-width: 960px;
  margin: 0 auto;
  padding: calc(var(--site-header-height) + 64px) 24px 64px;
}

.reference-body {
  background: #fff;
}

.reference-page {
  max-width: none;
  margin: 0;
  padding-top: var(--site-header-height);
}

.login {
  display: grid;
  min-height: calc(100vh - var(--site-header-height));
  place-items: center;
  padding: calc(var(--site-header-height) + 48px) 24px 48px;
}

.login-card {
  width: min(100%, 440px);
  padding: 36px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid #e2e7f0;
  border-radius: 24px;
  box-shadow: 0 22px 60px rgba(23, 32, 51, 0.12);
}

.login-eyebrow {
  margin: 0 0 10px;
  color: #1457d9;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.login-card h1 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 8vw, 3rem);
  letter-spacing: -0.04em;
}

.login-card p {
  margin: 0 0 24px;
  color: #526070;
  font-size: 1rem;
  line-height: 1.6;
}

.login-button {
  width: 100%;
  padding: 14px 18px;
  color: white;
  font: inherit;
  font-weight: 800;
  background: #1457d9;
  border: 0;
  border-radius: 14px;
}

.login-button[disabled] {
  cursor: not-allowed;
  opacity: 0.55;
}

.landing .hero {
  margin-bottom: 32px;
}

.landing .eyebrow {
  margin: 0 0 8px;
  color: #1457d9;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.landing h1 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 5vw, 4rem);
  letter-spacing: -0.04em;
}

.landing p {
  margin: 0;
  color: #526070;
  font-size: 1.1rem;
}

.landing ul {
  display: grid;
  gap: 16px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.landing li,
.landing .error {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 20px;
  background: white;
  border: 1px solid #e2e7f0;
  border-radius: 18px;
  box-shadow: 0 12px 32px rgba(23, 32, 51, 0.06);
}

.landing a {
  color: #1457d9;
  font-weight: 800;
  text-decoration: none;
}

.landing span {
  color: #6b7788;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.9rem;
}

.landing .error {
  display: block;
}

.landing .error strong {
  display: block;
  margin-bottom: 8px;
}

@media (max-width: 640px) {
  .login {
    padding: calc(var(--site-header-height) + 32px) 18px 32px;
  }

  .login-card {
    padding: 28px;
  }

  .landing {
    padding: calc(var(--site-header-height) + 40px) 18px 40px;
  }

  .landing li {
    align-items: flex-start;
    flex-direction: column;
  }
}
