/* ======================================================
   ALPE FILM PRIVATE GALLERIES
   Professional secure gallery system
   Version 112
====================================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #ebe7df;
  --bg-deep: #d9d2c6;

  --paper: #fbfaf7;
  --paper-soft: #f4f1eb;

  --ink: #111111;
  --ink-soft: #34302b;
  --muted: #6f675f;
  --muted-light: #91897f;

  --blue-black: #101923;
  --blue: #12384a;
  --blue-soft: #dfe8ec;

  --sand: #d9cdbb;
  --sand-soft: #eee8dc;

  --green: #2f5d50;
  --green-soft: #e4ede8;

  --red: #8e241f;
  --red-soft: #fff1ef;
  --red-line: #e4b4ae;

  --border: #d3c9bb;
  --border-dark: #b9ad9e;

  --shadow: 0 34px 90px rgba(17, 17, 17, 0.15);
  --shadow-soft: 0 18px 46px rgba(17, 17, 17, 0.09);

  --max-width: 1180px;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  min-height: 100svh;
  color: var(--ink);
  font-family: "Times New Roman", Times, serif;
  line-height: 1.55;
  background:
    radial-gradient(circle at 18% 18%, rgba(18, 56, 74, 0.10), transparent 31%),
    radial-gradient(circle at 84% 82%, rgba(47, 93, 80, 0.10), transparent 34%),
    linear-gradient(135deg, var(--bg) 0%, var(--bg-deep) 100%);
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(17, 17, 17, 0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 17, 17, 0.018) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.34), transparent 76%);
  z-index: 0;
}

body::after {
  content: "";
  position: fixed;
  inset: 22px;
  border: 1px solid rgba(255, 255, 255, 0.54);
  pointer-events: none;
  z-index: 0;
}

/* ======================================================
   SHARED LAYOUT
====================================================== */

.login-page,
.gallery-page {
  width: min(var(--max-width), 100%);
  min-height: 100vh;
  min-height: 100svh;
  margin: 0 auto;
  padding: clamp(34px, 6vw, 78px) clamp(18px, 4vw, 42px);
  position: relative;
  z-index: 1;
}

.login-page {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ======================================================
   LOGIN PAGE
====================================================== */

.login-panel {
  width: min(100%, 980px);
  display: grid;
  grid-template-columns: minmax(340px, 0.95fr) minmax(280px, 0.72fr);
  background: rgba(251, 250, 247, 0.94);
  border: 1px solid rgba(211, 201, 187, 0.92);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.login-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 6px;
  background:
    linear-gradient(90deg, var(--blue-black), var(--blue), var(--green));
  z-index: 2;
}

.login-panel-main {
  padding: clamp(34px, 5vw, 56px);
  position: relative;
}

.login-panel-main::after {
  content: "";
  position: absolute;
  right: 0;
  top: 56px;
  bottom: 56px;
  width: 1px;
  background: var(--border);
}

.system-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: clamp(44px, 5vw, 68px);
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: var(--blue-black);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.04em;
  box-shadow: 0 14px 28px rgba(16, 25, 35, 0.20);
}

.brand-name {
  color: var(--ink);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.05;
}

.brand-subtitle {
  margin-top: 4px;
  color: var(--muted);
  font-size: 15px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 11px;
  color: var(--green);
  background: var(--green-soft);
  border: 1px solid rgba(47, 93, 80, 0.18);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.status-pill span {
  width: 7px;
  height: 7px;
  display: inline-block;
  background: var(--green);
  border-radius: 999px;
}

.login-copy {
  max-width: 500px;
}

.eyebrow {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 15px;
  letter-spacing: 0.02em;
}

h1 {
  margin-bottom: 18px;
  color: var(--ink);
  font-size: clamp(54px, 7vw, 88px);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: -0.065em;
}

.login-intro,
.login-card > p,
.gallery-header p {
  color: var(--ink-soft);
  font-size: 19px;
  line-height: 1.58;
}

/* ======================================================
   FORM
====================================================== */

.login-form {
  display: grid;
  gap: 18px;
  margin-top: 36px;
  max-width: 430px;
}

.login-form label {
  display: grid;
  gap: 8px;
}

.login-form label span {
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
}

.login-form input {
  width: 100%;
  min-height: 54px;
  border: 1px solid var(--border-dark);
  background: #ffffff;
  color: var(--ink);
  font-family: "Times New Roman", Times, serif;
  font-size: 18px;
  padding: 0 14px;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.74);
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background-color 0.18s ease;
}

.login-form input:hover {
  border-color: var(--ink);
}

.login-form input:focus {
  border-color: var(--blue-black);
  background: #ffffff;
  box-shadow:
    0 0 0 3px rgba(16, 25, 35, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.74);
}

.login-form button {
  min-height: 54px;
  margin-top: 8px;
  border: 1px solid var(--blue-black);
  background: var(--blue-black);
  color: #ffffff;
  font-family: "Times New Roman", Times, serif;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  transition:
    background-color 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease;
}

.login-form button:hover {
  background: #ffffff;
  color: var(--blue-black);
  transform: translateY(-1px);
}

.login-form button:active {
  transform: translateY(0);
}

.error-message {
  max-width: 430px;
  margin-top: 26px !important;
  color: var(--red) !important;
  background: var(--red-soft);
  border: 1px solid var(--red-line);
  padding: 13px 14px;
  font-size: 16px !important;
  font-weight: 700;
}

.login-footer {
  max-width: 430px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.small-link {
  color: var(--muted);
  font-size: 16px;
  text-decoration: none;
  border-bottom: 1px solid rgba(17, 17, 17, 0.25);
}

.small-link:hover {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

/* ======================================================
   SIDE PANEL
====================================================== */

.login-panel-side {
  padding: clamp(34px, 4.6vw, 52px);
  background:
    linear-gradient(180deg, rgba(16, 25, 35, 0.97), rgba(16, 25, 35, 0.92)),
    radial-gradient(circle at 82% 16%, rgba(217, 205, 187, 0.16), transparent 30%);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 46px;
}

.side-card {
  margin-top: 42px;
}

.side-label {
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 14px;
}

.side-card h2 {
  margin-bottom: 18px;
  color: #ffffff;
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.side-card p {
  color: rgba(255, 255, 255, 0.70);
  font-size: 18px;
  line-height: 1.56;
}

.assurance-list {
  display: grid;
  gap: 14px;
}

.assurance-list div {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  align-items: baseline;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
}

.assurance-list strong {
  color: var(--sand);
  font-size: 15px;
}

.assurance-list span {
  color: rgba(255, 255, 255, 0.76);
  font-size: 16px;
  line-height: 1.35;
}

/* ======================================================
   GALLERY SHELL
====================================================== */

.gallery-shell {
  width: 100%;
}

.gallery-header {
  max-width: 820px;
  margin: 0 auto clamp(44px, 6vw, 74px);
  text-align: center;
}

.gallery-header .eyebrow {
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 16px;
}

.gallery-header h1 {
  margin-bottom: 20px;
  font-size: clamp(54px, 7vw, 92px);
}

.gallery-header p {
  max-width: 660px;
  margin: 0 auto;
}

.gallery-meta {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.gallery-meta span {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 0 13px;
  color: var(--muted);
  background: rgba(251, 250, 247, 0.76);
  border: 1px solid var(--border);
  font-size: 15px;
}

/* ======================================================
   EVENT OVERVIEW
====================================================== */

.event-grid-simple {
  display: grid;
  grid-template-columns: 1fr;
  max-width: 800px;
  margin: 0 auto;
}

.event-card-simple {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
  align-items: center;
  padding: clamp(30px, 4vw, 46px);
  color: var(--ink);
  text-decoration: none;
  background: rgba(251, 250, 247, 0.92);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.event-card-simple:hover {
  transform: translateY(-2px);
  border-color: var(--border-dark);
  box-shadow: 0 24px 58px rgba(17, 17, 17, 0.12);
}

.event-kicker {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 15px;
}

.event-content h2 {
  margin-bottom: 14px;
  color: var(--ink);
  font-size: clamp(42px, 5vw, 64px);
  font-weight: 400;
  line-height: 0.94;
  letter-spacing: -0.055em;
}

.event-content p:not(.event-kicker) {
  max-width: 560px;
  color: var(--ink-soft);
  font-size: 18px;
  line-height: 1.56;
}

.event-arrow {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  border: 1px solid var(--border-dark);
  background: #ffffff;
  font-size: 26px;
  transition: 0.18s ease;
}

.event-card-simple:hover .event-arrow {
  background: var(--blue-black);
  color: #ffffff;
  border-color: var(--blue-black);
}

/* ======================================================
   IMAGE GRID
====================================================== */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 1.8vw, 22px);
}

.gallery-item {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  padding: 0;
  border: 1px solid rgba(251, 250, 247, 0.75);
  background: #ffffff;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 16px 38px rgba(17, 17, 17, 0.11);
  position: relative;
}

.gallery-item::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 0 solid rgba(255, 255, 255, 0.72);
  z-index: 1;
  pointer-events: none;
  transition: border-width 0.18s ease;
}

.gallery-item::after {
  content: "Åbn billede";
  position: absolute;
  left: 14px;
  bottom: 14px;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  color: #ffffff;
  background: rgba(16, 25, 35, 0.84);
  font-size: 13px;
  opacity: 0;
  transform: translateY(6px);
  transition: 0.18s ease;
  z-index: 2;
}

.gallery-item:hover::before {
  border-width: 8px;
}

.gallery-item:hover::after {
  opacity: 1;
  transform: translateY(0);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition:
    transform 0.3s ease,
    filter 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.035);
  filter: brightness(0.88) contrast(1.04);
}

/* ======================================================
   FOOTER LINKS
====================================================== */

.gallery-footer {
  display: flex;
  justify-content: center;
  gap: 26px;
  flex-wrap: wrap;
  margin-top: clamp(40px, 5vw, 66px);
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.gallery-footer a {
  color: var(--muted);
  text-decoration: none;
  font-size: 16px;
  border-bottom: 1px solid rgba(17, 17, 17, 0.22);
}

.gallery-footer a:hover {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

/* ======================================================
   PRIVACY PAGE
====================================================== */

.privacy-shell {
  max-width: 920px;
  margin: 0 auto;
  padding: clamp(34px, 5vw, 62px);
  background: rgba(251, 250, 247, 0.94);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.privacy-content {
  max-width: 740px;
  margin: 0 auto;
}

.privacy-content h2 {
  margin: 44px 0 14px;
  color: var(--ink);
  font-size: 28px;
  line-height: 1.16;
  font-weight: 400;
  letter-spacing: -0.03em;
}

.privacy-content p {
  margin: 0 0 17px;
  color: var(--ink-soft);
  font-size: 18px;
  line-height: 1.7;
}

.privacy-content ul {
  display: grid;
  gap: 8px;
  margin: 18px 0 30px;
  padding-left: 23px;
}

.privacy-content li {
  color: var(--ink-soft);
  font-size: 18px;
  line-height: 1.6;
}

.privacy-content a {
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid rgba(17, 17, 17, 0.28);
}

.privacy-content a:hover {
  border-bottom-color: var(--ink);
}

/* ======================================================
   LIGHTBOX
====================================================== */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(64px, 7vw, 98px);
  background:
    radial-gradient(circle at 50% 50%, rgba(255,255,255,0.06), transparent 42%),
    rgba(7, 7, 7, 0.95);
}

.lightbox.is-open {
  display: flex;
}

.lightbox img {
  max-width: 100%;
  max-height: 100%;
  display: block;
  object-fit: contain;
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.64);
}

.lightbox-close,
.lightbox-nav {
  position: fixed;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.10);
  color: #ffffff;
  cursor: pointer;
  font-family: "Times New Roman", Times, serif;
  transition:
    background-color 0.18s ease,
    color 0.18s ease,
    border-color 0.18s ease;
}

.lightbox-close:hover,
.lightbox-nav:hover {
  background: #ffffff;
  color: #111111;
  border-color: #ffffff;
}

.lightbox-close {
  top: 22px;
  right: 22px;
  width: 50px;
  height: 50px;
  font-size: 36px;
  line-height: 1;
}

.lightbox-nav {
  top: 50%;
  width: 56px;
  height: 78px;
  transform: translateY(-50%);
  font-size: 54px;
  line-height: 1;
}

.lightbox-prev {
  left: 22px;
}

.lightbox-next {
  right: 22px;
}

/* ======================================================
   RESPONSIVE
====================================================== */

@media screen and (max-width: 920px) {
  .login-panel {
    grid-template-columns: 1fr;
  }

  .login-panel-main::after {
    display: none;
  }

  .login-panel-side {
    padding-top: 34px;
  }

  .side-card {
    margin-top: 0;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lightbox {
    padding: 64px 18px;
  }
}

@media screen and (max-width: 640px) {
  body::after {
    inset: 10px;
  }

  body::before {
    background-size: 48px 48px;
  }

  .login-page,
  .gallery-page {
    padding: 28px 16px 42px;
  }

  .login-panel-main,
  .login-panel-side {
    padding: 30px 22px;
  }

  .system-header {
    display: grid;
    gap: 18px;
    margin-bottom: 38px;
  }

  .status-pill {
    width: fit-content;
  }

  h1 {
    font-size: 54px;
  }

  .login-intro,
  .gallery-header p {
    font-size: 17px;
  }

  .side-card h2 {
    font-size: 34px;
  }

  .side-card p {
    font-size: 17px;
  }

  .event-card-simple {
    grid-template-columns: 1fr;
    padding: 26px 22px;
  }

  .event-content h2 {
    font-size: 42px;
  }

  .event-arrow {
    margin-top: 4px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-item::after {
    opacity: 1;
    transform: none;
  }

  .gallery-footer {
    justify-content: flex-start;
  }

  .privacy-shell {
    padding: 30px 22px;
  }

  .privacy-content h2 {
    margin-top: 36px;
    font-size: 24px;
  }

  .privacy-content p,
  .privacy-content li {
    font-size: 17px;
  }

  .lightbox-close {
    top: 14px;
    right: 14px;
  }

  .lightbox-nav {
    width: 44px;
    height: 60px;
    font-size: 42px;
  }

  .lightbox-prev {
    left: 10px;
  }

  .lightbox-next {
    right: 10px;
  }
}