@import url("https://fonts.googleapis.com/css2?family=Bai+Jamjuree:ital,wght@0,200;0,300;0,400;0,500;0,600;0,700;1,200;1,300;1,400;1,500;1,600;1,700&family=Barlow+Semi+Condensed: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&family=Big+Shoulders:opsz,wght@10..72,100..900&family=Figtree:ital,wght@0,300..900;1,300..900&family=Fraunces:ital,opsz,wght@0,9..144,100..900;1,9..144,100..900&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Josefin+Sans:ital,wght@0,100..700;1,100..700&family=Karla:ital,wght@0,200..800;1,200..800&family=Kumbh+Sans:wght@100..900&family=League+Spartan:wght@100..900&family=Lexend+Deca:wght@100..900&family=Manrope:wght@200..800&family=Open+Sans:ital,wght@0,300..800;1,300..800&family=Outfit:wght@100..900&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&family=Red+Hat+Display:ital,wght@0,300..900;1,300..900&family=Rubik:ital,wght@0,300..900;1,300..900&family=Work+Sans:ital,wght@0,100..900;1,100..900&family=Young+Serif&display=swap");

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

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

body {
  font-family: "poppins", sans-serif;
  background: var(--red) url(./images/bg-intro-desktop.png);
}

.container {
  width: 80%;
  margin: 100px auto;
  height: 500px;
  display: flex;
  /* flex-wrap: wrap; */
  /* justify-content: center;
    align-items: center; */
}

.content {
  /* background-color: aqua; */
  width: 50%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: start;
  padding: 5vw;
  color: white;
}

.content h1 {
  width: 85%;
  font-size: 2.7rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.content p {
  font-size: 0.9rem;
  font-weight: 400;
  margin-bottom: 2rem;
}


.validation-part {
  width: 40%;
  /* background-color: blue; */
}

.try {
  width: 100%;
  font-size: 0.9rem;
  text-align: center;
  padding: 1rem;
  color: white;
  background-color: var(--blue);
  border-radius: 1rem;
  margin-bottom: 1.5rem;
}

.try span {
  font-weight: 600;
  font-size: 1rem;
}

form {
  width: 100%;
  display: flex;
  flex-direction: column;
  background-color: white;
  padding: 2rem;
  border-radius: 1rem;
}

input::placeholder {
  font-size: 0.9rem;
  font-weight: 600;
}

button {
  background-color: var(--green);
  color: white;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 1rem;
  cursor: pointer;
  border: none;
  box-shadow: 1px 2px 2px 0px rgba(56, 204, 140, 0.75);
}

.inp {
  display: flex;
  align-items: center;
  /* justify-content: space-around; */
  width: 100%;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 0.5rem;
  /* margin-bottom: 1.2rem; */
}

/* form > *:not(:last-child) {
  margin-bottom: 1.2rem;
  border-radius: 0.5rem;
  outline: none;
  border: 1.5px solid var(--grayish-blue);
} */

.inp{
  margin-bottom: 1.2rem;
  border-radius: 0.5rem;
  outline: none;
  border: 1.5px solid var(--grayish-blue);
}

input {
  outline: none;
  border: none;
  border-radius: 0.5rem;
  width: 90%;
  padding: 1rem;
  font-size: 1rem;
}

.div-1:focus-within , .div-2:focus-within , .div-3:focus-within , .div-4:focus-within {
  border: 1.5px solid var(--dark-blue);
}

input:invalid {
  pointer-events: none;
}

.agree {
  font-size: 0.7rem;
  color: var(--grayish-blue);
  text-align: center;
  margin-top: 1rem;
}

.form .agree span {
  color: var(--red);
  font-weight: 600;
}

.error{
  text-align: right;
  font-size: 0.8rem;
  color: var(--red);
  margin-top: -1rem;  
  margin-bottom: 1rem;
  display: none;
}

.hide{
  display: none;
}

.show{
  display: block;
}

.error-image{
  display: block;
}

@media (max-width: 900px) {
  .container {
    width: 90%;
    flex-direction: column;
    height: auto;
  }

  .content {
    width: 100%;
    height: auto;
    padding: 0rem;
    text-align: center;
  }
  .content h1 {
    width: 100%;
    font-size: 6vw;
  }

  .validation-part {
    width: 100%;
    margin-top: 2rem;
  }
}