@font-face {
  font-family: "Roboto";
  src: url("./assets/fonts/Roboto-Regular.ttf");
}

@font-face {
  font-family: "Roboto-bold";
  src: url("./assets/fonts/Roboto-Bold.ttf");
}

:root {
  --tipo-principal: "Roboto", Helvetica, Arial, sans-serif;
  --tipo-secundaria: "Roboto-bold", Verdana;
  --tomato: hsl(4, 100%, 67%);
  --tomato-opacity: #ff625733;
  --dark-slate-grey: hsl(234, 29%, 20%);
  --charcoal-grey: hsl(235, 18%, 26%);
  --grey: hsl(231, 7%, 60%);
  --white: hsl(0, 0%, 100%);
}

* {
  margin: 0;
  padding: 0;
  border: 0;
  box-sizing: border-box;
}

html {
  color: var(--dark-slate-grey);
  font-size: 62.5%;
}

body {
  min-height: 100vh;
  font-size: 1.6rem;
  font-family: var(--tipo-principal);
}

a {
  text-decoration: none;
}

.container {
  max-width: 507px;
  margin: 0 auto;
}

.hero {
  width: 100%;
  height: 284px;
  background: url("./assets/images/illustration-sign-up-mobile.svg") no-repeat;
  margin-bottom: 2em;
}

.info {
  padding: 0 2em;
  display: flex;
  flex-direction: column;
  gap: 1.6em;
}

.info__title {
  font-family: "Roboto-bold";
  font-size: 3.8rem;
}

.info__description {
  line-height: 1.6;
}

.info__list {
  display: flex;
  flex-direction: column;
  gap: 1em;
  list-style: none;
}

.list__item {
  display: flex;
  gap: 16px;
  line-height: 1.6;
}

.list__item > span {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  background: url("./assets/images/check_circle_google-icon-32px.svg") no-repeat;
  background-size: contain;
}

.info__form {
  margin-bottom: 2em;
}

label,
input,
a {
  display: block;
}

.info__form .form__label {
  display: flex;
  justify-content: space-between;
}

.info__form label {
  margin-bottom: 0.8em;
  font-family: var(--tipo-secundaria);
  font-size: 1.2rem;
}

.form__label .form-messages {
  font-size: 1.2rem;
  color: var(--tomato);
  transition: all 300ms ease;
}

.info__form input {
  width: 100%;
  margin-bottom: 2rem;
  padding: 1.4em 1em;
  border: 1px solid #ccc;
  border-radius: 8px;
  cursor: pointer;
}

.info__form input:first-child::placeholder {
  content: "";
  color: var(--grey);
}

.info__form .email.error {
  color: var(--tomato);
  background-color: var(--tomato-opacity);
  border: 1px solid var(--tomato);
}

.info__form .cta {
  font-family: var(--tipo-secundaria);
  background-color: var(--dark-slate-grey);
  color: var(--white);
  transition: background 500ms;
}

.info__form .cta:hover {
  background-color: var(--tomato);
}

/* Success Page Styles */
.scs-container {
  height: 650px;
  margin: 0 auto;
  padding: 4em 1.4em 2em;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.scs-info img {
  display: inline-block;
  margin-bottom: 2em;
  width: 64px;
}

.scs-info h1 {
  font-family: var(--tipo-secundaria);
  margin-bottom: 0.8em;
}

.scs-info p span {
  font-family: var(--tipo-secundaria);
}

.scs-container .return-btn {
  padding: 1.4em 2em;
  font-family: var(--tipo-secundaria);
  font-size: 1.4rem;
  text-align: center;
  color: var(--white);
  background-color: var(--dark-slate-grey);
  border-radius: 8px;
  transition: background 500ms;
  cursor: pointer;
}

.scs-container .return-btn:hover {
  background-color: var(--tomato);
}

@media (min-width: 768px) {
  body {
    background-color: var(--dark-slate-grey);
    display: flex;
    align-items: center;
  }

  .container {
    width: 70%;
    max-width: 820px;
    height: 90vh;
    max-height: 534px;
    padding: 1em;
    display: flex;
    flex-direction: row-reverse;
    background-color: var(--white);
    border-radius: 20px;
  }

  .hero {
    width: 75%;
    height: auto;
    margin-bottom: 0;
    justify-self: flex-start;
    flex-grow: 1;
    background: url("./assets/images/illustration-sign-up-desktop.svg")
      no-repeat;
    background-size: contain;
    background-position: center;
    border-radius: 8px;
  }

  .info {
    width: 100%;
    flex-grow: 4;
    justify-content: center;
    gap: unset;
  }

  .info__title,
  .info__description {
    margin-bottom: 0.4em;
  }

  .info__list {
    margin-bottom: 1.2em;
    gap: 0.2em;
  }

  .list__item {
    align-items: center;
  }

  .info__form {
    margin-bottom: 0;
  }

  /* Success Page Styles */
  .scs-container {
    max-width: 475px;
    height: 475px;
    padding: 2.8em 3.4em;
    background-color: var(--white);
    border-radius: 30px;
  }

  .scs-info img {
    margin-bottom: 1.6em;
  }

  .scs-info h1 {
    margin-bottom: 0.6em;
    font-size: 4.4rem;
  }
}
