@font-face {
  font-family: "Roboto";
  src: url("../fonts/Roboto-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: "Roboto";
  src: url(../fonts/Roboto-Bold.ttf) format("truetype");
  font-weight: 700;
  font-style: normal;
}
* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

:root {
  font-size: 62.5%;
}

body {
  display: grid;
  place-content: center;
  margin: 0 auto;
  font-size: 1.6rem;
  font-family: "Roboto", sans-serif;
  position: relative;
  background-color: hsl(234, 29%, 20%);
}

#app {
  background-color: hsl(0, 0%, 100%);
}

header img {
  object-fit: cover;
}

main {
  padding: 3.2rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 2.4rem;
}
main h1, main p {
  color: hsl(234, 29%, 20%);
}
main h1, main label, main button {
  font-weight: 700;
}
main .list-item {
  display: flex;
  gap: 1em;
  align-items: start;
}
main form {
  display: flex;
  flex-direction: column;
  gap: 2.4rem;
  font-family: "Roboto", sans-serif;
}
main form fieldset {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border: none;
  margin-top: 2rem;
}
main form fieldset .email-label {
  display: flex;
  justify-content: space-between;
}
main form fieldset .email-label label, main form fieldset .email-label span {
  font-size: 1.2rem;
}
main form fieldset .email-label span {
  color: hsl(4, 100%, 67%);
  font-weight: 700;
  display: none;
}
main form fieldset .email-label .error-message {
  color: hsl(4, 100%, 67%);
}
main form fieldset input {
  border: 1px solid hsl(0, 0%, 58%);
  padding: 2rem 3rem;
  border-radius: 0.8rem;
  font-size: 1.6rem;
}
main form fieldset .error-input {
  background-color: hsla(4, 100%, 67%, 0.216);
  border: 1px solid hsl(4, 100%, 67%);
  color: hsl(4, 100%, 67%);
}
main form button {
  background-color: hsl(234, 29%, 20%);
  color: hsl(0, 0%, 100%);
  border: none;
  padding: 2rem 3rem;
  border-radius: 0.8rem;
}
main form button:hover {
  cursor: pointer;
  background-color: hsl(235, 18%, 26%);
}

.hidden#success-page {
  display: none;
}

#success-page {
  display: grid;
  place-content: center;
  height: 100vh;
  background-color: hsl(0, 0%, 100%);
  position: absolute;
}
#success-page #success-info {
  display: flex;
  flex-direction: column;
  gap: 3.2rem;
  margin: 3.2rem 2rem;
  padding-bottom: 8rem;
}
#success-page #success-info img {
  width: 60px;
  height: 60px;
}
#success-page #success-info h2, #success-page #success-info p span {
  color: hsl(234, 29%, 20%);
  font-weight: 700;
}
#success-page #success-info h2 {
  font-size: 3.2rem;
}
#success-page #success-info p {
  color: hsl(234, 29%, 20%);
  line-height: 150%;
}
#success-page button {
  background-color: hsl(234, 29%, 20%);
  color: hsl(0, 0%, 100%);
  font-weight: 700;
  letter-spacing: 0.05rem;
  border: none;
  padding: 2rem 3rem;
  border-radius: 0.8rem;
  margin: 0 2rem;
  transform: translateY(224%);
}
#success-page button:hover {
  cursor: pointer;
  background-color: hsl(235, 18%, 26%);
}

@media screen and (min-width: 1440px) {
  body {
    margin: 12rem auto;
  }
  #app {
    display: flex;
    flex-direction: row-reverse;
    gap: 4rem;
    background-color: hsl(0, 0%, 100%);
    border-radius: 1rem;
    padding: 2rem;
  }
  #app.hidden {
    display: none;
  }
  header {
    flex-basis: 60%;
  }
  header img {
    width: 100%;
    height: 100%;
    border-radius: 0.8rem;
  }
  main {
    padding: 4rem 2rem;
  }
  main h1 {
    font-size: 4.8rem;
  }
  #success-page {
    margin: 0 48rem;
    padding: 2rem 3rem;
    border-radius: 2rem;
    height: 120%;
    height: auto;
  }
  #success-page #success-info {
    padding-bottom: 6rem;
  }
  #success-page #success-info h2 {
    font-size: 4.8rem;
  }
  #success-page button {
    transform: translateY(-50%);
  }
}

/*# sourceMappingURL=style.css.map */
