input:invalid {
  border: 1px solid red;
}

input:valid {
  border: 1px solid #dfdfdf;
}

.disabledbutton {
    pointer-events: none;
    //opacity: 0.4;
}

input:focus ~ .floating-label,
input:not(:focus):valid ~ .floating-label{
  top: 1px;
  bottom: 10px;
  left: 20px;
  font-size: 10px;
  opacity: 1;
}

.floating-label {
  position: absolute;
  pointer-events: none;
  left: 20px;
  top: 10px;
  transition: 0.2s ease all;
  color:gray;
}
