:root {
  --glass-blur: 14px;
  --glass-tint: rgba(247, 240, 232, 0.55);
  --glass-tint-solid: rgba(247, 240, 232, 0.9);
  --disabled-bg: #E9E7E4;
  --disabled-fg: #6A6763;
}

.lj-auth[hidden],
.lj-auth [hidden] {
  display: none !important;
}

.lj-auth-scrim {
  background: var(--glass-tint);
  -webkit-backdrop-filter: blur(var(--glass-blur));
  backdrop-filter: blur(var(--glass-blur));
}

@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .lj-auth-scrim { background: var(--glass-tint-solid); }
}

@media (prefers-reduced-transparency: reduce) {
  .lj-auth-scrim { background: var(--glass-tint-solid); -webkit-backdrop-filter: none; backdrop-filter: none; }
}

#lj-auth-submit:disabled:not([aria-busy="true"]) {
  color: var(--disabled-fg);
  background: var(--disabled-bg);
  box-shadow: none;
  opacity: 1;
  cursor: default;
}

#lj-auth-submit[aria-busy="true"] {
  background-color: #755d3b;
  box-shadow: none;
  opacity: 1;
  cursor: default;
}

.lj-auth {
  perspective: 1800px;
}

#lj-legal-text:focus {
  outline: none;
}

#lj-auth-card.lj-auth-flip-out {
  animation: lj-auth-flip-out 0.38s cubic-bezier(0.55, 0, 0.75, 0.25) both;
}

#lj-auth-card.lj-auth-flip-in {
  animation: lj-auth-flip-in 0.56s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes lj-auth-flip-out { from { transform: rotateX(0deg); } to { transform: rotateX(90deg); } }
@keyframes lj-auth-flip-in { from { transform: rotateX(-90deg); } to { transform: rotateX(0deg); } }

.auth-input-card.lj-auth-instant {
  transition: none;
}

.lj-auth-message {
  background: #f6dde0;
  color: #8b3a3a;
  border: 1px solid rgba(139, 58, 58, 0.18);
}

.lj-auth-message.is-paused {
  background: #f1e7da;
  color: #5a4529;
  border-color: rgba(117, 93, 59, 0.2);
}

.lj-auth-message.is-success {
  background: #e6efe3;
  color: #4a6b3f;
  border-color: rgba(74, 107, 63, 0.18);
}

.lj-auth-spinner {
  display: inline-block;
  width: 0.8em;
  height: 0.8em;
  margin-left: 0.5em;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: lj-auth-spin 0.8s linear infinite;
  vertical-align: middle;
}

@keyframes lj-auth-spin { to { transform: rotate(360deg); } }

#lj-auth-resend:disabled {
  text-decoration: none;
  font-weight: 400;
  color: var(--disabled-fg);
  cursor: default;
}

.lj-session-banner {
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  z-index: 55;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1.5rem;
  background: rgba(225, 206, 187, 0.96);
  color: #5a4529;
  font-family: var(--font-body);
  font-size: 0.85rem;
  border-bottom: 1px solid rgba(196, 168, 130, 0.4);
}

.lj-session-banner button {
  background: none;
  border: 0;
  font-size: 1.25rem;
  line-height: 1;
  color: #755d3b;
  cursor: pointer;
}

#lj-auth button[data-lj-auth-close].rounded-full {
  transition: transform 0.3s, background-color 0.2s, border-color 0.2s;
}

#lj-auth-front button[data-lj-auth-close].rounded-full {
  border-color: rgba(196, 168, 130, 0.4);
  background: #fff;
}

#lj-auth-front button[data-lj-auth-close].rounded-full:hover {
  background: #f7f0e8;
}

#lj-auth-back button[data-lj-auth-close].rounded-full:hover {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.08);
}

#lj-auth button[data-lj-auth-close].rounded-full:hover {
  transform: rotate(90deg);
}

#lj-auth button[data-lj-auth-close].rounded-full:active {
  transform: rotate(90deg) scale(0.96);
}

.lj-gate {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.5rem;
  overflow: hidden;
  border-radius: inherit;
  background: #f7f0e8;
  animation: lj-gate-in 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.lj-gate::before,
.lj-gate::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(117, 93, 59, 0.12);
  pointer-events: none;
}

.lj-gate::before {
  top: -7rem;
  right: -7rem;
  width: 20rem;
  height: 20rem;
}

.lj-gate::after {
  bottom: -5rem;
  left: -5rem;
  width: 14rem;
  height: 14rem;
}

.lj-gate.is-unlocking {
  animation: lj-gate-out 0.45s cubic-bezier(0.55, 0, 0.75, 0.25) both;
  pointer-events: none;
}

.lj-gate-pane {
  position: relative;
  width: 100%;
  max-width: 26rem;
  max-height: 100%;
  margin: auto;
  overflow-y: auto;
  scrollbar-width: none;
  text-align: center;
  color: #3d2b1a;
  animation: lj-gate-rise 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.lj-gate-pane::-webkit-scrollbar {
  display: none;
}

.lj-gate-lock {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 1.1rem;
  border-radius: 50%;
  color: #755d3b;
  background: #fff;
  border: 1px solid rgba(117, 93, 59, 0.25);
}

.lj-gate-eyebrow {
  margin-bottom: 0.8rem;
  font-size: 0.62rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #755d3b;
}

.lj-gate-title {
  margin-bottom: 0.9rem;
  font-size: 1.75rem;
  line-height: 1.2;
  color: #3d2b1a;
  text-wrap: balance;
}

.lj-gate-lead {
  margin-bottom: 1.5rem;
  font-size: 0.82rem;
  line-height: 1.6;
  color: #755d3b;
}

.lj-gate-field {
  display: block;
  text-align: left;
}

.lj-gate-field + .lj-gate-field {
  margin-top: 0.9rem;
}

.lj-gate-label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #755d3b;
}

.lj-gate-input {
  width: 100%;
  padding: 0.85rem 1rem;
  font-size: 0.9rem;
  color: #3d2b1a;
  border-radius: 0.75rem;
  border: 1px solid rgba(196, 168, 130, 0.8);
  background: #fff;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.lj-gate-input::placeholder {
  color: #816a4e;
}

.lj-gate-input:focus {
  border-color: #755d3b;
  box-shadow: 0 0 0 4px rgba(117, 93, 59, 0.12);
}

.lj-gate-message {
  margin-top: 0.75rem;
  padding: 0.6rem 0.9rem;
  font-size: 0.75rem;
  line-height: 1.5;
  text-align: left;
  color: #8b3a3a;
  border-radius: 0.75rem;
  border: 1px solid rgba(139, 58, 58, 0.18);
  background: #f6dde0;
}

.lj-gate-button {
  width: 100%;
  margin-top: 1rem;
  padding: 0.85rem 1.5rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: #fff;
  border: 0;
  border-radius: 9999px;
  background: #755d3b;
  box-shadow: 0 12px 30px -15px rgba(61, 43, 26, 0.8);
  cursor: pointer;
  transition: background-color 0.2s;
}

.lj-gate-button:not(:disabled):hover {
  background: #5a4529;
}

.lj-gate-button:disabled:not([aria-busy="true"]) {
  color: var(--disabled-fg);
  background: var(--disabled-bg);
  box-shadow: none;
  cursor: default;
}

.lj-gate-button[aria-busy="true"] {
  box-shadow: none;
  cursor: default;
}

.lj-gate-foot {
  margin-top: 1.4rem;
  font-size: 0.75rem;
  color: #755d3b;
}

.lj-gate-link {
  padding: 0;
  font: inherit;
  font-weight: 600;
  color: inherit;
  border: 0;
  background: none;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: #c4a882;
  cursor: pointer;
}

.lj-gate-link:hover {
  color: #3d2b1a;
}

@keyframes lj-gate-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes lj-gate-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes lj-gate-rise { from { opacity: 0; transform: translateY(14px) scale(0.98); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .lj-auth-spinner { animation-duration: 1.6s; }
  #lj-auth-card.lj-auth-flip-out,
  #lj-auth-card.lj-auth-flip-in,
  .lj-gate,
  .lj-gate.is-unlocking,
  .lj-gate-pane { animation: none; }
  #lj-auth button[data-lj-auth-close].rounded-full:hover,
  #lj-auth button[data-lj-auth-close].rounded-full:active { transform: none; }
}

body.lj-door {
  margin: 0;
  min-height: 100dvh;
  background: transparent;
}

body.lj-door .lj-auth {
  position: relative;
  inset: auto;
  min-height: 100dvh;
  padding: 1rem;
  background: transparent;
}

body.lj-door .lj-auth > button[data-lj-auth-close],
body.lj-door #lj-auth button[data-lj-auth-close] {
  display: none;
}

body.lj-door .lj-session-banner {
  position: sticky;
  top: 0;
}

.lj-logo-aside {
  display: block;
  max-height: 3rem;
  max-width: 11rem;
  width: auto;
  height: auto;
  object-fit: contain;
}

.lj-logo-mobile {
  display: block;
  max-height: 1.6rem;
  max-width: 6rem;
  width: auto;
  height: auto;
  object-fit: contain;
}

#lj-auth.lj-branded #lj-auth-aside {
  color: var(--lj-aside-text);
}

#lj-auth.lj-branded #lj-auth-aside [data-lj-text="aside-eyebrow"],
#lj-auth.lj-branded #lj-auth-aside .border-t p + p {
  color: var(--lj-aside-muted);
}

#lj-auth.lj-branded #lj-auth-aside [data-lj-html="aside-title"] span,
#lj-auth.lj-branded #lj-auth-aside [data-lj-text="aside-lead"],
#lj-auth.lj-branded #lj-auth-aside .border-t p:first-child,
#lj-auth.lj-branded #lj-aside-mark {
  color: var(--lj-aside-accent);
}

#lj-auth.lj-branded:not(.lj-aside-dark) #lj-auth-aside > div[aria-hidden] {
  border-color: rgba(30, 20, 16, 0.08);
}

#lj-auth.lj-branded:not(.lj-aside-dark) #lj-auth-aside .border-t {
  border-color: rgba(30, 20, 16, 0.12);
}

#lj-auth.lj-branded #lj-auth-chip,
#lj-auth.lj-branded #lj-auth-submit:is(:not(:disabled), [aria-busy="true"]),
#lj-auth.lj-branded .lj-gate-button:is(:not(:disabled), [aria-busy="true"]) {
  background-color: var(--lj-accent);
}

#lj-auth.lj-branded #lj-auth-submit:not(:disabled):hover,
#lj-auth.lj-branded .lj-gate-button:not(:disabled):hover {
  background-color: var(--lj-accent-deep);
}

#lj-auth.lj-branded #lj-auth-switch,
#lj-auth.lj-branded #lj-auth-resend,
#lj-auth.lj-branded .lj-gate-link {
  text-decoration-color: var(--lj-accent);
}

#lj-auth.lj-branded #lj-auth-email:focus,
#lj-auth.lj-branded #lj-auth-code:focus,
#lj-auth.lj-branded .lj-gate-input:focus {
  border-color: var(--lj-accent);
}

#lj-auth[data-logo-size="small"] .lj-logo-aside {
  max-height: 2rem;
  max-width: 8rem;
}

#lj-auth[data-logo-size="large"] .lj-logo-aside {
  max-height: 4.5rem;
  max-width: 16rem;
}

#lj-auth[data-logo-position="centre"] #lj-aside-mark {
  align-self: center;
}

#lj-auth[data-logo-position="right"] #lj-aside-mark {
  align-self: flex-end;
}

.lj-logo-aside.lj-plate {
  padding: 0.4rem 0.7rem;
  border-radius: 0.6rem;
  background: #fff;
  box-sizing: content-box;
}

body.lj-door.lj-door-photo {
  background: var(--lj-door-photo) center / cover no-repeat fixed;
}

body.lj-door.lj-door-photo::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.15) 50%, rgba(0, 0, 0, 0.5));
}

body.lj-door.lj-door-photo.lj-veil-none::before {
  background: none;
}

body.lj-door.lj-door-photo.lj-veil-strong::before {
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.7));
}

body.lj-door .lj-auth {
  position: relative;
  z-index: 1;
}
