

.floating-label {
  display: flex;
  flex-direction: column-reverse;
}

.floating-label label {
  font-size: 12px;
  line-height: 16px;
  color: #515151;
  text-align: start;
  height: 18px;
  opacity: 1;
  transition: all 0.25s ease-in-out;
  overflow: hidden;
}

.floating-label > input:placeholder-shown + label,
.floating-label > .input-group:has(input:placeholder-shown) + label {
  height: 0;
  opacity: 0;
}

label[for]:not([for='']) {
  cursor: pointer;
}

label.error,
label.success {
  font-size: 12px;
  line-height: 16px;
  color: rgba(255, 13, 13, 0.85);
  margin-top: 5px;
}

label.success {
  color: rgba(14, 162, 14, 0.85);
}
