.first-access-screen {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 15% 15%, rgba(53, 177, 106, 0.22), transparent 34%),
    linear-gradient(145deg, #f5faf6 0%, #e6f5eb 100%);
}

.first-access-screen[hidden] {
  display: none;
}

html.first-access-route #appShell,
html.first-access-active #appShell {
  visibility: hidden;
}

.first-access-card {
  width: min(100%, 460px);
  padding: clamp(28px, 6vw, 48px);
  border: 1px solid rgba(11, 111, 65, 0.16);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 70px rgba(8, 80, 47, 0.18);
}

.first-access-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 92px;
  margin-bottom: 22px;
}

.first-access-brand img {
  display: block;
  width: min(210px, 68vw);
  max-height: 92px;
  object-fit: contain;
}

.first-access-card .eyebrow {
  margin: 0 0 8px;
  color: #087640;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.first-access-card h1 {
  margin: 0;
  color: #123a29;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.8rem, 5vw, 2.45rem);
  line-height: 1.08;
}

.first-access-intro {
  margin: 12px 0 28px;
  color: #5a7065;
  line-height: 1.5;
}

.first-access-field {
  display: grid;
  gap: 8px;
  margin-top: 16px;
  color: #234b38;
  font-size: 0.92rem;
  font-weight: 700;
}

.first-access-field input {
  width: 100%;
  min-height: 50px;
  padding: 0 15px;
  border: 1px solid #bfd8c8;
  border-radius: 12px;
  background: #fff;
  color: #153b2a;
  font: inherit;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.first-access-field input:focus {
  border-color: #15915a;
  box-shadow: 0 0 0 4px rgba(21, 145, 90, 0.14);
}

.first-access-submit {
  width: 100%;
  min-height: 52px;
  margin-top: 26px;
  border: 0;
  border-radius: 12px;
  background: #087640;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  transition: background 160ms ease, transform 160ms ease, opacity 160ms ease;
}

.first-access-submit:hover:not(:disabled) {
  background: #065b32;
  transform: translateY(-1px);
}

.first-access-submit:disabled {
  cursor: wait;
  opacity: 0.58;
}

.first-access-message {
  min-height: 1.4em;
  margin: 14px 0 0;
  color: #b42318;
  font-size: 0.9rem;
  line-height: 1.45;
}

.first-access-message.is-success {
  color: #087640;
}

@media (max-width: 520px) {
  .first-access-screen {
    padding: 14px;
  }

  .first-access-card {
    padding: 28px 22px;
    border-radius: 22px;
  }
}
