:root {
  color-scheme: light;
  --ink: #17202a;
  --muted: #617080;
  --line: #d9e0e7;
  --surface: #ffffff;
  --page: #f4f7f8;
  --accent: #0d6b68;
  --accent-dark: #084c4a;
  --danger: #b42318;
}

* {
  box-sizing: border-box;
}

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

.auth-page {
  display: grid;
  place-items: center;
  padding: 24px;
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 20px;
  border-radius: 8px;
  background: var(--accent);
  color: white;
  font-weight: 800;
}

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

h1 {
  margin-bottom: 24px;
  font-size: 28px;
  line-height: 1.15;
}

.login-form {
  display: grid;
  gap: 16px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

input {
  width: 100%;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 12px;
  color: var(--ink);
  font: inherit;
}

input:focus {
  outline: 3px solid rgba(13, 107, 104, 0.18);
  border-color: var(--accent);
}

button {
  min-height: 44px;
  border: 0;
  border-radius: 6px;
  padding: 0 16px;
  background: var(--accent);
  color: white;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}

button:hover {
  background: var(--accent-dark);
}

.secondary {
  background: white;
  color: var(--accent);
  border: 1px solid var(--line);
}

.secondary:hover {
  background: #edf5f4;
}

.form-error {
  margin: 0;
  color: var(--danger);
  font-size: 14px;
}

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

.topbar h1 {
  margin: 3px 0 0;
}

.eyebrow {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
  text-transform: uppercase;
}

.content {
  padding: 32px clamp(20px, 4vw, 56px);
}

.status-panel {
  max-width: 760px;
  padding: 28px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
}

@media (max-width: 620px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .topbar form,
  .topbar button {
    width: 100%;
  }
}
