/* Penultima login skin — "06": deep forest-green, cream/ivory, copper accent.
   Structure mirrors rogerbrill's app-v3.css (same .stage/.bg-rotator/.bg so the
   rotating lodge photos fill the viewport identically); only the brand mark,
   button, and modal are re-coloured. Each site owns its own copy of this file
   and its own /bg images, so either brand can restyle without touching the other. */
:root {
  color-scheme: dark;
  --ink: #0e1c14;        /* deep forest green */
  --cream: #f3ede0;      /* ivory text */
  --copper: #b07b42;     /* copper accent */
  --green-panel: #122a1e;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
}

body {
  font-family: "Georgia", "Times New Roman", serif;
  background: var(--ink);
}

.stage {
  position: relative;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

/* The images ARE the whole page — full-bleed, cross-fading. */
.bg-rotator {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity 1.8s ease-in-out;
}

.bg.is-active {
  opacity: 1;
}

/* Deep-green wash, bottom-left, so the cream wordmark stays legible. */
.stage::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background: radial-gradient(
    85% 75% at 10% 92%,
    rgba(5, 18, 11, 0.72),
    rgba(5, 18, 11, 0) 60%
  );
}

/* Brand mark — bottom-left: classical arch emblem over a spaced wordmark. */
.brand {
  position: absolute;
  bottom: clamp(20px, 3.5vw, 56px);
  left: clamp(20px, 3.5vw, 56px);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  color: var(--cream);
  filter: drop-shadow(0 12px 34px rgba(0, 0, 0, 0.7));
}

.brand-mark {
  width: clamp(70px, 9vw, 118px);
  height: auto;
  color: var(--cream);
  opacity: 0.92;
}

.brand-word {
  font-family: "Georgia", "Times New Roman", serif;
  font-size: clamp(22px, 3vw, 40px);
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--cream);
  padding-left: 0.1em;
}

/* Login button — bottom center, copper-trimmed glass. */
.login-btn {
  position: absolute;
  bottom: clamp(28px, 4vw, 56px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  padding: 16px 44px;
  font-family: "Georgia", "Times New Roman", serif;
  font-size: clamp(18px, 1.6vw, 24px);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream);
  background: rgba(14, 28, 20, 0.6);
  border: 2px solid var(--copper);
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background 0.2s ease, transform 0.1s ease;
}
.login-btn:hover {
  background: rgba(176, 123, 66, 0.85);
  color: #0e1c14;
}
.login-btn:active {
  transform: translateX(-50%) scale(0.97);
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(5, 14, 9, 0.62);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  padding: 20px;
}
.modal-overlay.is-open {
  display: flex;
}

.modal {
  position: relative;
  width: 100%;
  max-width: 380px;
  background: var(--green-panel);
  border: 1px solid rgba(176, 123, 66, 0.4);
  border-radius: 16px;
  padding: 32px 28px 28px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.65);
}

.modal h2 {
  margin: 0 0 20px;
  font-size: 1.35rem;
  color: var(--cream);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: none;
  border: none;
  color: rgba(243, 237, 224, 0.6);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}
.modal-close:hover {
  color: var(--cream);
}

.modal label {
  display: block;
  margin: 0 0 6px;
  font-size: 0.85rem;
  font-family: system-ui, "Segoe UI", sans-serif;
  color: rgba(243, 237, 224, 0.78);
}
.modal input {
  width: 100%;
  margin: 0 0 16px;
  padding: 11px 13px;
  font: inherit;
  color: var(--cream);
  background: #0c1f15;
  border: 1px solid rgba(243, 237, 224, 0.16);
  border-radius: 9px;
}
.modal input:focus {
  outline: none;
  border-color: var(--copper);
}

.modal-hint {
  margin: 0 0 18px;
  font-size: 0.8rem;
  font-family: system-ui, "Segoe UI", sans-serif;
  color: rgba(243, 237, 224, 0.5);
}

.modal-submit {
  width: 100%;
  padding: 12px;
  font: inherit;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #0e1c14;
  background: var(--copper);
  border: none;
  border-radius: 9px;
  cursor: pointer;
}
.modal-submit:hover {
  background: #c98f54;
}
.modal-submit:disabled {
  opacity: 0.6;
  cursor: default;
}

.modal-message {
  margin: 14px 0 0;
  font-size: 0.85rem;
  font-family: system-ui, "Segoe UI", sans-serif;
  min-height: 1.1em;
}
.modal-message.is-error {
  color: #e9a8a0;
}
.modal-message.is-success {
  color: #a7d7b4;
}
