:root {
  color-scheme: light;
  --access-ink: #17231c;
  --access-muted: #637067;
  --access-green: #1f6945;
  --access-green-dark: #154a31;
  --access-line: #dce5de;
  --access-bg: #f3f7f3;
  --access-danger: #9b2c2c;
}

* { box-sizing: border-box; }

body.access-page {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: radial-gradient(circle at 50% 0, #fff 0, var(--access-bg) 55%);
  color: var(--access-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.access-shell {
  width: min(100% - 32px, 460px);
  margin: 0 auto;
  padding: max(32px, env(safe-area-inset-top)) 0 max(28px, env(safe-area-inset-bottom));
}

.access-brand {
  display: block;
  width: fit-content;
  margin: 0 auto 24px;
  text-decoration: none;
}

.access-brand img { display: block; border-radius: 16px; }

.access-card {
  padding: 28px;
  border: 1px solid var(--access-line);
  border-radius: 22px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 18px 48px rgba(27, 63, 40, .09);
}

.access-eyebrow {
  margin: 0 0 8px;
  color: var(--access-green);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.access-card h1 { margin: 0; font-size: clamp(28px, 8vw, 36px); line-height: 1.12; }
.access-intro { margin: 14px 0 22px; color: var(--access-muted); line-height: 1.55; }
.access-form { display: grid; gap: 10px; }
.access-form label { font-size: 14px; font-weight: 750; }

.access-form input {
  width: 100%;
  min-height: 52px;
  border: 1px solid #bdc9c0;
  border-radius: 12px;
  padding: 0 14px;
  color: var(--access-ink);
  background: #fff;
  font: inherit;
  font-size: 16px;
}

.access-form input:focus { outline: 3px solid rgba(31, 105, 69, .18); border-color: var(--access-green); }
.access-form .access-code { text-align: center; font-size: 25px; font-weight: 800; letter-spacing: .28em; }

.access-form button,
.access-button-link {
  display: inline-flex;
  min-height: 52px;
  margin-top: 6px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 12px;
  padding: 0 18px;
  background: var(--access-green);
  color: #fff;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.access-form button:hover,
.access-button-link:hover { background: var(--access-green-dark); }
.access-alert, .access-success { margin: 0 0 18px; border-radius: 11px; padding: 12px 14px; line-height: 1.45; }
.access-alert { border: 1px solid #efc8c8; background: #fff4f4; color: var(--access-danger); }
.access-success { border: 1px solid #b8dfc8; background: #effaf3; color: var(--access-green-dark); }
.access-privacy, .access-help { color: var(--access-muted); font-size: 13px; line-height: 1.5; }
.access-privacy { margin: 18px 0 0; }
.access-help { margin: 18px 12px 0; text-align: center; }
.access-secondary-form { margin-top: 17px; text-align: center; }
.access-link-button { border: 0; padding: 7px; background: transparent; color: var(--access-green); font: inherit; font-weight: 750; text-decoration: underline; cursor: pointer; }
.access-back { display: block; margin-top: 8px; color: var(--access-muted); font-size: 14px; text-align: center; }

@media (max-width: 420px) {
  .access-shell { width: min(100% - 22px, 460px); padding-top: 22px; }
  .access-card { padding: 23px 19px; border-radius: 18px; }
}
