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

body {
  background-image: url(../images/bg-intro-desktop.png);
  background-color: hsl(0, 100%, 74%);
  line-height: 1.3;
  font-size: 16px;
  font-family: "Poppins";
}

.main-container {
  display: flex;
  justify-content: center;
}

.container {
  max-width: 1000px;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.card1 {
  max-width: 500px;
  color: white;
  padding: 15px;
}

.card1 h1 {
  line-height: 1;
  font-size: 40px;
  margin-bottom: 30px;
}

.card1 p {
  font-size: 14px;
}

.card2 {
  max-width: 500px;
  padding: 15px;
}

.try-it {
  width: 450px;
  height: 48px;
  background-color: hsl(248, 32%, 49%);
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 8px;
  margin-bottom: 20px;
  box-shadow: 0 6px 3px hsl(0, 81%, 66%);
}

.try-it span {
  font-weight: bolder;
  margin-right: 3px;
}

form {
  width: 450px;
  background-color: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 6px 3px hsl(0, 81%, 66%);
}

input {
  width: 380px;
  height: 48px;
  padding: 0 25px;
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid hsla(246, 25%, 77%, 0.575);
  font-weight: 550;
}

input:focus {
  border: 1.5px solid hsl(248, 32%, 49%);
  outline: none;
}

button {
  width: 380px;
  height: 48px;
  background-color: hsl(154, 59%, 51%);
  color: white;
  border-radius: 5px;
  border: 1px solid hsl(248, 32%, 49%);
  box-shadow: 0 1px 1px hsl(154, 49%, 32%);
  font-weight: 600;
  margin-bottom: 10px;
}

button:hover {
  background-color: hsla(154, 59%, 51%, 0.737);
}

.terms {
  font-size: x-small;
  text-align: center;
  color: hsl(246, 25%, 77%);
}

.ts {
  font-weight: 600;
  color: hsl(0, 100%, 74%);
}

.input-container {
  position: relative;
}

.input-field {
  width: 100%;
  padding-right: 40px; 
}

.icon-error {
  position: absolute;
  right: 10px;
  top: 30%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  display: none;
}

.error {
  color: hsl(0, 100%, 74%);
  font-size: 12px;
  font-style: italic;
  display: flex;
  justify-content: end;
  border-color: hsl(0, 100%, 74%);
}

@media (max-width: 768px) {
  .container {
    display: flex;
    flex-direction: column;
    text-align: center;
  }

  .try-it {
    height: 60px;
    width: 410px;
  }

  form {
    height: 400px;
    width: 410px;
  }

  input {
    width: 330px;
  }

  button {
    width: 330px;
  }
}

@media (max-width: 438px) {
  .card1 h1 {
    font-size: 24px;
  }

  .try-it {
    height: 60px;
    width: 270px;
    font-size: 12px;
    padding: 0 20px;
  }

  form {
    height: 300px;
    width: 270px;
    padding: 15px;
  }

  input {
    height: 35px;
    width: 230px;
  }

  button {
    height: 35px;
    width: 230px;
  }
}
