/* Add a green text color and a checkmark when the requirements are right */
.valid {
    color: green;
}

/* Add a red text color and an "x" icon when the requirements are wrong */
.invalid {
    color: red;
}


#cover {
    background-size: cover;
    height: 100%;
    text-align: center;
    display: flex;
    align-items: center;
    position: relative;
}


.error {
    padding-bottom: 9px;
}

.center {
    margin: auto;
    width: 50%;
    border: 3px solid green;
    padding: 10px;
    grid-template-columns: auto auto;
    grid-row: 1;
}

.centerlog {
    margin: auto;
    width: 28%;
    border: 3px solid green;
    padding: 10px;
    grid-template-columns: auto auto;
    grid-row: 1;
}

.popup {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

#message {
    grid-column: 2;
}

.popup .popuptext {
    visibility: hidden;
    width: 160px;
    background-color: #555;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 8px 0;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -80px;
}

#PasswordInput:hover #message {
    visibility: visible;
}

#PasswordInput:default #message {
    visibility: visible;
}


.popup .popuptext::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #555 transparent transparent transparent;
}

.hidden {
    visibility: hidden;
    position: fixed;
}

.popup .show {
    visibility: visible;
    -webkit-animation: fadeIn 1s;
    animation: fadeIn 1s;
}

/* Add animation (fade in the popup) */
@-webkit-keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}