.auth-body {
  background: var(--petra-ink);
}

.auth-page {
  position: relative;
  isolation: isolate;
  min-height: 100dvh;
  overflow: clip;
  background: var(--petra-ink);
  color: var(--petra-cream);
}

.auth-page::before {
  position: absolute;
  z-index: -2;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(18, 20, 15, 0.94) 0%, rgba(18, 20, 15, 0.68) 48%, rgba(18, 20, 15, 0.18) 100%),
    url('/property-assets/superior-bedroom-1280.webp') center / cover;
  content: "";
  filter: saturate(0.66) contrast(1.06);
}

.auth-page::after {
  position: absolute;
  z-index: -1;
  top: -11rem;
  right: -10rem;
  width: min(48vw, 38rem);
  aspect-ratio: 1;
  border: 1px solid rgba(239, 181, 142, 0.42);
  border-radius: 50%;
  box-shadow: 0 0 0 4rem rgba(212, 111, 77, 0.05);
  content: "";
}

.auth-header {
  border-bottom: 1px solid rgba(255, 248, 240, 0.16);
  background: rgba(18, 20, 15, 0.2);
  backdrop-filter: blur(10px);
}

.auth-header__inner {
  display: flex;
  min-height: 4.75rem;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
}

.auth-header__link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--petra-cream);
  font-size: 0.88rem;
  font-weight: 760;
  text-decoration: none;
  text-underline-offset: 0.3rem;
}

.auth-header__link:hover { text-decoration: underline; }

.auth-main {
  padding-block: clamp(3rem, 9vw, 8.5rem);
}

.auth-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(19rem, 0.88fr);
  align-items: center;
  gap: clamp(2.25rem, 10vw, 10rem);
}

.auth-intro {
  max-width: 34rem;
}

.auth-intro .display {
  max-width: 9ch;
  margin-top: 0.85rem;
  font-size: clamp(3.25rem, 7.4vw, 6.7rem);
}

.auth-intro > p:last-child {
  max-width: 28rem;
  margin: 1.45rem 0 0;
  color: rgba(245, 239, 235, 0.78);
  font-size: clamp(1rem, 1.6vw, 1.16rem);
  line-height: 1.65;
}

.auth-panel {
  width: min(100%, 31rem);
  justify-self: end;
  border: 1px solid rgba(255, 248, 240, 0.55);
  border-top: 0.35rem solid var(--petra-copper);
  border-radius: 1.35rem 0.25rem 1.35rem 0.25rem;
  padding: clamp(1.35rem, 4vw, 2.3rem);
  background: rgba(255, 248, 240, 0.96);
  box-shadow: 0 1.9rem 4.8rem rgba(0, 0, 0, 0.28);
  color: var(--petra-ink);
}

.auth-panel__heading {
  margin-bottom: 1.5rem;
}

.auth-panel__heading h2 {
  margin: 0.55rem 0 0;
  font-family: var(--petra-serif);
  font-size: clamp(1.85rem, 3vw, 2.5rem);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1;
}

.auth-form {
  display: grid;
  gap: 1rem;
}

.auth-field {
  display: grid;
  gap: 0.45rem;
}

.auth-field label {
  color: var(--petra-ink);
  font-size: 0.88rem;
  font-weight: 760;
}

.auth-field label span {
  color: var(--petra-stone);
  font-weight: 520;
}

.auth-field input:not([type="hidden"]) {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(11, 18, 15, 0.25);
  border-radius: var(--petra-radius-sm);
  padding: 0.72rem 0.8rem;
  background: #fff;
  color: var(--petra-ink);
}

.auth-field input:not([type="hidden"]):focus {
  border-color: var(--petra-forest);
  outline: 2px solid rgba(27, 59, 43, 0.18);
  outline-offset: 0;
}

.auth-field__note {
  margin: 0;
  color: var(--petra-stone);
  font-size: 0.82rem;
}

.auth-message {
  min-height: 1.3rem;
  margin: 0;
  color: var(--petra-danger);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.45;
}

.auth-form__submit {
  width: 100%;
  margin-top: 0.3rem;
}

.auth-panel__footer {
  margin: 1.35rem 0 0;
  color: var(--petra-stone);
  font-size: 0.92rem;
}

.auth-panel__footer a {
  color: var(--petra-forest-dark);
  font-weight: 760;
  text-underline-offset: 0.24rem;
}

@media (max-width: 47.99rem) {
  .auth-main { padding-block: clamp(2.25rem, 9vw, 4rem); }

  .auth-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 2.25rem;
  }

  .auth-intro .display {
    max-width: 8.5ch;
    font-size: clamp(3rem, 13.5vw, 4.3rem);
  }

  .auth-panel {
    width: 100%;
    justify-self: stretch;
    border-radius: 1rem 0.25rem 1rem 0.25rem;
  }
}

@media (max-width: 389px) {
  .auth-header__inner { gap: 0.5rem; }

  .auth-header__link { font-size: 0.76rem; }

  .auth-panel { padding: 1.2rem; }
}

/* The account gate belongs to the same quiet booking flow as the calendar.
   Keep the photograph for the home, not behind a credential form. */
.auth-body,
.auth-page { background: var(--petra-paper); color: var(--petra-ink); }
.auth-page::before,
.auth-page::after { display: none; }
.auth-header { border-bottom: 1px solid var(--petra-line); background: var(--petra-cream); backdrop-filter: none; }
.auth-header .brand--light { color: var(--petra-ink); }
.auth-header .language-switcher { grid-column: auto; justify-self: auto; margin: 0; color: var(--petra-ink); }
.auth-header__link { color: var(--petra-ink); font-size: .78rem; font-weight: 620; }
.auth-main { padding-block: clamp(3rem, 8vw, 6rem); }
.auth-layout { grid-template-columns: minmax(0, 1fr) minmax(18rem, 28rem); gap: clamp(2.5rem, 9vw, 8rem); align-items: start; }
.auth-intro .display { margin-top: .55rem; font-size: clamp(2.6rem, 5.8vw, 5.4rem); }
.auth-intro > p:last-child { color: var(--petra-stone); }
.auth-panel { border: 1px solid var(--petra-line); border-top: 1px solid var(--petra-ink); border-radius: 0; background: var(--petra-cream); box-shadow: none; }
.auth-panel .button--light { border-color: var(--petra-ink); background: var(--petra-ink); color: var(--petra-cream); }
.auth-field label { font-weight: 620; }
.auth-panel__footer a { font-weight: 620; }
@media (max-width: 47.99rem) {
  .auth-layout { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .auth-intro .display { font-size: clamp(2.4rem, 12vw, 3.8rem); }
}
