:root {
  color-scheme: light;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  background: #fff;
  color: #0c0c0b;
  --ink: #0c0c0b;
  --muted: #77756f;
  --line: #95958e;
  --soft-line: #dddbd5;
  --green: #326916;
  --lime: #b5e941;
  --lime-hover: #a4d53a;
  --error: #b30c0c;
  --soft-green: #f1f8e6;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { min-height: 100vh; background: #fff; }

.banner {
  position: relative;
  z-index: 20;
  min-height: 38px;
  display: grid;
  place-items: center;
  padding: .55rem 1rem;
  background: #1d4b00;
  color: #fff;
  text-align: center;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: 0;
}

.site-header {
  position: relative;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 12px;
  background: #fff;
  border-bottom: 1px solid #dddbd5;
}
.header-back {
  position: absolute;
  left: 24px;
  top: 24px;
  width: 24px;
  height: 24px;
  color: var(--green);
  text-decoration: none;
}
.header-back::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 5px;
  width: 11px;
  height: 11px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}
.header-title {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 208px;
  height: 34px;
  color: #1d4b00;
  text-decoration: none;
}
.header-title img { display: block; max-width: 100%; max-height: 34px; }
.header-help {
  position: absolute;
  right: 12px;
  top: 24px;
  color: var(--green);
  font-size: .875rem;
  font-weight: 600;
  line-height: 21px;
  text-decoration: none;
}
.header-back:focus-visible,
.header-title:focus-visible,
.header-help:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }

.page-shell {
  min-height: calc(100vh - 72px);
  display: grid;
  place-items: start center;
  padding: 80px 0 64px;
  background: #fff;
}
.card {
  width: 500px;
  min-height: 331px;
  padding: 40px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .12);
}

.screen-header { margin: 0 0 24px; text-align: center; }
.prompt-logo {
  display: block;
  margin: 0 auto 24px;
  object-fit: contain;
}
.prompt-logo-main { display: none; width: 179px; height: 30px; }
.prompt-logo-sms { width: 125px; height: 120px; }
.screen-header h1 {
  margin: 0 0 16px;
  color: var(--ink);
  font-size: 18px;
  line-height: 27px;
  font-weight: 600;
}
.screen-header p {
  margin: 0 auto;
  max-width: 390px;
  color: var(--ink);
  font-size: 14px;
  line-height: 21px;
}
.status {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.status-connecting, .status-offline { color: var(--muted); }
.status-online { color: var(--green); }

.screen-reader-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

form { font-size: 14px; line-height: 14px; }
.field { position: relative; }
.field label {
  position: absolute;
  top: 14px;
  left: 16px;
  z-index: 1;
  display: block;
  margin: 0;
  padding: 1px 6px;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  line-height: 14px;
  font-weight: 400;
  transform-origin: left center;
  transition: top .12s ease, color .12s ease, background-color .12s ease;
  pointer-events: none;
}
.field input:focus + label,
.field input:not(:placeholder-shown) + label,
.field input.is-invalid + label {
  top: -9px;
  background: #fff;
  color: var(--ink);
}
.field input.is-invalid + label { color: var(--error); }
input {
  width: 100%;
  height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  line-height: 17.6px;
}
input:focus { outline: none; border-color: var(--ink); }
input.is-invalid { border-color: var(--error); }
input.is-invalid:focus { border-color: var(--error); }
.password-field input { padding-right: 56px; }
.password-toggle {
  position: absolute;
  top: 0;
  right: 4px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 9999px;
  background: transparent;
  color: var(--green);
  cursor: pointer;
}
.password-toggle::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 15px;
  width: 20px;
  height: 12px;
  border: 2px solid currentColor;
  border-radius: 50%;
}
.password-toggle::after {
  content: "";
  position: absolute;
  left: 19px;
  top: 20px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.password-toggle.is-visible {
  background:
    linear-gradient(
      135deg,
      transparent 46%,
      currentColor 47%,
      currentColor 53%,
      transparent 54%
    );
}
.password-toggle:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
button.primary {
  width: 100%;
  min-height: 44px;
  margin-top: 24px;
  padding: 4px 16px;
  border: 0;
  border-radius: 9999px;
  background: var(--lime);
  color: #1d4b00;
  font: inherit;
  font-size: 14px;
  line-height: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
button.primary:hover { background: var(--lime-hover); }
button.primary:disabled { cursor: wait; opacity: .62; }

.form-error, .inline-error { color: var(--error); font-size: 12px; line-height: 16.8px; }
.form-error { display: flex; align-items: flex-start; gap: 6px; margin: 8px 0 16px; }
.form-error:empty { display: none; }
.form-error:not(:empty)::before {
  content: "!";
  display: inline-grid;
  place-items: center;
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--error);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}
.inline-error { position: relative; margin: 7px 0 0; padding-left: 22px; }
.inline-error::before { content: "!"; position: absolute; left: 0; top: 0; font-weight: 700; }
.data-note, .privacy-footer { color: var(--muted); font-size: .73rem; line-height: 1.45; text-align: center; }
.data-note { margin: 22px 0 0; }
.privacy-footer { margin-top: 34px; padding-top: 18px; border-top: 1px solid #eceae6; }

.account-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  margin-bottom: 18px;
  padding: 11px 12px;
  border: 1px solid #dddbd5;
  border-radius: 8px;
  font-size: .875rem;
}
.account-row-static { justify-content: flex-start; font-weight: 600; }
.authenticator-row {
  display: flex;
  align-items: center;
  min-height: 49px;
  margin: 0 0 7px;
  padding: 14px 16px;
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  color: var(--ink);
  font-size: 16px;
  line-height: 17.6px;
}
.limit-alert {
  margin: 0 0 16px;
  padding: 14px 16px;
  border-radius: 3px;
  background: var(--error);
  color: #fff;
  font-size: 16px;
  line-height: 20px;
}
.limit-alert p { margin: 0; }
.text-link { color: var(--green); font-weight: 600; text-decoration: underline; }
.auth-footer {
  margin: 16px 0 0;
  color: var(--ink);
  text-align: left;
  font-size: 14px;
  line-height: 14px;
}
.auth-footer a { color: var(--green); text-decoration: underline; }
.edit-identifier { border: 0; background: transparent; padding: 0; font: inherit; cursor: pointer; }
.edit-identifier:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.standalone-link { display: inline-block; margin: 12px 0 0; font-size: 14px; line-height: 21px; }
.pause-note {
  margin: 22px 0 0;
  padding: 12px 14px;
  border-left: 3px solid var(--green);
  border-radius: 4px;
  background: var(--soft-green);
  color: #274619;
  font-size: .78rem;
  line-height: 1.5;
}
.waiting { margin: 16px 0 0; color: var(--muted); text-align: center; font-size: .8rem; }
.lead { margin: 0; color: var(--muted); text-align: center; font-size: .9rem; line-height: 1.6; }

.code-input { text-align: left; font-size: 16px; letter-spacing: 0; }
.resend-copy { margin: 18px 0 0; text-align: center; font-size: 14px; line-height: 21px; }
.resend-link {
  display: inline;
  border: 0;
  background: transparent;
  padding: 0;
  font: inherit;
  cursor: pointer;
}
.redirect-status {
  display: grid;
  gap: 14px;
  justify-items: center;
  padding: 24px 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  line-height: 20px;
}
.success-mark {
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  margin: 28px auto 0;
  border-radius: 50%;
  background: var(--soft-green);
  color: var(--green);
  font-size: 2.5rem;
  font-weight: 600;
}
.redirect-status p { margin: 0; }
.redirect-track {
  width: 258px;
  max-width: 100%;
  height: 3px;
  background: #e9e9e9;
  overflow: hidden;
}
.redirect-track span {
  display: block;
  width: 100%;
  height: 100%;
  background: #2f6feb;
  transition: width 1s linear;
}
.redirect-link {
  color: #2f57c7;
  font-size: 14px;
  line-height: 20px;
  text-decoration: none;
}
.loading-shell { min-height: 330px; display: grid; place-items: center; align-content: center; gap: 24px; text-align: center; }
.loading-spinner {
  width: 46px;
  height: 46px;
  border: 4px solid #e0ddd6;
  border-top-color: var(--green);
  border-radius: 50%;
}

@media (max-width: 600px) {
  .site-header { height: 50px; padding: 12px; }
  .header-back { left: 12px; top: 12px; }
  .header-title { width: 208px; height: 26px; }
  .header-title img { max-height: 26px; }
  .header-help { right: 12px; top: 12px; }
  .page-shell { min-height: calc(100vh - 50px); padding: 0 40px 40px; place-items: start center; }
  .card { width: 100%; min-height: 0; padding: 40px 0 0; border-radius: 0; box-shadow: none; }
  .prompt-logo-main { display: block; margin-top: 45px; }
  .screen-header { margin-bottom: 24px; }
  .screen-header h1 { font-size: 18px; line-height: 27px; }
}

@media (prefers-reduced-motion: no-preference) {
  .step:not([hidden]) { animation: appear .18s ease-out; }
  .loading-spinner { animation: spin .8s linear infinite; }
  @keyframes appear { from { opacity: 0; transform: translateY(4px); } }
  @keyframes spin { to { transform: rotate(360deg); } }
}
