* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

:root {
    --white: #fff;

    --grey-100: #f5f5f5;
    --grey-200: #ebebeb;
    --grey-500: #5a5a5a;

    --blue-500: #01519f;
    --red-100: #fcc0c0;
    --red-500: #ff0800;
    --green-500: #008000;
}

body, input, textarea, select, button {
    font: 400 1rem "Poppins", sans-serif;
}

button {
    cursor: pointer;
}

a {
    color: inherit;
    text-decoration: none;
}

@media (max-width: 1080px) {
    html {
        font-size: 93.75%;
    }
}

@media (max-width: 720px) {
    html {
        font-size: 87.5%;
    }
}

header {
    height: 80px;
    background-color: var(--grey-200);
    box-shadow: 0px 2px 15px 2px rgb(0 0 0 / 20%);

    display: flex;
    justify-content: center;
}

header img {
    width: 250px;
}

header a {
    line-height: 95px;
}

section.background::before {
    content: "";
    position: absolute;
    display: block;
    width: 100%;
    height: calc(100vh - 80px);
    max-width: 100%;
    max-height: 100%;
    background-image: url("../img/bg.jpg");
    background-position: center center;
    z-index: -1;
    filter: blur(2px) opacity(.2) grayscale(10) brightness(.9);
}

.loginContainer {
    width: 100%;
    max-width: 40rem;
    height: calc(100vh - 80px);
    margin: 0 auto;
    padding: 0 1rem;;

    display: flex;
    justify-content: center;
    flex-direction: column;
}

.loginContainer p, 
.loginContainer h1 {
    width: 100%;
    text-align: center;
}

.loginContainer h1 {
    line-height: 1.3rem;
    font-size: 1.5rem;
}

.loginContainer h1 span {
    display: block;
    color: var(--grey-500);
    font-size: 1.2rem;
    font-weight: normal;
}

.loginContainer form {
    position: relative;
    background-color: var(--grey-100);
    border-radius: .4rem;
    margin: 3rem 0;
    padding: 1rem;
    border: 1px solid rgb(214, 214, 214);

    display: flex;
    flex-direction: column;
}

.loginContainer form label {
    margin-top: .5rem;
}

.loginContainer form label.error {
    color: var(--red-500);
    font-weight: 500;
}

.loginContainer form input {
    height: 2.2rem;
    padding: 0 .5rem;
}

.loginContainer form label.error + input {
    border: 1px solid var(--red-500);
    background-color: var(--red-100);
    border-radius: 2px;
}

.loginContainer form label.error + input:hover {
    filter: contrast(1.2)
}

.loginContainer form a {
    font-weight: normal;
    text-align: center;
}

.loginContainer form button {
    margin: 1rem 0;
    height: 2.2rem;
    border: none;
    color: var(--white);
    background-color: var(--blue-500);
    border-radius: 2px;

    transition: filter .2s;
}

.loginContainer form button:hover,
.loginContainer a:hover {
    filter: brightness(1.2);
}

.loginContainer a {
    color: var(--blue-500);
    font-weight: bold;

    transition: filter .2s;
}

.message {
    width: fit-content;
    margin: auto;
    padding: .3rem 1rem;
    border-radius:2rem;
    color: var(--white);
    text-align: center;

    position: absolute;
    top: -2.7rem;
    left: 0;
    right: 0;

    animation-duration: 0.3s;
    animation-delay: .5s;
    animation-timing-function: cubic-bezier(.26, .53, .74, 1.48);
    animation-fill-mode: backwards;
    animation-name: animate-pop;
}

.message.error {
    background-color: var(--red-500);
}

.message.success {
    background-color: var(--green-500);
}

@keyframes animate-pop {
    0% {
        opacity: 0;
        transform: translate(0, 20px);
    }
    100% {
        opacity: 1;
        transform: translate(0, 0);
    }
}