/* FONTS */
@font-face{
    font-family: "The Seasons";
    src: url("../fonts/9366bd460113d8bf675fd2bdfe1ce764.eot");
    src: url("../fonts/9366bd460113d8bf675fd2bdfe1ce764.eot?#iefix")format("embedded-opentype"),
        url("../fonts/9366bd460113d8bf675fd2bdfe1ce764.woff")format("woff"),
        url("../fonts/9366bd460113d8bf675fd2bdfe1ce764.woff2")format("woff2"),
        url("../fonts/9366bd460113d8bf675fd2bdfe1ce764.ttf")format("truetype"),
        url("../fonts/9366bd460113d8bf675fd2bdfe1ce764.svg#The Seasons")format("svg");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "The Seasons", sans-serif;
  background: #efefef;
  min-height: 100vh;
}

video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.invitation-gate {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(239, 239, 239, 0.78);
  backdrop-filter: blur(8px);
  transition: opacity 600ms ease;
}

.loader-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 56px;
}

.logo {
  width: min(62vw, 250px);
  height: auto;
  max-height: 20vh;
  object-fit: contain;
}

.invitation-button {
  border: 1px solid rgba(181, 126, 220, 0.75);
  background: rgba(255, 255, 255, 0.9);
  color: #b57edc;
  font: inherit;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 14px 30px;
  cursor: pointer;
  transition: background-color 240ms ease, color 240ms ease,
    border-color 240ms ease, transform 240ms ease;
}

.invitation-button:hover {
  background: #b57edc;
  border-color: #b57edc;
  color: #fffaff;
}

.invitation-button:active {
  transform: translateY(1px);
}

.content-wrapper {
  position: relative;
  width: 100%;
  max-width: 720px;
  margin-inline: auto;
  /* min-height: 100vh; */
}

form {
  position: absolute;
  bottom: calc(30px + env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  width: min(93vw, 460px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  color: #3d3d3d;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 420ms ease, transform 420ms ease;
}

form.form-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

form label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 100%;
  font-size: clamp(0.86rem, 1.32vw, 1.04rem);
  text-transform: uppercase;
  letter-spacing: 0.025em;
  white-space: normal;
}

form input {
  width: min(76vw, 340px);
  border: none;
  border-bottom: 1px solid rgba(61, 61, 61, 0.8);
  background: transparent;
  color: #3d3d3d;
  font: inherit;
  font-size: clamp(0.92rem, 1.28vw, 1.05rem);
  text-align: center;
  padding: 6px 0;
  outline: none;
}

form input::placeholder {
  color: rgba(61, 61, 61, 0.5);
}

form input:focus {
  border-bottom-color: rgba(28, 28, 28, 0.95);
}

form button {
  border: 1px solid #b57edc;
  background: #b57edc;
  color: #faf6ff;
  font: inherit;
  font-size: clamp(0.92rem, 1.28vw, 1.05rem);
  letter-spacing: 0.02em;
  line-height: 1.1;
  min-width: 134px;
  padding: 7px 16px;
  border-radius: 0;
  margin-top: 2px;
  cursor: pointer;
  transition: background-color 240ms ease-out, border-color 240ms ease-out,
    color 240ms ease-out;
}

form button:hover:not(:disabled) {
  background: #c28ae3;
  border-color: #c28ae3;
  color: #fffaff;
}

form button:active:not(:disabled) {
  background: #ab73d3;
  border-color: #ab73d3;
  color: #f7f1fd;
}

form button:disabled {
  opacity: 0.52;
  cursor: default;
}

.fade-out {
  opacity: 0;
  pointer-events: none;
}

@media (min-width: 640px) {
  .loader-wrapper {
    gap: 72px;
  }

  .logo {
    width: min(56vw, 280px);
    max-height: 22vh;
  }

  form {
    bottom: clamp(38px, 7.5vh, 100px);
    width: min(88vw, 560px);
    gap: 8px;
  }

  form label {
    width: auto;
  }

  form input {
    width: min(70vw, 390px);
  }
}

@media (min-width: 960px) {
  form {
    bottom: clamp(48px, 8vh, 112px);
    width: min(70vw, 720px);
    gap: 12px;
  }

  form label {
    font-size: clamp(0.98rem, 1.1vw, 1.2rem);
    gap: 8px;
  }

  form input {
    width: min(54vw, 560px);
    font-size: clamp(1.04rem, 1.15vw, 1.22rem);
    padding: 8px 0;
  }

  form button {
    min-width: 162px;
    font-size: clamp(1rem, 1.05vw, 1.16rem);
    padding: 10px 24px;
    margin-top: 6px;
  }
}
