:root {
  color-scheme: light;
  --white: #fffdf8;
  --paper: #fffaf2;
  --champagne: #edd9a0;
  --gold: #c8952f;
  --deep-gold: #8b621b;
  --ink: #241f19;
  --muted: #756b60;
  --error-bg: rgba(255, 242, 238, 0.96);
  --error-border: rgba(224, 174, 164, 0.92);
  --error-text: #8a342c;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  overflow: hidden;
  background: #201c17;
  color: var(--white);
  font-family: "Montserrat", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body::before {
  z-index: -2;
  background: url("/background.png") center center / cover no-repeat;
}

body::after {
  z-index: -1;
  background:
    linear-gradient(180deg, transparent 54%, rgba(25, 21, 17, 0.07) 68%, rgba(255, 250, 242, 0.18) 82%, rgba(255, 250, 242, 0.82) 100%),
    linear-gradient(90deg, rgba(19, 16, 13, 0.18), transparent 44%);
}

button,
input { font: inherit; }

.page-shell {
  position: relative;
  display: grid;
  min-height: 100dvh;
  align-items: end;
  padding: clamp(32px, 5.5vw, 78px);
}

.page-shell::before {
  content: "";
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  height: clamp(240px, 36vh, 410px);
  pointer-events: none;
  background: linear-gradient(180deg, transparent 0%, rgba(255, 250, 242, 0.14) 32%, rgba(255, 250, 242, 0.58) 72%, rgba(255, 250, 242, 0.92) 100%);
}

.access-panel {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(100%, 410px);
  gap: 18px;
  margin-bottom: clamp(6px, 1.6vh, 20px);
}

.event-heading {
  width: max-content;
  max-width: 100%;
  text-shadow: 0 2px 18px rgba(15, 12, 9, 0.7), 0 1px 2px rgba(15, 12, 9, 0.8);
}

.event-heading h1 {
  display: flex;
  align-items: baseline;
  gap: 0.18em;
  margin: 0;
  white-space: nowrap;
  color: var(--white);
  font-family: "Cormorant Garamond", ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
  font-size: clamp(2.7rem, 4.6vw, 4.6rem);
  font-weight: 700;
  line-height: 0.88;
  letter-spacing: 0;
}

.event-heading h1 em {
  color: var(--white);
  font-size: 0.66em;
  font-style: italic;
  font-weight: 600;
}

.date {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 11px 0 0;
  color: var(--champagne);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.13em;
}

.date::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
}

.login-form {
  display: grid;
  width: min(100%, 310px);
  gap: 9px;
  text-shadow: none;
}

.login-form input,
.login-form button {
  width: 100%;
  height: 43px;
  border-radius: 5px;
}

.login-form input {
  border: 1px solid rgba(196, 149, 47, 0.42);
  background: rgba(255, 253, 248, 0.95);
  color: var(--ink);
  padding: 0 13px;
  outline: none;
  box-shadow: 0 8px 24px rgba(28, 22, 16, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.74);
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.login-form input::placeholder { color: var(--muted); }

.login-form input:focus {
  border-color: rgba(183, 129, 27, 0.88);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(200, 149, 47, 0.2), 0 10px 28px rgba(28, 22, 16, 0.18);
}


.error {
  margin: 0;
  border-radius: 5px;
  padding: 8px 10px;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.4;
}

.error {
  border: 1px solid var(--error-border);
  background: var(--error-bg);
  color: var(--error-text);
}


.login-form button {
  cursor: pointer;
  border: 1px solid rgba(247, 226, 171, 0.42);
  background: linear-gradient(110deg, #d4a43c 0%, #b27a1f 100%);
  color: var(--white);
  font-family: "Montserrat", ui-sans-serif, system-ui, sans-serif;
  font-size: 0.82rem;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(56, 38, 13, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.22);
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.login-form button:hover {
  transform: translateY(-1px);
  filter: saturate(1.04) brightness(1.02);
  box-shadow: 0 14px 28px rgba(56, 38, 13, 0.27);
}

.login-form button:focus-visible {
  outline: 4px solid rgba(234, 215, 160, 0.34);
  outline-offset: 3px;
}


@media (min-width: 761px) and (max-width: 900px) {
  body::before {
    transform: scale(1.045) translateY(-1.5%);
    transform-origin: center;
  }
}

@media (max-width: 760px) {
  body { overflow: auto; }

  body::before { background-position: 40% center; }

  body::after {
    background:
      linear-gradient(180deg, transparent 42%, rgba(21, 18, 15, 0.08) 54%, rgba(21, 18, 15, 0.26) 66%, rgba(255, 250, 242, 0.28) 82%, rgba(255, 250, 242, 0.9) 100%),
      linear-gradient(90deg, rgba(18, 15, 12, 0.16), transparent 72%);
  }

  .page-shell {
    min-height: 100svh;
    padding: 18px 20px;
  }

  .page-shell::before {
    height: 43vh;
    background: linear-gradient(180deg, transparent 0%, rgba(255, 250, 242, 0.12) 28%, rgba(255, 250, 242, 0.58) 72%, rgba(255, 250, 242, 0.95) 100%);
  }

  .access-panel {
    width: min(100%, 360px);
    gap: 16px;
    margin-bottom: clamp(34px, 7svh, 68px);
  }

  .event-heading h1 { font-size: clamp(2.2rem, 10.4vw, 3.05rem); }

  .login-form {
    width: 100%;
    max-width: 340px;
  }
}

@media (max-width: 360px) {
  .page-shell { padding-inline: 16px; }

  .access-panel {
    gap: 14px;
    margin-bottom: clamp(48px, 9svh, 76px);
  }

  .event-heading h1 { font-size: clamp(2.05rem, 10.6vw, 2.38rem); }

  .date {
    margin-top: 8px;
    font-size: 0.72rem;
  }
}

@media (max-height: 650px) and (max-width: 760px) {
  .access-panel {
    gap: 12px;
    margin-bottom: 8px;
  }

  .event-heading h1 { font-size: 2.05rem; }
  .date { margin-top: 7px; }

  .login-form input,
  .login-form button { height: 40px; }
}

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