@import url("https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap");

* {
  box-sizing: border-box;
  font-family: var(--fonte);
}

:root {
  --cor1: hsl(234, 29%, 20%);
  --cor2: hsl(4, 100%, 67%);
  --cor3: hsl(235, 18%, 26%);
  --cor4: hsl(231, 7%, 60%);
  --cor5: hsl(0, 0%, 100%);
  --cor6: hsl(0, 62%, 80%);
  --fonte: "Roboto", sans-serif;
}

body {
  height: 100vh;
  width: 412px;
  margin: 0;
}

main {
  display: block;
  width: 100%;
}

#img-logo {
  background-image: url(../assets/images/illustration-sign-up-mobile.svg);
  background-size: cover;
  height: 300px;
  width: 100%;
  border-radius: 0px 0px 20px 20px;
}

h1 {
  font-size: 45px;
  font-weight: bolder;
  padding-left: 20px;
}

h2 {
  font-size: 18px;
  padding-left: 25px;
  padding-bottom: 20px;
  font-weight: 400;
}

p {
  font-size: 18px;
  padding-left: 20px;
  margin: 0;
  padding-bottom: 20px;
  font-weight: 400;
}

p img {
  padding-right: 10px;
}

.list {
  display: flex;
  align-items: flex-start;
  width: 90%;
  padding-left: 25px;
}

#email-area {
  display: flex;
  flex-direction: column;
  margin-top: 30px;
  align-items: center;
  position: relative;
}

#span1 {
  position: absolute;
  left: 6%;
  font-weight: bolder;
}

#span2 {
  color: var(--cor2);
  font-weight: bolder;
  position: absolute;
  right: 5%;
  display: none;
}

label {
  width: 90%;
  font-weight: bolder;
}

#email {
  width: 90%;
  height: 60px;
  border: 1px solid var(--cor4);
  border-radius: 10px;
  margin-top: 30px;
  margin-bottom: 20px;
}

input:focus {
  outline: none;
}

#send {
  width: 90%;
  height: 60px;
  border-radius: 10px;
  background-color: var(--cor1);
  color: white;
  font-size: 16px;
  font-weight: bolder;
}

#success {
  height: 100vh;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

#success h2 {
  font-size: 50px;
  font-weight: bolder;
}

#success p {
  font-size: 18px;
}

#success-img {
  background-image: url(../assets/images/icon-list.svg);
  width: 100%;
  margin-left: 15%;
  height: 80px;
  background-size: contain;
  background-repeat: no-repeat;
}

#send2 {
  position: absolute;
  top: 90%;
  width: 90%;
  height: 60px;
  border-radius: 10px;
  background-color: var(--cor1);
  color: white;
  font-size: 16px;
  font-weight: bolder;
}

@media (min-width: 1200px) {
  body {
    width: 100vw;
    height: 100vh;
    display: flex;
    overflow: hidden;
  }

  #container {
    display: flex;
    align-items: center;
    flex-direction: row-reverse;
    width: 80%;
    height: 80%;
    position: relative;
    margin: auto;
  }

  #img-logo {
    background: url(../assets/images/illustration-sign-up-desktop.svg);
    border-radius: 20px 20px 20px 20px;
    height: 90%;
    background-repeat: no-repeat;
    background-size: cover;
    position: absolute;
    left: 51%;
    width: 30%;
  }

  #area2 {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 90%;
    position: absolute;
    right: 51%;
    width: 30%;
    padding: 20px;
  }

  h1 {
    font-size: 50px;
  }

  #success {
    display: none;
    justify-content: center;
    width: 500px;
    height: 500px;
    padding: 30px;
    margin: auto;
    border-radius: 20px;
    background-color: white;
  }

  #send2 {
    width: 80%;
    position: static;
  }
}
