:root {
  --ink: #fff1cf;
  --ivory: #fff1cf;
  --ivory-soft: #f7e2b7;
  --gold: #ddb66b;
  --gold-deep: #b7833f;
  --brown-shadow: rgba(35, 17, 6, 0.86);
  --danger: #ffd0c8;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  min-height: 100vh;
  overflow: hidden;

  color: var(--ink);
  background: #160f0b;

  font-family: Georgia, "Times New Roman", serif;
}

.gate-page {
  position: relative;

  width: 100vw;
  height: 100vh;
  min-height: 720px;

  background-color: #160f0b;
  background-image:
    radial-gradient(
      circle at 50% 50%,
      rgba(255, 231, 178, 0.08),
      rgba(70, 34, 10, 0.08) 38%,
      rgba(13, 7, 3, 0.28) 100%
    ),
    url("../../images/gate.webp");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.gate-content {
  position: absolute;
  top: 49.5%;
  left: 50%;

  width: min(610px, 45vw);
  padding: 1.1rem 1.5rem 1.35rem;

  border-radius: 30px;

  text-align: center;

  transform: translate(-50%, -50%);
}

.gate-content::before {
  content: "";

  position: absolute;
  inset: -1rem -1.9rem;
  z-index: -1;

  border-radius: 36px;

  background:
    radial-gradient(
      circle at center,
      rgba(44, 20, 7, 0.46),
      rgba(44, 20, 7, 0.28) 42%,
      rgba(44, 20, 7, 0.12) 70%,
      transparent 100%
    );

  filter: blur(5px);
}

/* Logo */

.gate-brand {
  margin-bottom: 1rem;

  text-align: center;
}

.gate-brand-emblem {
  display: block;

  width: clamp(125px, 9vw, 175px);
  height: auto;
  margin: 0 auto 0.05rem;

  object-fit: contain;

  filter:
    drop-shadow(0 2px 2px rgba(25, 10, 3, 0.55))
    drop-shadow(0 0 10px rgba(255, 226, 166, 0.26));
}

.gate-brand-name {
  color: #f3d99c;

  font-size: clamp(2.15rem, 3.2vw, 3.35rem);
  line-height: 1;
  letter-spacing: 0.17em;
  text-transform: uppercase;

  text-shadow:
    0 2px 3px var(--brown-shadow),
    0 0 14px rgba(255, 214, 130, 0.22);
}

.gate-brand-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;

  width: 190px;
  margin: 0.55rem auto 0;

  color: var(--gold);

  opacity: 0.9;
}

.gate-brand-line span {
  display: block;

  width: 70px;
  height: 1px;

  background: currentColor;
}

.gate-brand-line i {
  font-size: 0.8rem;
  font-style: normal;
}

/* Texte principal */

.gate-content h1 {
  margin: 0;

  color: var(--ivory);

  font-size: clamp(2.08rem, 2.85vw, 3.25rem);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -0.025em;

  text-shadow:
    0 2px 3px var(--brown-shadow),
    0 0 16px rgba(255, 219, 150, 0.22);
}

.gate-separator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.48rem;

  width: 88px;
  margin: 0.95rem auto 0.9rem;

  color: var(--gold);

  opacity: 0.82;
}

.gate-separator span {
  display: block;

  width: 24px;
  height: 1px;

  background: currentColor;
}

.gate-separator i {
  font-size: 0.7rem;
  font-style: normal;
}

.gate-separator-small {
  margin-top: 1.55rem;
  margin-bottom: 1.05rem;

  opacity: 0.72;
}

.gate-text {
  margin: 0 auto;

  color: var(--ivory-soft);

  font-size: clamp(1rem, 1.08vw, 1.18rem);
  line-height: 1.5;

  text-shadow:
    0 2px 3px rgba(32, 15, 5, 0.84),
    0 0 10px rgba(255, 225, 170, 0.14);
}

.gate-reserved {
  margin: 0 auto 1.02rem;

  color: #edc98a;

  font-size: clamp(1.08rem, 1.33vw, 1.4rem);
  line-height: 1.28;

  text-shadow:
    0 2px 3px rgba(32, 15, 5, 0.86),
    0 0 10px rgba(255, 225, 170, 0.14);
}

.gate-instruction {
  margin: 0 auto 0.65rem;

  color: #ffe9bd;

  font-size: clamp(0.9rem, 0.96vw, 1rem);

  text-shadow:
    0 2px 3px rgba(32, 15, 5, 0.88),
    0 0 8px rgba(255, 225, 170, 0.12);
}

.gate-form {
  width: min(390px, 100%);
  margin: 0 auto;
}

.gate-password-row {
  position: relative;

  width: 100%;
  height: 52px;
  margin: 0 auto 1.32rem;
}

.gate-password-row input {
  width: 100%;
  height: 100%;
  padding: 0 3.1rem 0 1.2rem;

  border: 1px solid rgba(100, 63, 27, 0.74);
  border-radius: 0;
  outline: none;

  color: #2f2118;
  background: rgba(248, 232, 198, 0.86);

  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.02rem;

  box-shadow:
    inset 0 0 0 1px rgba(255, 252, 241, 0.2),
    0 3px 10px rgba(30, 14, 5, 0.22);
}

.gate-password-row input::placeholder {
  color: rgba(50, 36, 24, 0.72);
}

.gate-password-row input:focus {
  border-color: rgba(208, 160, 82, 0.98);
  background: rgba(255, 240, 210, 0.92);
}

.gate-key {
  position: absolute;
  top: 50%;
  right: 1.05rem;

  color: #7b5428;

  font-size: 1.55rem;
  line-height: 1;

  transform: translateY(-50%);
}

.gate-button {
  position: relative;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 230px;
  height: 54px;

  border: 1px solid rgba(212, 163, 82, 0.9);

  color: #e7bf72;
  background:
    linear-gradient(145deg, rgba(18, 20, 22, 0.98), rgba(43, 38, 31, 0.98));

  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.05em;

  cursor: pointer;

  box-shadow:
    0 5px 12px rgba(25, 10, 3, 0.38),
    inset 0 0 0 2px rgba(194, 139, 58, 0.3);
}

.gate-button::before,
.gate-button::after {
  content: "❧";

  position: absolute;

  color: rgba(216, 173, 95, 0.9);

  font-size: 0.9rem;
}

.gate-button::before {
  top: 0.32rem;
  left: 0.52rem;

  transform: rotate(135deg);
}

.gate-button::after {
  right: 0.52rem;
  bottom: 0.32rem;

  transform: rotate(-45deg);
}

.gate-button:hover {
  filter: brightness(1.1);
}

.gate-error {
  min-height: 1.15rem;
  margin: 0.65rem 0 0;

  color: var(--danger);

  font-size: 0.92rem;

  text-shadow:
    0 2px 3px rgba(30, 10, 4, 0.8),
    0 0 8px rgba(255, 220, 180, 0.18);
}

.gate-bottom-separator {
  margin-top: 0.58rem;
  margin-bottom: 0.65rem;

  color: var(--gold);

  opacity: 0.55;
}

.gate-quote {
  margin: 0 auto;

  color: #f5d99f;

  font-size: clamp(1rem, 1.18vw, 1.2rem);
  font-style: italic;
  font-weight: 700;
  line-height: 1.35;

  text-shadow:
    0 2px 3px rgba(20, 8, 2, 0.9),
    0 0 10px rgba(255, 225, 160, 0.18);
}

.sr-only {
  position: absolute;

  overflow: hidden;

  width: 1px;
  height: 1px;
  padding: 0;

  white-space: nowrap;

  border: 0;

  clip: rect(0, 0, 0, 0);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-height: 820px) {
  .gate-content {
    top: 49%;

    width: min(570px, 45vw);
  }

  .gate-brand {
    margin-bottom: 0.75rem;
  }

  .gate-brand-emblem {
    width: clamp(95px, 6.8vw, 130px);
  }

  .gate-brand-name {
    font-size: clamp(1.75rem, 2.65vw, 2.75rem);
  }

  .gate-brand-line {
    margin-top: 0.38rem;
  }

  .gate-content h1 {
    font-size: clamp(1.9rem, 2.55vw, 2.85rem);
  }

  .gate-separator {
    margin-top: 0.62rem;
    margin-bottom: 0.62rem;
  }

  .gate-separator-small {
    margin-top: 1.1rem;
    margin-bottom: 0.78rem;
  }

  .gate-password-row {
    height: 48px;
    margin-bottom: 0.95rem;
  }

  .gate-button {
    height: 50px;
  }
}

@media (max-width: 980px) {
  body {
    overflow: auto;
  }

  .gate-page {
    min-height: 840px;
    background-position: center center;
  }

  .gate-content {
    top: 50%;
    left: 50%;

    width: min(520px, 72vw);
  }
}

@media (max-width: 620px) {
  .gate-page {
    min-height: 900px;
    background-position: center center;
  }

  .gate-content {
    top: 50%;
    left: 50%;

    width: min(370px, 86vw);
    padding-inline: 0.8rem;
  }

  .gate-brand {
    margin-bottom: 0.7rem;
  }

  .gate-brand-emblem {
    width: 92px;
  }

  .gate-brand-name {
    font-size: 1.85rem;
  }

  .gate-brand-line {
    width: 150px;
  }

  .gate-brand-line span {
    width: 52px;
  }

  .gate-content h1 {
    font-size: 1.95rem;
  }

  .gate-text {
    font-size: 0.94rem;
  }

  .gate-reserved {
    font-size: 1.04rem;
  }

  .gate-password-row {
    height: 48px;
  }

  .gate-button {
    width: 210px;
    height: 50px;
  }

  .gate-quote {
    font-size: 0.98rem;
  }
}