:root {
  color-scheme: light;
  --bg: #f5f7f8;
  --panel: #ffffff;
  --text: #182026;
  --muted: #5c6972;
  --line: #c9d2d8;
  --accent: #0c6b58;
  --accent-strong: #084b3d;
  --error: #9f2d2d;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

.login-shell {
  min-height: calc(100vh - 44px);
  display: grid;
  place-items: center;
  padding: 24px;
}

.login-panel {
  width: min(100%, 440px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 28px;
  box-shadow: 0 14px 38px rgb(24 32 38 / 10%);
}

.kicker {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 24px;
  font-size: 1.8rem;
  line-height: 1.15;
}

.login-form {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.field-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

label {
  color: var(--muted);
  font-weight: 700;
}

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

input:focus {
  border-color: var(--accent);
  outline: 3px solid rgb(12 107 88 / 18%);
}

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

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

button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.status {
  min-height: 1.4em;
  margin: 18px 0 0;
  color: var(--muted);
}

.status[data-kind="error"] {
  color: var(--error);
}

.is-hidden {
  display: none;
}

footer {
  min-height: 44px;
  color: var(--muted);
  font-size: 0.8rem;
  text-align: center;
}

@media (max-width: 520px) {
  .login-shell {
    place-items: stretch;
    padding: 16px;
  }

  .login-panel {
    align-self: center;
    padding: 22px;
  }

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