:root {
  color-scheme: light;
  --bg: #f5f7fb;
  --panel: #ffffff;
  --text: #172033;
  --muted: #667085;
  --line: #d9e1ee;
  --brand: #0969da;
  --danger: #b42318;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  font-family: Inter, Segoe UI, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

main {
  width: min(460px, calc(100vw - 32px));
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px;
  box-shadow: 0 18px 60px rgba(20, 32, 55, .12);
}

.product-link { display: block; width: fit-content; margin: -8px auto 8px; }
.product-logo { display: block; width: 190px; height: auto; }
h1 { margin: 0 0 6px; font-size: 26px; letter-spacing: 0; }
h2 { margin: 0 0 7px; font-size: 20px; letter-spacing: 0; }
p { margin: 0 0 22px; color: var(--muted); }
label { display: block; margin: 14px 0 6px; font-weight: 650; }

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

button {
  width: 100%;
  height: 42px;
  margin-top: 18px;
  border: 0;
  border-radius: 6px;
  background: var(--brand);
  color: white;
  font-weight: 700;
  cursor: pointer;
}
button:disabled { opacity: .6; cursor: wait; }
.secondary { margin-top: 10px; border: 1px solid var(--line); color: var(--text); background: white; }
.compact { width: auto; min-width: 72px; height: 42px; margin: 0; }
.setup { margin: 16px 0; padding: 14px; border: 1px solid #b8c8e8; border-radius: 6px; background: #f4f7ff; }
.mfa-qr { width: 190px; height: 190px; margin: 14px auto; display: block; border: 8px solid white; border-radius: 6px; image-rendering: pixelated; }
.step-heading { display: flex; align-items: flex-start; gap: 10px; }
.step-heading > span { width: 26px; height: 26px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; color: white; background: var(--brand); font-size: 13px; font-weight: 800; }
.step-heading p, .step-heading small { margin: 4px 0 0; display: block; color: var(--muted); font-size: 13px; font-weight: 400; line-height: 1.45; }
details { margin-top: 10px; }
summary { color: var(--brand); font-size: 13px; font-weight: 700; cursor: pointer; }
.secret-row { display: flex; gap: 8px; }
.secret-row input { min-width: 0; color: #2447bd; font-family: Consolas, monospace; font-size: 13px; }
.trust-device { margin-top: 16px; display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.trust-device input { width: 18px; height: 18px; margin: 2px 0 0; flex: 0 0 auto; }
.trust-device span { display: grid; gap: 3px; }
.trust-device small { color: var(--muted); font-size: 12px; font-weight: 400; line-height: 1.4; }
.recovery-codes { margin: 15px 0; padding: 14px; border: 1px solid var(--line); border-radius: 6px; background: #f7f9fc; color: #172033; font: 700 14px/1.75 Consolas, monospace; white-space: pre; text-align: center; user-select: all; }

.error {
  min-height: 20px;
  margin-top: 12px;
  color: var(--danger);
  font-size: 14px;
}

.overview-link {
  display: block;
  margin-top: 8px;
  color: var(--brand);
  text-align: center;
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}

.overview-link:hover { text-decoration: underline; }
