/*** Login Styles ***/

h1 {
    text-transform: none;
}

html, body {
    height: 100%;
}

main.login {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-image: radial-gradient(var(--primaryDefault), hsl(80, 50%, 30%));
}

div.container {
    /*display: flex;*/
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #FFFFFF;
    padding: 2em 5em;
    -webkit-border-radius: 1em;
    -moz-border-radius: 1em;
    border-radius: 1em;
    box-shadow: 0 6px 4px 0 var(--mutedBlack);
    -webkit-transform: translateX(-150vw);
    -moz-transform: translateX(-150vw);
    -ms-transform: translateX(-150vw);
    -o-transform: translateX(-150vw);
    transform: translateX(-150vw);
    -webkit-transition: transform 400ms ease-in-out;
    -moz-transition: transform 400ms ease-in-out;
    -ms-transition: transform 400ms ease-in-out;
    -o-transition: transform 400ms ease-in-out;
    transition: transform 400ms ease-in-out;
    overflow: hidden;
}

div.container.shown {
    -webkit-transform: translateX(0);
    -moz-transform: translateX(0);
    -ms-transform: translateX(0);
    -o-transform: translateX(0);
    transform: translateX(0);
}

div.container form {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1em;
}

div#login #password {
    font-family: Verdana, serif;
    letter-spacing: 0.125em;
}

div#login input[type=submit]{
    margin: 0;
}

div.error, div.success {
    color: #FFFFFF;
    padding: 0.5em 0.8em;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    border-radius: 4px;
    display: flex;
    justify-content: center;
    align-items: center;
    align-self: flex-start;
    flex-direction: row-reverse;
    position: relative;
    height: 75px;
    visibility: visible;
    overflow: hidden;
    -webkit-transition: all 0.5s ease-in-out;
    -moz-transition: all 0.5s ease-in-out;
    -ms-transition: all 0.5s ease-in-out;
    -o-transition: all 0.5s ease-in-out;
    transition: all 0.5s ease-in-out;
    opacity: 1;
    margin-top: 1em;
}

div.error {
    background: var(--errorDefault);
}

div.success {
    background-color: var(--primaryHover);
}

div.error button, div.success button {
    border: none;
    background: none;
    outline: none;
    cursor: pointer;
    color: #FFFFFF;
    font-size: 1.25rem;
    margin-top: -5px;
    position: absolute;
    transform: translate(0, 0);
    transform-origin: 0 0;
    right: 10px;
    top: 10px;
}

div.error.hidden, div.success.hidden {
    opacity: 0;
    visibility: hidden;
    height: 0;
    margin: 0;
    padding: 0;
}

div.error button:hover, div.success button:hover {
    text-shadow: -1px 2px var(--mutedBlack);
}

div.btnContainer {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

div.btnContainer a:not(.btn) {
    color: #000000;
}
