.form-row {
  input,
  textarea {
    width: 100%;
    padding: 10px;
    color: $primary-color;
    outline: none;
    border: 1px solid $gray-color;
    border-radius: 0;
    box-shadow: none;
  }
  ::placeholder {
    color: $tertiary-color-alt;
    font-style: italic;
    font-family: $ff-sans;
    font-weight: 300;
    font-style: 12px;
  }
}
.form-input-wrap {
  width: 49%;
  display: flex;
  flex-direction: column-reverse;
  align-items: flex-start;
  margin-bottom: 5px;
}

.form-row {
  label {
    margin-bottom: 1px;
    margin-left: 1px;
    color: $tertiary-color-alt;
    visibility: hidden;
    opacity: 0;
    transform: translateY(8px);
    transition: all 0.1s ease;
  }

  textarea:not(:placeholder-shown) + label,
  input:not(:placeholder-shown) + label {
    visibility: visible;
    transform: translateY(0);
    opacity: 1;
    transition: all 0.2s ease;
  }
}

.logIn-wrap {
  input {
    padding: 20px;
    background-color: $white-color;
  }
  .form-logIn-input-wrap {
    display: flex;
    flex-direction: column-reverse;
    align-items: flex-start;
    margin-bottom: 10px;
  }
  .form-row label {
    margin-bottom: 2px;
    color: $white-color;
  }
}

.luxacc-page {
  .logIn-wrap .form-row label {
    color: $gray-color;
  }
  .logIn-wrap input {
    border-color: $white-color;
  }
  .btn-logIn {
    border: none;
  }
  .btn {
    font-size: 16px;
  }
}

//checkbox
.checkbox-wrap {
  display: block;
  position: relative;
  padding-left: 22px;
  cursor: pointer;
  user-select: none;
}
.checkbox-wrap input {
  position: absolute;
  opacity: 1;
  cursor: pointer;
  left: 0px;
  top: 0px;
  height: 5px;
  width: 5px;

  // visibility: hidden;
}
.checkmark {
  position: absolute;
  top: 0;
  left: 0;
  height: 15px;
  width: 15px;
  background-color: #fff;
  box-shadow: inset 0px 0 0px 1px #a9a9a9;
  transition: all 0.2s;
}
.checkbox-wrap:hover input ~ .checkmark {
  background-color: #ecf7ff;
}
.checkbox-wrap input:checked ~ .checkmark {
  background-color: $lux-blue-2;
  box-shadow: inset 0px 0 0px 1px $lux-blue-2;
}
.checkmark:after {
  content: '';
  position: absolute;
  display: none;
}
.checkbox-wrap input:checked ~ .checkmark:after {
  display: block;
}
.checkbox-wrap .checkmark:after {
  left: 5px;
  top: 1px;
  width: 6px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.form-row {
  margin-bottom: 8px;
}
.form-row {
  label {
    max-height: 0;
    height: 0;
  }
  textarea:not(:placeholder-shown) + label,
  input:not(:placeholder-shown) + label {
    max-height: 20px;
    height: 100%;
  }
}

.input--hidden {
  opacity: 0;
  height: 1px;
  width: 1px;
  position: absolute;
  pointer-events: none;
  bottom: 0;
}

@media (max-width: 640px) {
  .form-row {
    flex-direction: column;
    margin-bottom: 0;
    label {
      max-height: 0;
      height: 0;
    }
    textarea:not(:placeholder-shown) + label,
    input:not(:placeholder-shown) + label {
      max-height: 20px;
      height: 100%;
    }
  }
  .form-textarea-wrap {
    flex-direction: column-reverse;
  }
  .form-input-wrap {
    width: 100%;
    margin-top: 2px;
  }

  .logIn-wrap {
    input {
      padding: 15px;
    }
    .form-logIn-input-wrap {
      margin-bottom: 7px;
      &:last-of-type {
        margin-bottom: 9px;
      }
    }
    .btn-logIn {
      border-top: 2px solid transparent;
      padding: 13px;
    }
  }
}
