@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/assets/plus-jakarta-sans.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}

:root {
  --brand: #78be20;
  --brand-deep: #2f6f1d;
  --button: #188803;
  --button-hover: #136b02;
  --ink: #1d221d;
  --muted: #6b726b;
  --line: #dfe3db;
  --error: #b42318;
  --error-soft: #fdecea;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: "Plus Jakarta Sans", Arial, sans-serif;
  color: var(--ink);
  background: #f3f5f0;
  -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }

.auth {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 32px 16px;
}
.auth-card {
  width: min(400px, 100%);
  padding: 32px 32px 28px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 24px 60px -32px rgba(20, 40, 20, .35);
  border-top: 4px solid var(--brand);
}
.auth-card-wide { width: min(520px, 100%); }
.auth-logo { display: block; width: 96px; height: auto; margin: 0 0 18px; }
.auth-eyebrow { margin: 0 0 4px; color: var(--brand-deep); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.auth-foot { margin: 0; color: var(--muted); font-size: 12px; }

.auth-form { display: grid; gap: 8px; }
.auth-form h1 { margin: 0 0 2px; font-size: 24px; letter-spacing: -.02em; }
.auth-lead { margin: 0 0 12px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.auth-lead strong { color: var(--ink); }
.auth-form label { margin-top: 6px; font-size: 13px; font-weight: 700; }
.auth-form input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  font: inherit;
  font-size: 15px;
  color: inherit;
  background: #fbfcfa;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.auth-form input:focus { outline: 2px solid var(--brand); outline-offset: 1px; background: #fff; }
.auth-form input[aria-invalid="true"] { border-color: var(--error); }
.auth-code { font-size: 22px !important; letter-spacing: .4em; text-align: center; font-variant-numeric: tabular-nums; }

.auth-error { margin: 6px 0 0; padding: 10px 12px; color: var(--error); background: var(--error-soft); border-radius: 10px; font-size: 13px; font-weight: 600; }

.auth-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  margin-top: 12px;
  padding: 0 20px;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  background: var(--button);
  border: 0;
  border-radius: 10px;
  cursor: pointer;
}
.auth-button:hover { background: var(--button-hover); }
.auth-button:focus-visible, .auth-link:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.auth-button[disabled] { opacity: .6; cursor: progress; }
.auth-link { justify-self: center; margin-top: 4px; padding: 6px; font: inherit; font-size: 13px; color: var(--brand-deep); background: none; border: 0; text-decoration: underline; cursor: pointer; }

.auth-steps { display: grid; gap: 22px; margin: 4px 0 0; padding: 0; list-style: none; counter-reset: step; }
.auth-steps li { display: grid; gap: 8px; padding-left: 40px; position: relative; counter-increment: step; }
.auth-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--brand);
  border-radius: 50%;
  font-size: 13px;
  font-weight: 800;
}
.auth-steps h2 { margin: 2px 0 0; font-size: 16px; }
.auth-steps p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.auth-qr { width: 200px; height: 200px; margin-top: 6px; border: 1px solid var(--line); border-radius: 12px; image-rendering: pixelated; }
.auth-secret summary { cursor: pointer; color: var(--brand-deep); font-size: 13px; }
.auth-secret code { display: block; margin-top: 8px; padding: 10px 12px; background: #f3f5f0; border-radius: 8px; font-size: 13px; letter-spacing: .08em; word-break: break-all; }

@media (max-width: 480px) {
  .auth-card { padding: 26px 20px 22px; }
  .auth-steps li { padding-left: 0; padding-top: 34px; }
}
