CSS detecta si la entrada tiene valor
input:not(:placeholder-shown) {
border-color: green;
}
input:placeholder-shown {
border-color: red;
}
Quite Diabolical
input:not(:placeholder-shown) {
border-color: green;
}
input:placeholder-shown {
border-color: red;
}