:root {
  --field: #121311; --gun: #1F2226; --bone: #F4EFE4;
  --fat: #2E5530; --lfat: #548D57; --coy: #81613C; --red: #B0352B;
  --muted: #BDB8AB; --line: #34383D;
}
* { box-sizing: border-box; margin: 0; }
html, body { min-height: 100%; }
body {
  background: var(--field); color: var(--bone);
  font-family: "Atkinson Hyperlegible", system-ui, sans-serif;
  font-size: 17px; line-height: 1.45;
  -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%;
}
.screen {
  min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column; justify-content: center;
  padding: max(32px, env(safe-area-inset-top)) 24px max(32px, env(safe-area-inset-bottom));
  max-width: 440px; margin: 0 auto;
}
.brand { text-align: center; margin-bottom: 36px; }
.ring {
  width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%;
  border: 3px solid #3B4A3C; display: grid; place-items: center;
  font-family: Anton, Impact, sans-serif; font-size: 34px; color: var(--bone);
}
.brand .logo { display: block; width: 96px; height: auto; margin: 0 auto 18px; }
.wordmark {
  font-family: Anton, Impact, sans-serif; font-weight: 400; text-transform: uppercase;
  font-size: clamp(34px, 10vw, 46px); line-height: 1.02; letter-spacing: .02em;
}
.wordmark span { color: var(--lfat); }
.slogan { color: var(--muted); margin-top: 10px; font-size: 16px; }

h2 { font-family: Anton, Impact, sans-serif; font-weight: 400; text-transform: uppercase;
     font-size: 26px; letter-spacing: .02em; margin-bottom: 6px; }
.lead { color: var(--muted); margin-bottom: 20px; font-size: 16px; }

.group { background: var(--gun); border-radius: 12px; overflow: hidden; margin-bottom: 16px; }
.field { display: block; padding: 10px 16px 12px; }
.field + .field { border-top: 1px solid var(--line); }
.field span { display: block; font-size: 13px; color: var(--muted); margin-bottom: 2px; }
.field input {
  width: 100%; background: transparent; border: 0; outline: 0; color: var(--bone);
  font: inherit; font-size: 17px; padding: 2px 0;
}
.field:focus-within { box-shadow: inset 3px 0 0 var(--lfat); }

.btn {
  display: block; width: 100%; border: 0; border-radius: 12px; cursor: pointer;
  background: var(--fat); color: var(--bone); font: inherit; font-weight: 700; font-size: 17px;
  padding: 15px 16px; text-align: center; text-decoration: none;
}
.btn:active { background: #264727; }
.btn[disabled] { opacity: .55; cursor: default; }
.btn.secondary { background: var(--gun); }
.link {
  display: block; margin: 18px auto 0; background: none; border: 0; cursor: pointer;
  color: var(--lfat); font: inherit; font-size: 16px; text-decoration: underline; text-underline-offset: 3px;
}

.notice {
  background: var(--gun); border-left: 4px solid var(--coy); border-radius: 8px;
  padding: 12px 14px; margin-bottom: 18px; font-size: 15px;
}
.notice.error { border-left-color: var(--red); }
.notice.ok { border-left-color: var(--lfat); }
[hidden] { display: none !important; }

/* Browser autofill (e.g. saved email): keep the field dark instead of the pale highlight */
.field input:-webkit-autofill,
.field input:-webkit-autofill:hover,
.field input:-webkit-autofill:focus,
.field input:autofill {
  -webkit-text-fill-color: var(--bone);
  caret-color: var(--bone);
  -webkit-box-shadow: 0 0 0 1000px var(--gun) inset;
  box-shadow: 0 0 0 1000px var(--gun) inset;
  transition: background-color 9999s ease-out 0s;
}
