:root {
  color-scheme: light;
  --bg: #f6f5ef;
  --surface: #ffffff;
  --text: #20201d;
  --muted: #6b6f68;
  --line: #d9ddd4;
  --brand: #1f6f64;
  --brand-strong: #174f49;
  --warn: #9f3a38;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--bg);
  color: var(--text);
}

.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 18px;
}

.login-panel {
  width: min(420px, 100%);
  display: grid;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 24px;
  box-shadow: 0 18px 45px rgba(30, 35, 31, 0.12);
}

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

h1 {
  margin: 0;
  font-size: 1.8rem;
  line-height: 1.1;
}

.helper-text {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.setup-box {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7faf8;
  padding: 12px;
}

.setup-box code {
  color: var(--brand-strong);
  font-weight: 850;
  overflow-wrap: anywhere;
}

.qr-code-box {
  width: min(220px, 100%);
  aspect-ratio: 1;
  place-self: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 10px;
}

.qr-code-box:empty {
  display: none;
}

.qr-code-box svg {
  display: block;
  width: 100%;
  height: 100%;
}

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 750;
}

input {
  min-height: 44px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  font: inherit;
}

button {
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

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

.form-error {
  min-height: 20px;
  margin: 0;
  color: var(--warn);
  font-weight: 800;
}
