@font-face {
  font-family: "Poppins";
  src: url("../fonts/Poppins-Light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("../fonts/Poppins-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("../fonts/Poppins-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("../fonts/Poppins-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --sea-salt: #f7f8f8;
  --eerie: #252525;
  --cardinal: #ce2036;
  --accent: #e82d3a;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: Poppins, system-ui, sans-serif;
  font-weight: 300;
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--eerie);
  -webkit-font-smoothing: antialiased;
}

.hidden {
  display: none !important;
}

.page {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.5rem 3rem;
  background: var(--sea-salt);
}

.page--incorrect {
  background: var(--cardinal);
}

.page__inner {
  width: 100%;
  max-width: 28rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page__inner--incorrect {
  max-width: 20rem;
}

.brand-logo {
  width: min(18rem, 78vw);
  height: auto;
  display: block;
  margin-bottom: 2.5rem;
  filter: none;
}

.brand-logo--incorrect {
  margin-bottom: 2rem;
}

.welcome,
.prompt {
  margin: 0;
  max-width: 18rem;
  letter-spacing: 0.02em;
  font-size: 0.9375rem;
  line-height: 1.55;
}

.prompt {
  margin-bottom: 2.25rem;
}

.id-field {
  position: relative;
  width: 100%;
  max-width: 17rem;
  margin-bottom: 0.5rem;
}

.id-field--readonly {
  margin-top: 0.25rem;
  margin-bottom: 2.5rem;
}

.id-field__input,
.id-field__display {
  width: 100%;
  border: 0;
  background: transparent;
  font-family: inherit;
  font-weight: 300;
  font-size: 0.9375rem;
  line-height: 1.5;
  letter-spacing: 0.28em;
  text-align: center;
  color: var(--eerie);
  padding: 0 0 0.35rem;
  outline: none;
}

.id-field__input::placeholder {
  color: color-mix(in srgb, var(--eerie) 35%, transparent);
  letter-spacing: 0.35em;
}

.page--incorrect .id-field__display {
  margin: 0;
  letter-spacing: 0.35em;
}

.id-field__line {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--eerie);
}

.incorrect-label {
  margin: 0 0 1.75rem;
  font-weight: 300;
  font-size: 0.9375rem;
  letter-spacing: 0.12em;
}

.redirect-notice {
  margin: 0;
  font-weight: 300;
  font-size: 0.875rem;
  letter-spacing: 0.06em;
}

.lost {
  margin-top: 2.75rem;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lost__heading {
  margin: 0 0 0.2rem;
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--cardinal);
}

.lost__copy {
  margin: 0 0 0.85rem;
  max-width: 16rem;
  font-size: 0.75rem;
  line-height: 1.45;
}

.lost__buttons {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  width: 100%;
  max-width: 20rem;
}

.lost__link {
  display: block;
  line-height: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.lost__link:hover,
.lost__link:focus-visible {
  opacity: 0.92;
  transform: translateY(-1px);
}

.lost__link img {
  height: 1.85rem;
  width: auto;
  max-width: none;
  display: block;
  object-fit: contain;
}

@media (min-width: 480px) {
  .brand-logo {
    width: 19.5rem;
  }
}
