@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap");

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: url(https://divineerp-resource.s3.ap-south-1.amazonaws.com/wallpaper/Divine/1CE1AF78-3D54-4034-A338-FB9ABC558C9D.png);
  background-attachment: fixed;
  background-size: cover;
  background-repeat: no-repeat;
  font-family: "Roboto", Helvetica, sans-serif;
  align-items: center;
  display: flex;
}

.container {
  height: 100vh;
  align-content: center;
  width: 40%;
  justify-items: center;
}

.signup-container {
  width: 100%;
  max-width: 450px;
  margin: 20px;
  padding: 24px;
  background: #f8f8f6;
  /* backdrop-filter: blur(30px) saturate(150%); */
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
  /* color: #fff; */
  border-radius: 10px;
}

.signup-title {
  margin: 0 0 15px;
  text-align: center;
  font-weight: 300;
  color: #072039;
}

form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.div-form-group {
  display: flex;
  gap: 10px;
  justify-content: space-between;

  :nth-child(div) {
    width: 48%;
  }
}

.form-group {
  position: relative;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  gap: 5px;

  > input,
  textarea {
    width: 100%;
    height: 40px;
    border: none;
    padding: 8px 12px 0px;
    border-bottom: 1px solid #bbb;
    border-radius: 5px;
    background: transparent;
    font-size: 15px;
    color: #072039;
    outline: none;

    &:focus ~ .form-label,
    &:not(:placeholder-shown) ~ .form-label {
      top: -15%;
      color: #b1b1b1;
    }

    &:focus ~ .form-hint,
    &:not(:placeholder-shown) ~ .form-label {
      top: -15%;
      display: block;
      color: #b1b1b1;
    }

    &:focus ~ .validation-error,
    &:not(:placeholder-shown) ~ .validation-error {
      top: -15%;
      color: #d47d77;
    }
  }

  .form-label,
  .form-hint,
  .validation-error {
    position: absolute;
    top: 40%;
    left: 1%;
    width: 100%;
    display: block;
    font-size: 14px;
    padding: 0 10px;
    letter-spacing: 0.5px;
    color: #878787;
    background: #f8f8f6;
    transition: top 0.3s ease-in-out;
    pointer-events: none;
  }

  .form-hint {
    display: none;
    /* padding: 5px 13px 5px 10px; */
    /* position: absolute;
    top: 25%;
    left: 1%;
    background: #f8f8f6;
    color: #adadad;
    font-size: 14px;
    transition: top 0.3s ease-in-out; */
  }

  .validation-error {
    color: #d26962;
  }
}

.captcha-container {
  display: flex;
  gap: 10px;

  .captcha-image {
    width: 110px;
    height: 35px;
    border: 1px solid #ccc;
    border-radius: 4px;
  }

  .captcha-refresh {
    height: 35px;
    padding: 4px;
    border: 1px solid #ccc;
    background: #fff;
    border-radius: 5px;
    cursor: pointer;

    &:hover {
      background: #f0f0f0;
    }
  }
}

.signup-button {
  width: 100%;
  height: 38px;
  border: 0;
  border-radius: 5px;
  background: linear-gradient(137deg, #0c2f55, #072039);
  color: #e6effa;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.input-error {
  border-bottom-color: #d26962;

  /* &:focus {
    border-color: #d26962;
    box-shadow: 0 0 0 2px rgba(217, 48, 37, 0.12);
  } */
}

@media only screen and (max-width: 1024px) {
  .container {
    width: 60%;
  }
}

@media only screen and (max-width: 768px) {
  .signup-container {
    margin: 20px auto;
  }
  .container {
    width: 100%;
  }
}

@media only screen and (max-width: 500px) {
  body {
    margin: 20px;
    justify-content: center;
  }

  .signup-container {
    margin: 0;
    padding: 20px;
    max-width: 100%;
  }
  .captcha-container {
    .captcha-image {
      width: 95px;
    }
  }

  .form-group {
    .form-label,
    .form-hint,
    .validation-error {
      font-size: 14px;
      top: 45%;
    }
  }
}
