focus on input change label color
.input-group { display: flex; flex-direction: column-reverse; } input:focus + label { color: red; }
Source: stackoverflow.com
.input-group { display: flex; flex-direction: column-reverse; } input:focus + label { color: red; }