/* The invitation-code page. On phones the copy and the artwork interleave into one column, so
   .unlock__copy dissolves with display: contents and every piece takes an explicit order. */
.unlock {
  max-width: 1300px;
  width: 90%;
  margin: 20px auto 70px;
  padding: 40px 5vw;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9%;
  align-items: center;
}
.unlock__star {
  color: #bc541b;
  font-size: 35px;
  margin-bottom: 20px;
}
.unlock__eyebrow {
  line-height: 1.75;
}
.unlock__title {
  font: 500 clamp(52px, 5.5vw, 84px)/1.06 var(--serif);
  letter-spacing: -0.05em;
  margin: 22px 0;
}
.unlock__text {
  line-height: 1.75;
  font-size: 16px;
}
.unlock__error {
  color: #8e1837;
  font-weight: 600;
}
.unlock__form {
  max-width: 340px;
  margin: 28px 0;
}
.unlock__label {
  font:
    12px Arial,
    sans-serif;
  letter-spacing: 0.08em;
}
.unlock__submit {
  width: 100%;
}

.code-field {
  position: relative;
}
.code-field__input {
  background: transparent;
  border: 1px solid #946e91;
  border-radius: 6px;
  padding-right: 64px;
}
.code-field__toggle {
  position: absolute;
  right: 4px;
  top: 2px;
  min-height: 40px;
  padding: 8px 12px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font:
    12px Arial,
    sans-serif;
  text-decoration: underline;
  text-underline-offset: 3px;
}
/* invitation-code.js reveals the toggle; the base button display would otherwise override [hidden]. */
.code-field__toggle[hidden] {
  display: none;
}

@media (max-width: 760px) {
  .unlock {
    width: auto;
    display: flex;
    flex-direction: column;
    margin: 12px 5vw 36px;
    padding: 26px 6vw 30px;
    gap: 0;
    text-align: center;
  }
  .unlock__copy {
    display: contents;
  }
  .unlock__star {
    order: 0;
    font-size: 26px;
    margin: 0 0 18px;
  }
  .unlock__eyebrow {
    order: 1;
    font-size: 10px;
    letter-spacing: 0.17em;
    line-height: 1.6;
    margin: 0;
  }
  .unlock__title {
    order: 2;
    font-size: clamp(42px, 12vw, 64px);
    line-height: 1.02;
    margin: 20px 0 22px;
  }
  .unlock__art {
    order: 3;
    width: 82%;
    margin: 0 auto 22px;
  }
  .unlock__text {
    order: 4;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
  }
  .unlock__form {
    order: 5;
    width: 100%;
    margin: 22px 0 0;
    text-align: left;
  }
  .unlock__label {
    margin-top: 0;
  }
}
