:root {
  color: #1f2a38;
  font-family: Inter, Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
  min-height: 100vh;
  margin: 0;
  background: #eef3f7;
}

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

.setup-panel {
  width: min(100%, 440px);
  padding: 32px;
  background: #ffffff;
  border: 1px solid #cbd6df;
  border-radius: 8px;
  box-shadow: 0 12px 32px rgb(31 42 56 / 12%);
}

.setup-logo { display: block; width: 132px; height: auto; margin-bottom: 28px; }
.setup-kicker { margin: 0 0 8px; color: #0c6b7b; font-size: 0.875rem; font-weight: 700; }
h1, h2 { margin: 0; color: #17232e; }
h1 { font-size: 1.75rem; }
h2 { font-size: 1.1rem; }
.setup-status { min-height: 24px; margin: 18px 0; color: #445465; }
.setup-status[data-state="error"] { color: #ad2734; }

.setup-form { display: grid; gap: 12px; margin-top: 24px; }
.setup-form label { color: #344454; font-size: 0.9rem; font-weight: 700; }
.setup-form input {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #9eafbc;
  border-radius: 4px;
  color: #17232e;
  font: inherit;
}
.setup-form input:focus-visible, button:focus-visible { outline: 3px solid #1d98b0; outline-offset: 2px; }
button {
  min-height: 44px;
  padding: 10px 16px;
  border: 0;
  border-radius: 4px;
  background: #0b7183;
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}
button:disabled { cursor: wait; opacity: 0.65; }
.totp-qr { width: 220px; max-width: 100%; height: auto; margin: 8px auto; border: 1px solid #cbd6df; }
.totp-secret { margin: 0; overflow-wrap: anywhere; color: #344454; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 0.8rem; }
.setup-completed { margin-top: 24px; color: #126a4a; }
.setup-completed p { margin-bottom: 0; color: #445465; }

@media (max-width: 480px) {
  .setup-shell { padding: 16px; }
  .setup-panel { padding: 24px; }
}
