:root {
  color-scheme: light;
  --bg: #f6f8fa;
  --canvas: #ffffff;
  --border: #d0d7de;
  --text: #1f2328;
  --muted: #656d76;
  --blue: #0969da;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  display: grid;
  place-items: center;
  color: var(--text);
  background: var(--bg);
  font-size: 14px;
  line-height: 1.5;
}

.login-shell {
  width: min(360px, calc(100% - 32px));
  padding: 40px 0;
  text-align: center;
}

.brand-mark {
  display: block;
  width: 44px;
  height: 44px;
  margin: 0 auto 18px;
  border-radius: 9px;
}

h1 {
  margin: 0;
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.login-description {
  margin: 6px 0 20px;
  color: var(--muted);
}

.login-card {
  padding: 20px;
  background: var(--canvas);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 1px 0 rgba(31, 35, 40, 0.04);
  text-align: left;
}

label {
  display: block;
  margin-bottom: 7px;
  font-weight: 600;
}

input,
button {
  width: 100%;
  min-height: 36px;
  border-radius: 6px;
  font: inherit;
}

input {
  padding: 7px 10px;
  color: var(--text);
  background: var(--canvas);
  border: 1px solid var(--border);
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  outline: none;
}

input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(9, 105, 218, 0.14);
}

button {
  margin-top: 16px;
  padding: 7px 14px;
  color: #ffffff;
  background: #1f883d;
  border: 1px solid rgba(31, 35, 40, 0.15);
  font-weight: 600;
  cursor: pointer;
}

button:hover {
  background: #1a7f37;
}

button:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.login-error {
  margin: 12px 0 0;
  padding: 8px 10px;
  color: #cf222e;
  background: #ffebe9;
  border: 1px solid #ffcecb;
  border-radius: 6px;
  font-size: 12px;
}

.login-note {
  margin: 18px auto 0;
  color: var(--muted);
  font-size: 12px;
}

[hidden] {
  display: none !important;
}
