:root {
  color: #18312f;
  background: #fffae9;
  font: 100%/1.5 -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
  font-optical-sizing: auto;
  --text: #18312f;
  --secondary: #64726e;
  --green: #007f78;
  --orange: #ec6f02;
  --orange-hover: #e75402;
  --beige: #fffae9;
  --line: rgba(22, 69, 63, 0.14);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

* { box-sizing: border-box; }

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

body { margin: 0; color: var(--text); background: var(--beige); }

button, input { font: inherit; }

.login-shell {
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  grid-template-columns: minmax(0, 1.18fr) minmax(27rem, 0.82fr);
}

.park-visual {
  position: relative;
  min-height: 100%;
  overflow: hidden;
  background: #dcebe5;
}

.park-visual::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent 55%, rgba(8, 38, 34, 0.48));
  pointer-events: none;
}

.park-visual > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.park-caption {
  position: absolute;
  z-index: 1;
  bottom: 2rem;
  left: 2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: #fff;
  font-size: 0.84rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  text-shadow: 0 0.1rem 0.6rem rgba(0, 0, 0, 0.3);
}

.location-dot {
  width: 0.55rem;
  height: 0.55rem;
  border: 0.12rem solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.16);
}

.login-content {
  display: grid;
  place-items: center;
  padding: clamp(2rem, 5vw, 5rem);
  background:
    radial-gradient(circle at 100% 0, rgba(55, 170, 134, 0.12), transparent 23rem),
    var(--beige);
}

.login-panel { width: min(100%, 25rem); }

.login-brand {
  display: grid;
  align-items: center;
  grid-template-columns: 3.5rem minmax(0, 1fr);
  gap: 0.85rem;
  margin-bottom: clamp(3rem, 8vh, 5.5rem);
}

.login-brand img { display: block; width: 3.5rem; height: 3.5rem; object-fit: contain; }

.eyebrow, .brand-title, .login-heading p, .privacy-note { margin: 0; }

.eyebrow {
  color: var(--secondary);
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.brand-title {
  margin-top: 0.05rem;
  font-size: 1rem;
  font-weight: 750;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.login-heading { margin-bottom: 1.8rem; }

.login-heading .trip-period {
  margin-bottom: 0.55rem;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 0.65rem;
  font-size: clamp(2rem, 4vw, 2.65rem);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.login-heading > p:last-child { max-width: 22rem; color: var(--secondary); font-size: 0.94rem; }

.login-error {
  margin: 0 0 1rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid rgba(166, 60, 57, 0.18);
  border-radius: 0.9rem;
  color: #873c36;
  background: rgba(255, 239, 236, 0.82);
  font-size: 0.84rem;
  font-weight: 600;
}

.login-form { display: grid; gap: 0.55rem; }

.login-form label {
  margin-top: 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
}

.field-wrap { position: relative; }

.field-wrap > svg {
  position: absolute;
  top: 50%;
  left: 0.95rem;
  width: 1.1rem;
  height: 1.1rem;
  transform: translateY(-50%);
  fill: none;
  stroke: #71817d;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

.field-wrap input {
  width: 100%;
  min-height: 3.25rem;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  outline: none;
  padding: 0.75rem 1rem 0.75rem 2.85rem;
  color: var(--text);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 0.15rem 0.55rem rgba(28, 68, 60, 0.035);
  transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.password-field input { padding-right: 3rem; }

.field-wrap input:focus {
  border-color: rgba(0, 127, 120, 0.62);
  background: #fff;
  box-shadow: 0 0 0 0.22rem rgba(0, 127, 120, 0.12);
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 0.55rem;
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  transform: translateY(-50%);
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #71817d;
  background: transparent;
  cursor: pointer;
  transition: color 160ms ease, background-color 160ms ease;
}

.password-toggle svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.password-toggle:focus-visible, .login-button:focus-visible {
  outline: 0.2rem solid rgba(0, 127, 120, 0.32);
  outline-offset: 0.15rem;
}

.login-button {
  display: flex;
  min-height: 3.25rem;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  margin-top: 1rem;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: var(--orange);
  box-shadow: 0 0.7rem 1.8rem rgba(196, 82, 2, 0.2);
  font-weight: 750;
  cursor: pointer;
  transition: transform 140ms var(--ease-out), background-color 180ms ease, box-shadow 180ms ease;
}

.login-button svg {
  width: 1.05rem;
  height: 1.05rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.login-button:active { transform: scale(0.97); }

.login-button[aria-busy="true"] { cursor: wait; opacity: 0.72; }

.privacy-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 1.35rem;
  color: var(--secondary);
  font-size: 0.75rem;
}

.privacy-note svg {
  width: 0.95rem;
  height: 0.95rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (hover: hover) and (pointer: fine) {
  .password-toggle:hover { color: var(--green); background: rgba(0, 127, 120, 0.08); }
  .login-button:hover { background: var(--orange-hover); box-shadow: 0 0.85rem 2rem rgba(196, 82, 2, 0.26); }
}

@media (max-width: 48rem) {
  .login-shell { grid-template-columns: 1fr; grid-template-rows: minmax(13rem, 34svh) 1fr; }
  .park-caption { bottom: 1.2rem; left: 1.2rem; }
  .login-content { align-items: start; padding: 1.5rem 1.25rem 2.5rem; }
  .login-panel { width: min(100%, 30rem); }
  .login-brand { margin-bottom: 2.4rem; }
}

@media (max-width: 25rem) {
  .login-shell { grid-template-rows: 11rem 1fr; }
  .login-content { padding-inline: 1rem; }
  .login-brand { grid-template-columns: 3rem minmax(0, 1fr); gap: 0.65rem; }
  .login-brand img { width: 3rem; height: 3rem; }
  .brand-title { font-size: 0.92rem; }
  h1 { font-size: 1.9rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
