:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f4f7f5;
  color: #17201b;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(160deg, #eef5f0 0%, #f8faf9 55%, #eef2ef 100%);
}
.shell {
  width: min(92vw, 520px);
  margin: 0 auto;
  padding: 56px 0 72px;
}
.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 22px;
}
.brand-mark {
  font-weight: 900;
  letter-spacing: .08em;
  font-size: 24px;
}
.brand-subtitle { color: #496458; font-weight: 700; }
.panel {
  background: #fff;
  border: 1px solid #dce5df;
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 18px 60px rgba(19, 39, 27, .08);
}
.eyebrow {
  margin: 0 0 8px;
  color: #2b7151;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
h1 { margin: 0 0 8px; font-size: 27px; }
.muted { margin: 0 0 24px; color: #617068; }
form { display: grid; gap: 16px; }
label {
  display: grid;
  gap: 7px;
  font-size: 14px;
  font-weight: 700;
}
input {
  width: 100%;
  border: 1px solid #cbd8d0;
  border-radius: 11px;
  padding: 12px 13px;
  font: inherit;
  outline: none;
}
input:focus { border-color: #2b7151; box-shadow: 0 0 0 3px rgba(43, 113, 81, .12); }
button {
  border: 0;
  border-radius: 11px;
  padding: 12px 15px;
  background: #143d2b;
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
button:hover { filter: brightness(1.05); }
button.secondary { background: #e8f0eb; color: #173d2b; }
button.danger { margin-top: 22px; background: #592626; }
.secondary-block { margin-top: 22px; padding-top: 18px; border-top: 1px solid #e5ebe7; }
.notice {
  margin: 18px 0;
  padding: 16px;
  border-radius: 12px;
  background: #eef6f1;
  border: 1px solid #d4e6da;
}
.notice code {
  display: block;
  margin: 10px 0;
  padding: 10px;
  overflow-wrap: anywhere;
  background: #fff;
  border-radius: 8px;
}
.notice a { color: #1f6948; font-weight: 800; }
.recovery-codes {
  display: grid;
  gap: 8px;
  margin: 20px 0;
  padding-left: 28px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.status-line { display: flex; align-items: center; gap: 9px; color: #315743; }
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: #278552; }
details { margin-top: 22px; border-top: 1px solid #e5ebe7; padding-top: 18px; }
summary { cursor: pointer; font-weight: 800; margin-bottom: 16px; }
.feedback { min-height: 24px; margin: 14px 4px 0; color: #7b2727; font-weight: 700; }
[hidden] { display: none !important; }
@media (max-width: 540px) {
  .shell { padding-top: 28px; }
  .panel { padding: 22px; border-radius: 16px; }
}
