@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

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

a {
  text-decoration: none;
  color: inherit;
}

body {
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  color: white;
  background-image: url(./images/bg-intro-mobile.png);
  background-size: cover;
  background-color: hsl(0, 100%, 74%);
  width: 100%;
}

  .container {
    width: 85%;
    margin: 0 auto;
    padding-top: 40px;
    padding-bottom: 40px;
    text-align: center;
  }

    .container__title {
      padding: 15px;
    }

    .container__paragraph {
      margin: 0 auto;
      margin-bottom: 30px;
    }

    .container__button {
      font-size: 1rem;
      width: 100%;
      min-height: 60px;
      padding: 20px;
      margin-bottom: 25px;
      border-radius: 10px;
      border: none;
      box-shadow: 0px 7px 0px 0px rgba(0,0,0,0.2);
      background-color: hsl(248, 32%, 49%);
      color: white;
      cursor: pointer;
      outline: none;
    }

      .container__button--strong {
        font-size: 1.1rem;
      }

    .form {
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      background-color: white;
      padding: 25px;
      border-radius: 10px;
      box-shadow: 0px 8px 0px 0px rgba(0,0,0,0.2);
    }

      .form__control {
        position: relative;
        width: 100%;
      }

        .form__input {
          width: 100%;
          height: 50px;
          margin-bottom: 30px;
          border: 1px solid hsl(247, 6%, 70%);
          border-radius: 5px;
          padding-left: 25px;
          color: rgba(0, 0, 0, 0.7);
          font-size: 1rem;
          font-weight: bold;
          outline: none;
        }

          .form__input:focus {
            border: 1px solid hsl(248, 32%, 49%);
          }

          .form input::placeholder {
            font-size: 0.9rem;
          }

        .form__control--error input {
          border: 2px solid hsl(0, 100%, 74%);
          color: hsl(0, 100%, 74%);
          font-weight: 700;
        }

          .form__control--error input:focus {
            border: 2px solid hsl(0, 100%, 74%);
          }

        .form__error-icon {
          display: none;
          position: absolute;
          top: 15px;
          right: 25px;
        }

        .form__control--error .form__error-icon {
          display: block;
        }

        .form__error-advice {
          display: none;
        }

        .form__control--error .form__error-advice{
          display: block;
          color: hsl(0, 100%, 74%);
          font-style: italic;
          position: absolute;
          top: 55px;
          right: 5px;
        }

        .form__button {
          width: 100%;
          height: 60px;
          margin-bottom: 15px;
          border-radius: 5px;
          border: none;
          box-shadow: inset 0px -5px 0px 0px rgba(0,0,0,0.2);
          background-color: hsl(154, 59%, 51%);
          color: white;
          font-size: 1rem;
          font-weight: 600;
          text-transform: uppercase;
          cursor: pointer;
          outline: none;
        }

        .form__advice {
          color: rgba(0, 0, 0, 0.5);
          font-size: 0.9rem;
        }

          .form__advice--terms {
            font-weight: 600;
            color: hsl(0, 100%, 74%);
          }
@media screen and (min-width: 800px) {
  body {
    background-image: url(./images/bg-intro-desktop.png);
  }

    .container {
      width: 100%;
      height: 100vh;
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      align-items: center;
      padding-top: 5%;
      padding-bottom: 5%;
      padding-left: 10%;
      padding-right: 10%;
    }

      .container__left {
        flex: 1;
        padding-right: 4%;
        text-align: left;
      }

        .container__title {
          max-width: 90%;
          font-size: 3rem;
          line-height: 1.2;
          padding-left: 0px;
          padding-bottom: 25px;
        }

        .container__paragraph {
          max-width: 97%;
          margin: 0;
        }

      .container__right {
        flex: 1;
      }

        .container__button {
          padding: 5px;
        }

        .form {
          padding: 5%;
        }

}