@import url('https://fonts.googleapis.com/css2?family=Josefin+Sans:wght@300;400;600&display=swap');

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

body {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 16px;
  background-image: linear-gradient( 135deg, hsl(0, 0%, 100%), hsl(0, 100%, 98%) );
  background-repeat: no-repeat;
  color: hsl(0, 6%, 24%);
  width: 100%;
}

.header__nav {
  padding: 2rem 1rem;
}

.bg-hero {
  margin-bottom: 1rem;
}

.bg-hero__img--mobile {
  width: 100%;
}

.main-text {
  padding: 3rem 0;
  text-align: center;
  max-width: 450px;
  margin: 0 auto;
}

.main-text__title {
  font-size: 3rem;
  letter-spacing: 10px;
  line-height: 1.1;
  text-transform: uppercase;
}

.main-text__title--red {
  color: hsl(0, 36%, 70%);
  font-weight: 200;
}

.main-text__description {
  line-height: 1.5;
  color: hsl(0, 36%, 70%);
  margin-top: 1.5rem;
  margin-bottom: 2rem;
}

.form {
  position: relative;
}

.form__input {
  background-color: transparent;
  width: 90%;
  height: 55px;
  font-size: 0.9rem;
  padding: 15px 30px;
  border: 1px solid hsl(0, 36%, 70%);
  border-radius: 50px;
  outline: none;
}

.form__input:focus {
  border-width: 2px;
	box-shadow: 0px 0px 10px hsla(0, 36%, 70%, 0.5);
}

.form__input::placeholder {
  color: hsla(0, 36%, 70%, 0.705);
}

.form--error input {
  border: 2px solid hsl(0, 93%, 68%);
}

.form__error-icon {
  display: none;
}

.form--error .form__error-icon {
  display: inline-block;
  position: absolute;
  top: 15px;
  right: 110px;
}

.form__btn-submit {
  background-image: linear-gradient(135deg, hsl(0, 80%, 86%), hsl(0, 74%, 74%));
  box-shadow: 2px 5px 10px hsla(0, 36%, 70%, 0.5);
  border: none;
  border-radius: 50px;
  position: absolute;
  top: 0;
  right: 0;
  width: 100px;
  height: 55px;
  outline: none;
  cursor: pointer;
  transition: box-shadow 0.2s ease;
}

.form__btn-submit:hover {
  box-shadow: 5px 10px 20px 0px hsl(0, 36%, 70%);
}

.form--error-description,
.form--success-description {
  display: none;
}

.form--error .form--error-description {
  display: block;
  color: hsl(0, 93%, 68%);
  text-align: left;
  padding-top: 10px;
  padding-left: 55px;
}

.form--success .form--success-description {
  display: block;
  text-align: left;
  padding-top: 10px;
  padding-left: 50px;
}

.footer {
  font-size: 0.8rem;
  padding-right:3rem;
  padding-left:3rem;
  padding-bottom: 1.5rem;
  text-align: center;
  max-width: 600px;
}

.link {
  text-decoration: none;
  color: hsl(0, 74%, 74%);
  cursor: pointer;
}

.link:hover {
  opacity: 0.7;
}

@media screen and (min-width: 600px){
  .container {
    display: flex;
    height: 100vh;
  }

  .header__nav {
    padding: 2rem 0;
  }

  .header__logo-img {
    width: 200px;
  }

  .bg-hero {
    display: none;
  }

  .container-desktop__left {
    flex: 3;
    flex-wrap: wrap;
    background-image: url(./images/bg-pattern-desktop.svg);
    background-size: cover;
    background-position: center center;
    padding-left: 40px;
    padding-right: 40px;
    width: 500px;
  }

  .inner-container {
    max-width: 500px;
    margin: auto;
  }

  .main-text {
    text-align: left;
    margin: 0;
  }

  .main-text__title {
    font-size: 3.5rem;
  }

  .form--error .form__error-icon {
    right: 140px;
  }

  .form__btn-submit {
    right: 30px;
  }

  .form--error .form--error-description, 
  .form--success .form--success-description {
    padding-left: 30px;
  }

  .footer {
    padding-bottom: 0;
    text-align: left;
  }

  .container-desktop__right {
    flex: 2;
    background-image: url(./images/hero-desktop.jpg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    width: 100%;
  }
}