:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ink: #17201b;
  --muted: #68746d;
  --line: #d8e0da;
  --accent: #166c63;
  --accent-hover: #11574f;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  background: #d8dfdf;
}

button {
  font: inherit;
}

.access-page {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: #d8dfdf;
}

.access-background {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 58%;
}

.access-page::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(135deg, rgba(5, 22, 18, 0.36), rgba(5, 22, 18, 0.46));
  pointer-events: none;
}

.access-card {
  position: relative;
  z-index: 1;
  width: min(100%, 440px);
  padding: 44px 42px 30px;
  border: 1px solid rgba(184, 198, 188, 0.82);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow:
    0 28px 70px rgba(24, 43, 35, 0.12),
    0 2px 8px rgba(24, 43, 35, 0.04);
}

.access-brand {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  background: var(--accent);
  box-shadow: 0 12px 25px rgba(22, 108, 99, 0.24);
}

.access-brand svg {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.access-copy {
  margin-top: 30px;
}

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

h1 {
  margin: 0;
  font-size: clamp(30px, 8vw, 38px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.access-description {
  margin: 13px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.access-form {
  margin-top: 34px;
}

.pin-field {
  display: grid;
  gap: 8px;
}

.pin-label {
  color: #46514a;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.02em;
}

.pin-control {
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f7faf7;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.pin-control:focus-within {
  border-color: rgba(22, 108, 99, 0.72);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(22, 108, 99, 0.11);
}

.pin-control svg {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  fill: none;
  stroke: #718079;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pin-control input {
  width: 100%;
  min-width: 0;
  padding: 12px 0;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font: inherit;
  font-size: 18px;
  font-weight: 750;
  letter-spacing: 0.22em;
}

.remember-control {
  margin: 15px 0 20px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
  cursor: pointer;
  user-select: none;
}

.remember-control input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.remember-box {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid #bdc9c1;
  border-radius: 6px;
  color: transparent;
  background: #fff;
  transition: border-color 150ms ease, background 150ms ease, color 150ms ease, box-shadow 150ms ease;
}

.remember-box svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.remember-control input:checked + .remember-box {
  border-color: var(--accent);
  color: #fff;
  background: var(--accent);
}

.remember-control input:focus-visible + .remember-box {
  box-shadow: 0 0 0 4px rgba(22, 108, 99, 0.13);
}

.access-button {
  width: 100%;
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: var(--accent);
  box-shadow: 0 12px 25px rgba(22, 108, 99, 0.18);
  font-size: 15px;
  font-weight: 750;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.access-button:hover {
  transform: translateY(-1px);
  background: var(--accent-hover);
  box-shadow: 0 15px 30px rgba(22, 108, 99, 0.24);
}

.access-button:active {
  transform: translateY(0);
}

.access-button:focus-visible {
  outline: 4px solid rgba(22, 108, 99, 0.2);
  outline-offset: 3px;
}

.access-button:disabled {
  opacity: 0.72;
  cursor: wait;
  transform: none;
}

.access-button svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.access-status {
  min-height: 20px;
  margin: 10px 0 0;
  color: #a03333;
  font-size: 13px;
  text-align: center;
}

.access-footer {
  margin-top: 20px;
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-top: 1px solid var(--line);
  color: #7f8a84;
  font-size: 12px;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2e8b68;
  box-shadow: 0 0 0 4px rgba(46, 139, 104, 0.11);
}

@media (max-width: 520px) {
  .access-page {
    padding: 16px;
  }

  .access-card {
    padding: 36px 28px 26px;
    border-radius: 18px;
  }

}

@media (prefers-reduced-motion: reduce) {
  .access-button {
    transition: none;
  }
}
