/* The two pages outside the app: the sign-in door, and the form a client fills in.
   Same paper, ink, copper and Jost as the rest; a photograph does the talking. */

/* ---------- sign in ---------- */

.gate {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 520px);
  min-height: 100vh;
  min-height: 100dvh;
}

.gate-photo {
  position: relative;
  overflow: hidden;
  background: var(--polar);
}

.gate-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gate-panel {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 40px;
  margin: 0;
  padding: 48px clamp(24px, 5vw, 64px);
}

.gate-logo {
  width: auto;
  height: 54px;
  align-self: flex-start;
}

.gate-title {
  margin-bottom: 28px;
  font-size: clamp(40px, 4vw, 56px);
  font-weight: 300;
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.gate-form {
  display: grid;
  gap: 16px;
}

.gate-form .btn {
  justify-self: start;
  min-height: 50px;
  margin-top: 6px;
  padding: 0 28px;
}

.gate-problem {
  color: var(--red);
  font-weight: 500;
}

.gate-demo {
  margin-bottom: 30px;
}

.gate-demo .h2 {
  margin: 4px 0 14px;
}

.gate-people {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.gate-person {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 9px 12px 9px 9px;
  border: 1px solid var(--swan);
  border-radius: 999px;
  background: none;
  text-align: left;
  cursor: pointer;
  transition: background-color var(--fast) var(--ease), border-color var(--fast) var(--ease), transform var(--fast) var(--ease);
}

.gate-person:hover {
  border-color: var(--blue-line);
  background: var(--polar);
}

.gate-person:active {
  transform: scale(0.97);
}

.gate-person > span:last-child {
  display: grid;
  min-width: 0;
  line-height: 1.2;
}

.gate-person strong {
  overflow: hidden;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gate-person small {
  color: var(--wolf);
  font-size: 13px;
}

.gate-or {
  margin-bottom: 14px;
}

@media (max-width: 1180px) {
  .gate-panel {
    align-items: stretch;
  }
}

@media (max-width: 860px) {
  .gate {
    grid-template-columns: 1fr;
    grid-template-rows: 30vh auto;
  }

  .gate-panel {
    justify-content: flex-start;
    gap: 26px;
    padding: 28px 20px 48px;
  }

  .gate-logo {
    height: 44px;
  }
}

@media (max-width: 420px) {
  .gate-people {
    grid-template-columns: 1fr;
  }
}

/* ---------- the client's form ---------- */

.guest {
  background: var(--snow);
}

.guest-top {
  display: flex;
  justify-content: center;
  padding: 26px 20px 22px;
}

.guest-top img {
  width: auto;
  height: 56px;
}

.guest-page {
  display: block;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px 96px;
}

.guest-hero {
  display: grid;
  gap: 26px;
  margin-bottom: 40px;
}

.guest-hero img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: 22px;
  object-fit: cover;
}

.guest-title {
  margin: 8px 0 10px;
  font-size: clamp(44px, 8vw, 76px);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.035em;
}

.guest-lede {
  color: var(--wolf);
  font-size: 20px;
}

.guest-form,
.guest-list {
  display: grid;
  gap: 22px;
}

.guest-form > .btn {
  justify-self: start;
}

.guest-form > .btn[type='submit'] {
  min-height: 54px;
  padding: 0 32px;
  font-size: 17px;
}

.guest-card {
  display: grid;
  gap: 16px;
  min-width: 0;
  margin: 0;
  padding: 24px 22px 24px;
  border: 1px solid var(--swan);
  border-top: 2px solid var(--lead);
  border-radius: 4px 4px 18px 18px;
}

.guest-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.guest-card .caps {
  color: var(--lead-edge);
}

.guest-card .pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.date-row {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.5fr) minmax(0, 1.1fr);
  gap: 8px;
}

.date-row select {
  padding-right: 30px;
  padding-left: 12px;
  background-position: right 10px center;
}

.guest .field textarea {
  resize: vertical;
  line-height: 1.45;
}

.guest-done {
  padding: 12vh 0;
  text-align: center;
}

@media (max-width: 560px) {
  .guest-card .pair {
    grid-template-columns: 1fr;
  }

  .guest-card {
    padding: 20px 16px;
  }

  .guest-hero img {
    aspect-ratio: 4 / 3;
  }
}
