I'd like some help implementing a custom HTML input message box where it visually shows the user when they've entered input that is correct,like going from a red x to a green check mark when the requirements are fulfilled in the pop-up message box. I've seen this before on other sites but Google searches haven't shown me any articles on how to do it. Here is my current HTML code on my website; I'd also like (if anyone has time) the Regex for needing at least 1 Capital Letter or symbol (I've got number and length) for the field. I'm a beginner, but I'm aware the answer might involve JS and definitely CSS. Thanks again.
<label for="pw1">Password:</label>
<br>
<input id="pw1" name="pword" type="password" maxlength="16" title="Must Contain one of the Following: A Number, A Symbol, or An Uppercase Letter" pattern="(?=.*\d).{8,16}" required /><br>```