:root {
  --clr-red: hsl(0, 100%, 74%);
  --clr-green: hsl(154, 59%, 51%);
  --clr-blue: hsl(248, 32%, 49%);
  --clr-dark-blue: hsl(249, 10%, 26%);
  --clr-grayish-blue: hsl(246, 25%, 77%);

  --ff-poppins: 'Poppins', sans-serif;

  --fw-400: 400;
  --fw-500: 500;
  --fw-600: 600;
  --fw-700: 700;
}

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

img,
picture,
video,
canvas,
svg {
  max-width: 100%;
  display: block;
}

input,
button,
optgroup,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
}

body {
  min-height: 100vh;
  font-family: var(--ff-poppins);
  font-size: 1rem;
  font-weight: var(--fw-400);
  line-height: 1.5;
  background: var(--clr-red) url(../images/bg-intro-mobile.png);
}

.text-content {
  text-align: center;
  padding: 1.5625rem;
  margin-top: 4.0625rem;
  margin-bottom: 1.25rem;
}

.text-content h1 {
  font-size: 1.75rem;
  color: white;
  line-height: 1.3;
  margin-bottom: 1.5625rem;
}

.text-content p {
  font-weight: var(--fw-500);
  color: white;
  line-height: 1.6;
}

.form-content {
  padding: 1.5625rem;
}

.banner {
  font-size: 0.9375rem;
  color: white;
  text-align: center;
  background-color: var(--clr-blue);
  padding: 1.25rem 4.375rem;
  border-radius: 0.625rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 8px 0 0 hsla(249, 10%, 26%, 0.2);
}

.banner span {
  font-weight: var(--fw-700);
}

.form-wrapper {
  background-color: white;
  padding: 1.5625rem;
  border-radius: 0.625rem;
  box-shadow: 0 8px 0 0 hsla(249, 10%, 26%, 0.2);
}

.form label {
  position: relative;
}

.error-icon {
  position: absolute;
  top: 0;
  right: 2.1875rem;
  opacity: 0;
}

.error-message {
  font-size: 0.6875rem;
  color: var(--clr-red);
  font-style: italic;
  font-weight: var(--fw-500);
  text-align: right;
  display: block;
  margin-top: -0.9375rem;
  margin-bottom: 0.9375rem;
}

.input {
  width: 100%;
  outline: none;
  padding: 0.9375rem;
  border: 1px solid hsla(246, 25%, 77%, 0.5);
  border-radius: 0.3125rem;
  margin-bottom: 0.9375rem;
}

.input:focus {
  border-color: var(--clr-dark-blue);
}

.input::placeholder {
  font-size: 0.875rem;
  font-weight: var(--fw-600);
}

.input.error-border {
  border: 2px solid var(--clr-red);
}

.btn-submit {
  background-color: var(--clr-green);
  border: none;
  font-weight: var(--fw-600);
  color: white;
  text-transform: uppercase;
  width: 100%;
  height: 3.375rem;
  border-radius: 0.3125rem;
  cursor: pointer;
  box-shadow: 0 4px 0 0 hsl(154, 59%, 45%);
  margin-bottom: 0.9375rem;
}

.btn-submit:hover {
  opacity: 0.6;
}

.terms {
  padding: 0 1.875rem;
}

.terms p {
  font-size: 0.625rem;
  color: var(--clr-grayish-blue);
  font-weight: var(--fw-500);
  text-align: center;
  line-height: 2;
}

.terms a {
  text-decoration: none;
  color: var(--clr-red);
  font-weight: var(--fw-700);
}

@media screen and (min-width: 75rem) {
  body {
    background: var(--clr-red) url(../images/bg-intro-desktop.png);
    display: flex;
    justify-content: center;
    align-items: center;
  }

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

  .form-content {
    width: 37.5rem;
  }

  .text-content {
    text-align: left;
    width: 37.5rem;
  }

  .text-content h1 {
    font-size: 3.125rem;
  }

  .form-wrapper {
    padding: 2.5rem;
  }

  .input {
    margin-bottom: 1.25rem;
    padding: 0.9375rem 1.875rem;
  }
}
