@import url("https://fonts.googleapis.com/css2?family=Big+Shoulders+Display:wght@700&family=Fraunces:opsz,wght@9..144,700&family=Kumbh+Sans:wght@400;700&family=Lexend+Deca&family=Libre+Franklin:wght@300;600;700&family=Montserrat:wght@500;700&family=Open+Sans&family=Overpass:wght@400;700&family=Red+Hat+Display:wght@500;700;900&display=swap");

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-size: 20px;
  font-family: "Libre Franklin";
}

.container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  min-height: 100vh;
  width: 100%;
  text-align: center;
}

.logo {
  padding-bottom: 2rem;
}

h1 {
  font-family: "Libre Franklin";
  font-weight: 300;
  color: hsl(0, 0%, 59%);
  font-size: 2.2rem;
}

span {
  color: black;
  font-weight: bold;
  font-size: 2rem;
}

h2 {
  font-family: "Libre Franklin";
  font-weight: 300;
  margin-top: 0.5rem;
  margin-bottom: 1.4rem;
}

form {
  display: flex;
  justify-content: center;
  align-items: center;
}

input {
  border: 2px solid hsl(223, 100%, 88%);
  border-radius: 50px;
  padding: 10px;
  padding-left: 30px;
  width: 550px;
  height: 60px;
  outline: none;
}

input::placeholder {
  color: hsl(223, 100%, 88%);
}

form button[type="submit"] {
  background-color: hsl(223, 87%, 63%);
  width: 40%;
  border-radius: 50px;
  padding: 10px;
  height: 60px;
  margin-left: 10px;
  border: none;
  color: white;
  box-shadow: hsl(0, 0%, 59%);
}

.dash-img {
  width: 40%;
  margin-top: 4.8rem;
}

.logos {
  margin-top: 4rem;
  margin-bottom: 1rem;
}

.copyright {
  color: hsl(0, 0%, 59%);
}

form.error input[type="email"] {
  border-color: hsl(354, 100%, 66%);
}

form.error .error-text {
  position: absolute;
  top: 380px;
  font-size: 1rem;
  color: hsl(354, 100%, 66%);
  font-weight: 500;
}

@media (max-width: 1000px) {
  form {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  input {
    width: 150%;
    margin-bottom: 1.5rem;
  }

  form button[type="submit"] {
    width: 150%;
    margin-top: 1rem;
  }
  form.error .error-text {
    top: 270px;
    margin-top: 0.5rem;
  }
}

@media (max-width: 500px) {
  form.error .error-text {
    top: 325px;
    margin-top: 0.5rem;
  }
}

@media (min-width: 1200px) {
  form.error .error-text {
    top: 260px;
    margin-top: 0.5rem;
  }
}
