@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap");
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
.attribution {
  font-size: 11px;
  text-align: center;
}
.attribution a {
  color: hsl(228, 45%, 44%);
}
:root {
  --red: hsl(0, 100%, 74%);
  --green: hsl(154, 59%, 51%);
  --blue: hsl(248, 32%, 49%);
  --darkBlue: hsl(249, 10%, 26%);
  --greyBlue: hsl(246, 25%, 77%);
}
body {
  display: grid;
  grid-template-columns: 1fr;
  font-size: 16px;
  background-image: url(images/bg-intro-mobile.png);
  background-color: var(--red);
  color: ghostwhite;

  font-family: "Poppins", sans-serif;
}
.container {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  margin: 20px;
}
h2 {
  padding: 75px 20px 0;
  line-height: 1.4;
}

h3,
h2,
p {
  text-align: center;
  padding-left: 20px;
  padding-right: 20px;
}
p {
  margin-top: 20px;
  line-height: 1.7;
  opacity: 0.9;
}
h3 {
  background-color: var(--blue);
  color: rgb(204, 198, 198);
  border-radius: 10px;
  font-size: 15px;
  font-weight: 400;
  padding: 20px 70px;
  text-align: center;
  margin-top: 60px;
  box-shadow: 0 8px 0 rgba(0, 0, 0, 0.175);
}
h3 span {
  font-weight: 700;
  color: rgb(235, 235, 238);
}
form {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  background-color: white;
  border-radius: 10px;
  margin: 25px 5px;
  padding: 20px 25px;
  box-shadow: 0 8px 0 rgba(0, 0, 0, 0.175);
}
form div {
  display: flex;
  flex-direction: column;
  position: relative;
  width: 100%;
  height: 100%;
  padding: 10px 20px 0;
  align-items: flex-end;
}
input {
  font-family: "Poppins", sans-serif;
  width: 100%;
  padding: 20px;
  margin: 8px 0px;
  border-radius: 5px;
  outline: none;
  border: 1px solid var(--greyBlue);
  font-weight: 700;
  font-size: 15px;
}
input:invalid {
  border: 2px solid var(--red);
}
input:focus {
  border: 2px solid var(--darkBlue);
}
.redborder {
  border: 2px solid var(--red);
}

form img {
  position: absolute;
  top: 32%;
  right: 10%;
}
form small {
  opacity: 0.8;
  font-size: 12px;
  color: var(--red);
  font-weight: 500;
  font-style: italic;

  margin-bottom: 10px;
}

::placeholder {
  opacity: 0.8;
}
button {
  width: 100%;
  padding: 15px;
  font-family: "Poppins", sans-serif;
  background-color: var(--green);
  outline: none;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  font-weight: 500;
  margin: 10px;
  color: rgba(248, 248, 255, 0.927);
  text-transform: uppercase;
  border: 1px solid hsl(154, 59%, 45%);
  box-shadow: 0 2px hsl(154, 59%, 45%);
  cursor: pointer;
}
button:focus {
  transform: translateY(3px);
  box-shadow: none;
  filter: brightness(1.1);
}

.hideError {
  display: none;
}
.tag {
  color: hsl(250, 11%, 58%);
  text-align: center;
  font-size: 12px;
  padding: 0 10px;
  margin-bottom: 10px;
}
.tag a {
  color: var(--red);
  font-weight: 700;
}
.sr-only {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
@media (min-width: 925px) {
  body {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 0.2fr;
    height: 100vh;
     background-image: url(images/bg-intro-desktop.png);
     background-size: cover;
  }
  .container {
    scale: 0.9;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 40px;
    max-height: 700px;
    max-width: 100%;
    column-gap: 50px;
  }
  .right {
    width: 550px;
  }
  .left {
    max-width: 40%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
  h2,
  p {
    text-align: left;
  }
  h2 {
    font-size: 3.5rem;
  }
  footer {
    margin-top: 50px;
  }
}
