/*STYLE GERAL*/
@import url('https://fonts.googleapis.com/css2?family=Josefin+Sans:wght@300;400;600&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  background:linear-gradient(136deg, hsl(0, 0%, 100%), hsl(0, 100%, 98%)) ;
}

body {
  background-image: url("./images/bg-pattern-desktop.svg");
}

/*STYLE CONTAINER*/
.container {
  width: 100%;
  max-width: 1440px;
  height: 100vh;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

/*STYLE CONTENT*/
.content {
  padding: 4rem 5rem;
  position: relative;
}

/*STYLE H1 DO CONTENT
<h1><span>We're</span> coming soon</h1>
*/
.content h1 {
  font-size: 3.5rem;
  font-family: 'Josefin Sans', sans-serif;
  text-transform: uppercase;
  font-weight: 600;
  color: hsl(0, 6%, 24%);
  max-width: 300px;
  width: 100%;
  letter-spacing: 15px;
  line-height: 1.1;
  margin-top: 7rem;
}

/*STYLE SPAN DENTRO DO H1 DE CONTENT*/
.content h1 > span {
  font-weight: 300;
  color: hsl(0, 36%, 70%);
}

/*STYLE DO P DE CONTENT
  <p>Hello fellow shoppers! We're currently building our new fashion store. Add your email below to stay up-to-date with announcements and our launch deals.</p>
*/
.content p {
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 400;
  font-size: 1rem;
  color: hsl(0, 36%, 70%);
  max-width: 440px;
  line-height: 1.5;
  margin-top: 1rem;
}

.content form {
  display: flex;
}

/*STYLE INPUT DE EMAIL*/
.content form input {
  width: 100%;
  max-width: 350px;
  margin-top: 2rem;
  padding: 1rem .6rem;
  border-radius: 2rem;
  border: 1px solid hsl(0, 36%, 70%);
  color: hsl(0, 6%, 24%);
  font-family: 'Josefin Sans', sans-serif;
  font-size: 1.125rem;
  font-weight: 400;
  opacity: .5;
  vertical-align: middle;
}

.content form input.active {
  border: 2px solid red;
}

.content form input.active:focus {
  outline: none;
  border: 2px solid red;
}

/*STYLE DO PLACEHOLDER DO INPUT EMAIL*/
.content form input::placeholder {
  color: hsl(0, 36%, 70%);
}

/*STYLE DO INPUT EMAIL NO ESTADO DE FOCO*/
.content form input:focus,
.content form input:hover {
  outline: none;
  border: 1px solid hsl(0, 36%, 70%);
}

/*STYLE DO BUTTON*/
.submit {
  width: 100%;
  max-width: 70px;
  height: 53px;
  border-radius: 2rem;
  border: none;
  background: linear-gradient(136deg, hsl(0, 80%, 86%), hsl(0, 74%, 74%));
  position: relative;
  top: 31.5px;
  right: 42px;
}

.submit.active::before {
  content: "";
  display: inline-block;
  background: url("./images/icon-error.svg");
  width: 24px;
  height: 24px;
  position:absolute;
  right: 80px;
}

.content .error {
  color: red;
}

/*STYLE DA IMAGE*/
.image {
  background-image: url("./images/hero-desktop.jpg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  width: 90%;
}

/*STYLE MOBILE*/
@media (max-width:768px) {
  .container {
    display: flex;
    flex-direction: column;
  }

  .content {
    width: 90%;
    margin: 0 auto;
    padding:4rem 0;
    position: relative;
  }

  .content img {
    position: relative;
    top: -30px;
  }

  .content h1 {
    margin: 480px auto 0 auto;
    text-align: center;
    
  }

  .content p {
    text-align: center;
    margin: 1rem auto 0 auto;
  }

  .image {
    grid-row:1 ;
    height: 400px;
    width: 100%;
    background-position: top;
    background-size: cover;
    position: absolute;
    top: 100px;
  }

  .content form img {
    position: relative;
    top: 4px;
  }
  .content form {
    margin: 0 auto;
    max-width: 400px;
  }
}

@media (max-width:400px) {
  .content h1 {
    letter-spacing: 0px;
  }
}