@import url("https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&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=Hanken+Grotesk:ital,wght@0,100..900;1,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=Libre+Franklin:ital,wght@0,100..900;1,100..900&family=Manrope:wght@200..800&family=Montserrat:ital,wght@0,100..900;1,100..900&family=Outfit:wght@100..900&family=Overpass:ital,wght@0,100..900;1,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=Young+Serif&display=swap");

:root {
  /*COLORES*/

  /*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%);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins";
  font-size: 16px;
  background-color: var(--Red);
  background-image: url(../../images/bg-intro-mobile.png);
  background-size: cover;
  background-position: center;
}

button {
  background-color: var(--Green);
  padding: 1.3rem;
  border-radius: 0.5rem;
  border: none;
  color: #fff;
  font-size: 1rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  box-shadow: 0px 4px 0px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease-in-out;
  &:hover {
    background-color: hsl(154, 59%, 61%);
  }
}

main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 1rem;

  .left {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    h1 {
      color: #fff;
      font-size: 2rem;
      font-weight: 700;
      line-height: 2.5rem;
      margin-top: 2rem;
    }
    p {
      color: #fff;
      font-size: 1rem;
      font-weight: 400;
      margin-bottom: 3rem;
      max-width: 500px;
    }
  }
  .container__form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    max-width: 500px;
    .form__header {
      background-color: var(--Blue);
      padding: 1rem;
      border-radius: 0.5rem;
      text-align: center;
      box-shadow: 0px 8px 0px rgba(0, 0, 0, 0.15);
      p {
        color: #fff;
        font-size: 1rem;
        font-weight: 400;
        width: 20ch;
        margin: 0 auto;
      }
      span {
        font-weight: 700;
      }
    }
    form {
      background-color: #fff;
      padding: 1.5rem;
      border-radius: 0.5rem;
      display: flex;
      flex-direction: column;
      box-shadow: 0px 8px 0px rgba(0, 0, 0, 0.15);
      gap: 1rem;
      .form__group {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        position: relative;
        input {
          padding: 1.2rem;
          border-radius: 0.5rem;
          border: 1px solid var(--Grayish-Blue);
          font-size: 1rem;
          font-weight: bold;
          color: black;
          outline: none;
          position: relative;
          &::placeholder {
            font-size: 1rem;
            font-weight: 700;
          }
        }
        img {
          width: 20px;
          height: 20px;
          position: absolute;
          right: 1rem;
          top: 1.2rem;
          display: none;
        }
        .error__message {
          color: var(--Red);
          font-size: 0.8rem;
          font-weight: 500;
          text-align: right;
          font-style: italic;
          display: none;
        }
        .show {
          display: block;
        }
        .error {
          border: 1px solid var(--Red);
          &::placeholder {
            color: var(--Red);
          }
        }
      }
      .form__group.terms {
        align-items: center;
        justify-content: center;
        gap: 0rem;
        margin-top: 0.5rem;
        .cont {
          display: flex;
          align-items: center;
          input {
            width: auto;
            margin-right: 10px;
          }
          label {
            font-size: 0.8rem;
            color: var(--Grayish-Blue);
            font-weight: 500;
            a {
              color: var(--Red);
              font-weight: 700;
            }
          }
        }
        .error__message {
          font-weight: bold;
        }
      }
      p {
        color: var(--Grayish-Blue);
        font-size: 0.8rem;
        font-weight: 500;
        text-align: center;
        span {
          color: var(--Red);
          font-weight: 700;
        }
      }
      .social-links {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 1rem;
        a {
          width: 45px;
          height: 45px;
          border: 1px solid var(--Grayish-Blue);
          border-radius: 50%;
          display: flex;
          justify-content: center;
          align-items: center;
          color: var(--Blue);
          text-decoration: none;
          transition: all 0.3s ease;
          &:hover {
            background-color: var(--Blue);
            color: #fff;
          }
          span {
            font-size: 22px;
          }
        }
      }
    }
  }
}

.toggle-password {
  cursor: pointer;
  position: absolute;
  right: 1rem;
  top: 0.9rem;
  width: 25px;
  height: 25px;
  font-size: 1.4rem;
}

.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100vh;
  display: none;
  .container-sucess {
    background: #ffffff;
    padding: 1.5rem;
    text-align: center;
    border-radius: 0.5rem;

    .heading {
      margin-bottom: 1.5rem;
      text-align: center;
      color: var(--Dark-Blue);
      font-size: 2rem;
      span {
        font-weight: 700;
        color: var(--Dark-Blue);
      }
    }
    .paragraph {
      text-align: center;
      color: var(--Grayish-Blue);
      font-size: 1rem;
      font-weight: 500;
      margin-bottom: 2rem;
      span {
        font-weight: 700;
        color: var(--Dark-Blue);
      }
    }
  }
}
.container.show {
  display: flex;
}

@media (min-width: 768px) {
  body {
    background-image: url(../../images/bg-intro-desktop.png);
  }
  main {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 3rem;
    height: 100vh;
    .left {
      text-align: left;
      h1 {
        font-size: 3rem;
        line-height: 3.5rem;
        width: 20ch;
        margin-top: 0;
      }
    }
    .container__form {
      max-width: 500px;
      .form__header {
        p {
          width: auto;
          text-align: center;
        }
      }
      .form {
        .form__group.terms {
          flex-direction: row;
          gap: 0.4rem;
          align-items: start;
          justify-content: start;
          margin-left: 1rem;
        }
      }
    }
  }
  .container {
    .container-sucess {
      max-width: 500px;
    }
  }
}
