@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Primary */
  --Red: hsl(0, 100%, 74%);
  --Green: hsl(154, 59%, 51%);
  /* Accent */
  --Blue: hsl(248, 32%, 49%);
  /* Neutral */
  --Dark-Blue: hsl(249, 10%, 26%);
  --Grayish-Blue: hsl(246, 25%, 77%);
}

body {
  font-family: 'Poppins';
  font-size: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background: url(./images/bg-intro-desktop.png);
  background-repeat: no-repeat;
  background-size: cover;
  background-color: var(--Red);
}

.container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr;
  gap: 0px 0px;
  grid-auto-flow: row;
  grid-template-areas: 'para-box form-box';
  max-width: 100%;
  width: 1200px;
  height: fit-content;
}

/* ------hero box------ */

.para-box {
  grid-area: para-box;
  width: 600px;
  display: flex;
  justify-content: center;
  flex-direction: column;
  padding: 30px;
  color: white;
}

.para-heading {
  font-size: 55px;
  font-weight: 600;
  margin-bottom: 25px;
}

.para-about {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.5;
}

/* ------form box------ */

.form-box {
  grid-area: form-box;
  width: 600px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding: 30px;
}

.try-btn {
  width: 100%;
  height: 60px;
  border: none;
  margin-bottom: 25px;
  padding: 20px 0;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 1px;
  word-spacing: 0.5px;
  color: white;
  background: var(--Blue);
  box-shadow: 0 8px 0 rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: 0.2s ease-in-out;
}

.try-btn:hover {
  background: var(--Dark-Blue);
  letter-spacing: 3px;
  box-shadow: 0 8px 0 rgba(0, 0, 0, 0.4);
}

form {
  position: relative;
  display: flex;
  flex-direction: column;
  background: white;
  padding: 30px;
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 8px 0 rgba(0, 0, 0, 0.2);
}
input {
  margin: 12px 0;
  height: 55px;
  padding: 10px 25px;
  border-radius: 5px;
  border: 1px solid var(--Grayish-Blue);
  font-size: 18px;
}

input::placeholder {
  opacity: 0.7;
}

.error-icon {
  width: 25px;
  position: absolute;
  opacity: 0.8;
  display: none;
}
.error-icon:first-of-type {
  top: 12%;
  right: 10%;
}
.error-icon:nth-of-type(2) {
  top: 28.5%;
  right: 10%;
}
.error-icon:nth-of-type(3) {
  top: 45.2%;
  right: 10%;
}
.error-icon:nth-of-type(4) {
  top: 62%;
  right: 10%;
}

.action-msg {
  position: absolute;
  text-align: right;
  color: var(--Red);
  font-size: 14px;
  font-weight: 600;
  display: none;
}
.action-msg:first-of-type {
  top: 20.6%;
  right: 6%;
}
.action-msg:nth-of-type(2) {
  top: 37%;
  right: 6%;
}
.action-msg:nth-of-type(3) {
  top: 54%;
  right: 6%;
}
.action-msg:nth-of-type(4) {
  top: 70.5%;
  right: 6%;
}
input[type='button'] {
  background: var(--Green);
  border: 2px solid rgb(43, 180, 121);
  border-bottom: 4px solid rgb(43, 180, 121);
  color: white;
  text-transform: uppercase;
  cursor: pointer;
  letter-spacing: 2px;
  font-size: 15px;
  font-weight: 500;
  transition: 0.2s ease-in-out;
}
input[type='button']:hover {
  opacity: 0.8;
  color: var(--Blue);
  letter-spacing: 5px;
  font-weight: 600;
}
#terms {
  font-size: 12px;
  text-align: center;
  color: var(--Grayish-Blue);
  font-weight: 400;
}
#terms a {
  color: var(--Red);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}
#terms a:hover {
  text-decoration: underline;
}

/* media responsiveness */

@media (max-width: 575px) {
  body {
    background: url(./images/bg-intro-mobile.png);
    background-repeat: no-repeat;
    background-size: cover;
    background-color: var(--Red);
  }
  .container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 500px;
    margin: 50px auto;
    padding: 20px;
  }
  .para-box {
    width: 100%;
    text-align: center;
  }
  .para-heading {
    font-size: 20px;
  }
  .form-box {
    width: 100%;
  }
  /* error icon */
  .error-icon:first-of-type {
    top: 11.5%;
    right: 10%;
  }
  .error-icon:nth-of-type(2) {
    top: 27.5%;
    right: 10%;
  }
  .error-icon:nth-of-type(3) {
    top: 43.2%;
    right: 10%;
  }
  .error-icon:nth-of-type(4) {
    top: 59%;
    right: 10%;
  }
  /* error-msg */
  .action-msg:first-of-type {
    top: 19.7%;
    right: 8%;
  }
  .action-msg:nth-of-type(2) {
    top: 35.7%;
    right: 8%;
  }
  .action-msg:nth-of-type(3) {
    top: 51.5%;
    right: 8%;
  }
  .action-msg:nth-of-type(4) {
    top: 67.3%;
    right: 8%;
  }
}
