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

html,
body {
  height: 100vh;
  font-size: 16px;
  font-family: 'Josefin Sans';
}
:root {
  --pink-400: hsl(0, 36%, 70%);
  --red-500: hsl(0, 93%, 68%);
  --grey-900: hsl(0, 6%, 24%);
  --gradient-1: linear-gradient(135deg, hsl(0, 0%, 100%), hsl(0, 100%, 98%));
  --gradient-2: linear-gradient(135deg, hsl(0, 80%, 86%), hsl(0, 74%, 74%));
}
body {
  background-color: var(--gradient-1);
  padding-top: 2rem;
}
.logo-img {
  width: 8rem;
  height: 1.25rem;
  padding-left: 2rem;
  margin-bottom: 2rem;
}
.hero-mobile-img {
  width: 100%;
  height: 15.6rem;
}
.hero-desktop-img {
  display: none;
}

.coming-soon-container {
  margin-top: 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 2rem;

  h1:first-child {
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--pink-400);
    text-transform: uppercase;
    letter-spacing: 0.6rem;
  }
  h1:nth-child(2) {
    font-size: 2.5rem;
    text-transform: uppercase;
    letter-spacing: 0.6rem;
    text-align: center;
    font-weight: 400;
    margin-bottom: 1rem;
    color: var(--grey-900);
  }
  p {
    text-align: center;
    color: var(--pink-400);
    font-size: 0.875rem;
    line-height: 155%;
  }
}
.email-container {
  margin-top: 2rem;
  width: 100%;

  form {
    display: flex;
    flex-direction: column;
    position: relative;

    input {
      height: 3rem;
      padding: 0.5rem 1.5rem;
      border-radius: 1.75rem;
      font: inherit;
      border: solid 0.175rem var(--pink-400);
    }
    .error-message {
      color: var(--red-500);
      position: absolute;
      top: 3.5rem;
      right: 8rem;
    }
    .error-icon {
      width: 1.5rem;
      height: 1.5rem;
      position: absolute;
      top: 0.75rem;
      right: 4.5rem;
    }
    .success-icon {
      width: 1.5rem;
      height: 1.5rem;
      position: absolute;
      top: 0.75rem;
      right: 4.5rem;
    }
    .success-message {
      width: 100%;
      color: green;
      position: absolute;
      top: 3.5rem;
      right: 0.2rem;
    }
    input::placeholder {
      color: hsla(0, 36%, 70%, 50%);
    }
    input.invalid {
      border: solid 0.125rem var(--red-500);
    }
    input.valid {
      border: solid 0.125rem green;
    }
  }
}

.arrow-submit {
  position: absolute;
  background: var(--gradient-2);
  top: 0;
  right: 0;
  width: 4rem;
  height: 3rem;
  border: none;
  border-radius: 1.75rem;

  img {
    width: 0.5rem;
    height: 1rem;
  }
}
.arrow-submit:hover {
  cursor: pointer;
}
.hidden {
  display: none;
}
.attribution {
  font-size: 11px;
  text-align: center;
  margin-top: 10rem;
}
.attribution a {
  color: hsl(228, 45%, 44%);
}

@media only screen and (min-width: 24rem) {
  body {
    background-image: url('../images/bg-pattern-desktop.svg');
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    flex-direction: column;
    padding-top: 0;
  }
  .main-container {
    display: flex;
    flex-direction: row-reverse;
    max-width: 100%;
    min-height: 100%;
    margin-left: 10.3rem;
    position: relative;
  }
  .logo-img {
    margin-top: 5rem;
    position: absolute;
    top: 0;
    left: 0;
    width: 10rem;
    height: 1.7rem;
  }
  .hero-mobile-img {
    display: none;
  }
  .hero-desktop-img {
    display: block;
    max-height: 100%;
    width: 60%;
  }
  .coming-soon-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;

    h1:first-child {
      font-size: 4rem;
      letter-spacing: 1rem;
    }
    h1:nth-child(2) {
      font-size: 4rem;
      letter-spacing: 1rem;
      text-align: left;
      font-weight: 400;
      margin-bottom: 2rem;
      margin-right: 10rem;
    }
    p {
      text-align: left;
      font-size: 1rem;
      line-height: 215%;
      margin-right: 9rem;
    }
  }
  .email-container {
    form {
      position: relative;
      input {
        margin-right: 10rem;
      }
      .error-icon {
        position: absolute;
        top: 0.75rem;
        right: 15rem;
      }
      .error-message {
        position: absolute;
        top: 3.5rem;
        right: 11rem;
      }
      .success-icon {
      position: absolute;
      top: 0.75rem;
      right: 15rem;
    }
    .success-message {
      position: absolute;
      top: 3.5rem;
      left: 1rem;
    }
    }
  }

  .arrow-submit {
    margin-right: 10rem;
  }

  .attribution {
    display: none;
  }
}
