@import "../../../styles/mixins.scss";

.input-group {
  width: 100%;
  label {
    font-weight: 600;
    color: $dark-blue;
    margin-bottom: 0.5rem;
    display: block;
  }
  input,
  textarea {
    width: 100%;
    outline: none;
    padding: 0.4rem 0.6rem;
    border: 2px solid $pink;
    border-radius: 0.5rem;
    color: $dark-blue;
    &::placeholder {
      color: transparentize($color: $dark-blue, $amount: 0.4);
    }
  }
  input {
    &:-webkit-autofill,
    &:-webkit-autofill:hover,
    &:-webkit-autofill:focus {
      background: none;
      -webkit-text-fill-color: $dark-blue;
      box-shadow: 0 0 0px 1000px #fff inset;
      transition: background-color 5000s ease-in-out 0s;
    }
  }
  textarea {
    min-height: 8rem;
    resize: none;
  }
}

.question-form,
.register-form {
  width: 30rem;
  max-width: 100%;
  @include box-center($direction: column);
  gap: 1rem;
}

.register-form {
  position: relative;
  background: $dark-blue;
  padding: 3rem 2rem;
  * {
    z-index: 3;
  }
  &::after {
    content: "";
    display: block;
    position: absolute;
    top: -0.2rem;
    left: -0.2rem;
    height: calc(100% + 0.4rem);
    width: calc(100% + 0.4rem);
    border-radius: calc(0.5rem + 2px);
    background: $gradient-border;
    z-index: 1;
  }
  &::before {
    content: "";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    border-radius: 0.5rem;
    background: $dark-blue;
    z-index: 2;
  }
}

.register-page {
  @include box-center;
  min-height: calc(100vh - 4rem);
  margin-top: 4rem;
  background: $dark-blue;
  h2 {
    color: $white;
    font-size: 1.8rem;
  }
  p {
    color: $white;
    text-align: center;
    padding: 0 1rem;
  }
  .input-group {
    label {
      color: $white;
    }
  }
}

.error-msg {
  height: 1.8rem;
  color: $pink !important;
  margin: 0 !important;
}

.success-msg {
  font-size: 1.4rem;
  font-weight: 700;
  text-align: center;
}
