:root {
  color-scheme: light;
  --bg: #f6f7fb;
  --ink: #17202a;
  --muted: #657080;
  --panel: #ffffff;
  --line: #dce2ea;
  --brand: #126b5d;
  --brand-dark: #0c4b41;
  --danger-bg: #fff0f0;
  --danger: #9b1c1c;
  --success-bg: #ebfff6;
  --success: #126b43;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.auth-screen {
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(120deg, rgba(18, 107, 93, 0.16), transparent 42%),
    linear-gradient(300deg, rgba(37, 99, 235, 0.12), transparent 38%),
    var(--bg);
}

.auth-panel,
.panel {
  width: min(100%, 420px);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px;
  box-shadow: 0 18px 50px rgba(23, 32, 42, 0.08);
}

.panel {
  width: 100%;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 22px;
  font-size: clamp(1.9rem, 3vw, 2.7rem);
}

h2 {
  font-size: 1.55rem;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.05rem;
}

p {
  color: var(--muted);
  line-height: 1.55;
}

form {
  display: grid;
  gap: 12px;
}

label {
  color: #2c3744;
  font-size: 0.92rem;
  font-weight: 700;
}

input {
  width: 100%;
  min-height: 46px;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  padding: 0 13px;
  color: var(--ink);
  font: inherit;
}

input:focus {
  border-color: var(--brand);
  outline: 3px solid rgba(18, 107, 93, 0.16);
}

button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 0;
  border-radius: 7px;
  padding: 0 18px;
  background: var(--brand);
  color: #fff;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

button:hover,
.button:hover {
  background: var(--brand-dark);
}

.button.secondary {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}

.button.secondary:hover {
  background: #edf2f7;
}

.alert,
.success {
  border-radius: 7px;
  padding: 12px 14px;
  font-weight: 700;
}

.alert {
  background: var(--danger-bg);
  color: var(--danger);
}

.success {
  background: var(--success-bg);
  color: var(--success);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px clamp(20px, 5vw, 64px);
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.topbar h1 {
  margin-bottom: 0;
}

.workspace {
  width: min(1120px, calc(100% - 40px));
  margin: 34px auto 60px;
}

.workspace.narrow {
  width: min(560px, calc(100% - 40px));
}

.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.hero p {
  max-width: 640px;
  margin-bottom: 0;
}

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

.card {
  min-height: 174px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.status {
  display: block;
  width: 11px;
  height: 11px;
  margin-bottom: 16px;
  border-radius: 999px;
  background: var(--brand);
}

.nav-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

code {
  border-radius: 5px;
  background: #eef2f7;
  padding: 2px 5px;
}

@media (max-width: 760px) {
  .topbar,
  .hero {
    align-items: stretch;
    flex-direction: column;
  }

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