:root {
  color-scheme: light;
  --bg: #edf3f6;
  --card: #ffffff;
  --text: #10212f;
  --muted: #5c7184;
  --line: #d7e0e7;
  --blue: #15334d;
  --blue-2: #1f557f;
  --mint: #0f7a67;
  --soft: #f4f8fb;
  --shadow: 0 24px 64px rgba(16, 33, 47, 0.14);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(31, 85, 127, 0.18), transparent 30%),
    radial-gradient(circle at bottom right, rgba(15, 122, 103, 0.16), transparent 28%),
    linear-gradient(180deg, #eef5f9 0%, #e9f0f4 100%);
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  background: #f2f6f9;
  border: 1px solid #dce5eb;
  border-radius: 8px;
  padding: 2px 6px;
}

.landing {
  min-height: 100vh;
  padding: 28px 16px 48px;
  display: grid;
  place-items: center;
}

.hero-card {
  width: min(860px, 100%);
  background: var(--card);
  border: 1px solid rgba(215, 224, 231, 0.8);
  border-radius: 28px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--mint);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(32px, 6vw, 54px);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.lead {
  margin: 18px 0 0;
  max-width: 760px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.cta-row {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

button,
.ghost-button {
  height: 48px;
  padding: 0 18px;
  border-radius: 14px;
  border: 1px solid var(--blue);
}

button {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-2) 100%);
  color: #fff;
  font-weight: 700;
}

button:disabled {
  opacity: 0.55;
  cursor: default;
}

.ghost-button {
  background: #fff;
  color: var(--blue);
}

.status-grid {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.info-box {
  min-height: 124px;
  padding: 16px;
  border-radius: 18px;
  background: var(--soft);
  border: 1px solid var(--line);
  display: grid;
  gap: 10px;
  align-content: start;
}

.info-box.accent {
  background: linear-gradient(135deg, #15334d 0%, #1b4a6f 62%, #0f7a67 100%);
  color: #fff;
  border: 0;
}

.info-box span {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: inherit;
  opacity: 0.75;
}

.info-box strong,
.info-box code {
  font-size: 15px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.info-box.accent code {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.18);
}

.steps,
.subsection p {
  color: var(--muted);
  line-height: 1.6;
}

.steps {
  margin: 24px 0 0;
  padding-left: 22px;
}

.steps li + li {
  margin-top: 8px;
}

.subsection {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.subsection h2 {
  margin: 0 0 10px;
  font-size: 21px;
}

.field,
.login-box {
  display: grid;
  gap: 8px;
}

.field span,
#loginError {
  color: var(--muted);
  font-size: 12px;
}

.field input {
  height: 46px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
}

.field input:focus {
  outline: none;
  border-color: var(--blue-2);
  box-shadow: 0 0 0 4px rgba(31, 85, 127, 0.12);
}

.login-panel {
  position: fixed;
  inset: 0;
  background: rgba(16, 33, 47, 0.38);
  display: grid;
  place-items: center;
  padding: 16px;
}

.login-box {
  width: min(400px, 100%);
  background: #fff;
  border-radius: 24px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.login-box h2 {
  margin: 0 0 4px;
}

.toast {
  position: fixed;
  right: 16px;
  bottom: 16px;
  max-width: min(420px, calc(100vw - 32px));
  padding: 14px 16px;
  border-radius: 14px;
  background: #10212f;
  color: #fff;
  box-shadow: var(--shadow);
}

@media (max-width: 860px) {
  .hero-card {
    padding: 22px;
    border-radius: 22px;
  }

  .status-grid {
    grid-template-columns: 1fr;
  }

  .lead {
    font-size: 16px;
  }
}
