:root {
  color-scheme: light;
  font-family: Arial, Helvetica, sans-serif;
  color: #092133;
  background: #fff;
  font-synthesis: none;
}

* { box-sizing: border-box; }

body { margin: 0; }

button, input { font: inherit; }

button { cursor: pointer; }

a { color: #8ca8fa; text-decoration: none; }

a:hover, .text-button:hover { text-decoration: underline; }

:focus-visible { outline: 3px solid #486dff; outline-offset: 3px; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.page {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100dvh;
}

.feature-panel {
  min-width: 0;
  color: #fff;
  background: #000 url("../assets/background-event.svg") center / cover no-repeat;
}

.feature {
  width: min(700px, calc(100% - 2 * clamp(36px, 6.1vw, 113px)));
  margin: clamp(140px, 25vh, 335px) auto 80px;
}

.feature--event { display: none; margin-top: clamp(130px, 23.25vh, 315px); }

.page[data-step="password"] .feature-panel {
  background-image: url("../assets/background-insider.svg");
}

.page[data-step="password"] .feature--agents { display: none; }
.page[data-step="password"] .feature--event { display: block; }

.event-logo { display: block; width: 100%; height: auto; }

.feature--event h2 { margin-top: 25px; }

.feature--event p { font-size: clamp(16px, 1.18vw, 18px); }

.video-embed {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 38px;
  background: #080808;
}

.video-embed iframe { display: block; width: 100%; height: 100%; border: 0; }

.feature h2 {
  margin: 22px 0 17px;
  color: #ffbd00;
  font-size: clamp(32px, 2.7vw, 50px);
  font-weight: 600;
  letter-spacing: -.055em;
  line-height: 1.15;
}

.feature p {
  max-width: 680px;
  margin: 0 0 21px;
  font-size: clamp(18px, 1.18vw, 22px);
  letter-spacing: -.04em;
  line-height: 1.42;
}

.feature-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 0 26px;
  border: 1.5px solid white;
  border-radius: 20px;
  color: white;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -.04em;
}

.login-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  min-height: 100dvh;
  padding: 0 36px 56px;
}

.login-content {
  width: min(100%, 330px);
  padding-top: clamp(150px, 20.5vh, 275px);
  text-align: center;
}

.logo { display: block; width: 170px; height: 85px; margin: 0 auto 41px; object-fit: contain; }

h1 { margin: 0 0 33px; font-size: 18px; font-weight: 600; line-height: 1; }

form { margin: 0; }

input[type="email"], input[type="password"], input[type="text"] {
  display: block;
  width: 100%;
  height: 56px;
  padding: 0 17px;
  border: 1px solid #ccc;
  border-radius: 3px;
  background: #fff;
  color: #092133;
  font-size: 18px;
}

input::placeholder { color: #777d80; opacity: 1; }

input[aria-invalid="true"] { border-color: #bb3d30; }
input[aria-invalid="true"]:focus-visible { outline-color: #bb3d30; }

.field-error {
  margin: 8px 0 0;
  color: #a52e24;
  font-size: 13px;
  line-height: 1.35;
  text-align: left;
}

.form-alert {
  position: relative;
  margin: 0 0 16px;
  padding: 12px 14px 12px 40px;
  border: 1px solid #f0c9c5;
  border-radius: 3px;
  background: #fff5f3;
  color: #81271e;
  font-size: 13px;
  line-height: 1.4;
  text-align: left;
}

.form-alert[hidden] { display: none; }

.form-alert::before {
  content: "!";
  position: absolute;
  top: 12px;
  left: 14px;
  display: grid;
  place-items: center;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: #b53a2d;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.primary-button {
  display: block;
  width: 100%;
  height: 56px;
  margin-top: 24px;
  border: 0;
  border-radius: 3px;
  background: #ffb900;
  color: #061f31;
  font-size: 18px;
}

.primary-button:not(:disabled):hover { background: #f2ae00; }

.primary-button.is-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #ccc;
  color: #fff;
  cursor: wait;
  opacity: 1;
}

.primary-button.is-loading::before {
  content: "";
  flex: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgb(255 255 255 / 45%);
  border-top-color: #fff;
  border-radius: 50%;
  animation: loading-spin .65s linear infinite;
}

@keyframes loading-spin {
  to { transform: rotate(1turn); }
}

@media (prefers-reduced-motion: reduce) {
  .primary-button.is-loading::before { animation: none; }
}

.remember {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  text-align: left;
  font-size: 16px;
  cursor: pointer;
}

.remember input { width: 14px; height: 14px; margin: 0; accent-color: #6882f7; }

.entered-email { margin: -23px 0 13px; font-size: 17px; }

.text-button { padding: 0; border: 0; background: none; color: #8ca8fa; font-size: 16px; }

.privacy { margin: 25px 0 16px; text-align: left; font-size: 14px; line-height: 1.7; }

.password-step .primary-button { margin-top: 24px; }

.help-link { display: block; margin-top: 12px; font-size: 16px; }

footer { margin-top: auto; padding-top: 60px; font-size: 14px; font-weight: 600; white-space: nowrap; }

footer a { margin-left: 9px; font-weight: 400; }

@media (width < 900px) {
  .page { display: block; }
  .feature-panel { display: none; }
  .login-panel { padding: 0 36px 58px; }
  .login-content { padding-top: clamp(92px, 19.5dvh, 172px); }
}

@media (width < 360px) {
  .login-panel { padding-inline: 24px; }
  .help-link { font-size: 14px; }
}

/* Screens */

.screen[hidden] { display: none; }

.challenge-icon {
  display: block;
  width: 36px;
  height: 36px;
  margin: 0 auto 16px;
}

.screen h1 { margin: 0 0 14px; }

#screen-login h1 { margin-bottom: 33px; }

.screen-title { text-transform: uppercase; }

.screen-lead {
  margin: 0 0 30px;
  color: #4b5c68;
  font-size: 16px;
  line-height: 1.45;
}

.question-prompt { color: #092133; font-size: 18px; }

.resend-button { margin-top: 12px; }

.spinner {
  display: block;
  width: 36px;
  height: 36px;
  margin: 0 auto 24px;
  border: 3px solid #ffe9ad;
  border-top-color: #ffb900;
  border-radius: 50%;
  animation: loading-spin .65s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
  .spinner { animation: none; }
}

.success-mark {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 26px;
  border-radius: 50%;
  background: #ffb900;
  color: #061f31;
  font-size: 30px;
  font-weight: 700;
}
