input[type="password"]:required:focus:invalid {
    background-image: url(../images/failure.png);
    background-position: right center;
    background-repeat: no-repeat;
    -moz-box-shadow: none;
}

input[type="password"]:required:focus:valid {
    background-image: url(../images/success.png);
    background-position: right center;
    background-repeat: no-repeat;
}

.form-group p {
    margin: 0px 0px;
    padding: 2px 0px;
    font-size: 12px;
}

/* Add a green text color and a checkmark when the requirements are right */
.valid {
    color: green;
}

.valid:before {
    position: relative;
    left: -5px;
    content: "✔";
}

/* Add a red text color and an "x" when the requirements are wrong */
.invalid {
    color: red;
}
/* Add a red text color and an "x" when the requirements are wrong */
.instruction {
    color: black;
}

.invalid:before {
    position: relative;
    left: -5px;
    content: "✖";
    color: red;
}

.instruction:before {
    position: relative;
    left: -5px;
    content: "►";
    color: black;
}