*,
::after,
::before {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
}

@font-face {
    font-family: 'Abel';
    src: url('/fonts/Abel-Regular.woff') format('woff'),
         url('/fonts/Abel-Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

main {
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.background-image__container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.background-image__container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(1);
}

.logo {
    width: 100px;
    height: 100px;
    margin: auto;
}

.logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.login {
    position: fixed;
    min-width: 300px;
    width: 25%;
    height: fit-content;
    border-radius: 15px;
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    background-color: rgba(255, 255, 255, 0.4);
    display: flex;
    justify-content: center;
    flex-direction: column;
    padding: 15px;
    box-shadow: 1px 1px 8px rgba(255, 255, 255, 0.4), -1px 1px 8px rgba(255, 255, 255, 0.4), 1px -1px 8px rgba(255, 255, 255, 0.4), -1px -1px 8px rgba(255, 255, 255, 0.4);
}

label,
input,
p {
    font-family: 'Abel', sans-serif;
}

label,
p {
    font-size: 1.5rem;
}

input {
    font-size: 1rem;
}

p {
    padding: 10px 0 20px;
    text-align: center;
}

.error-message {
    padding: 0 0 5px 0;
    font-size: 1rem;
    color: rgba(206, 6, 6, 0.819);
    text-align: left;
}

.success-message {
    padding: 0 0 5px 0;
    font-size: 1rem;
    color: rgba(3, 185, 0, 0.819);
    text-align: left;
}

input[type="text"],
input[type="password"] {
    background: transparent;
    border-radius: 5px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    padding: 5px 10px;
}

input[type="text"]:focus,
input[type="password"]:focus {
    border: 1px solid rgba(255, 123, 0, 0.5);
    box-shadow: 1px 1px 8px rgba(255, 123, 0, 0.2), -1px 1px 8px rgba(255, 123, 0, 0.2), 1px -1px 8px rgba(255, 123, 0, 0.2), -1px -1px 8px rgba(255, 123, 0, 0.2), 1px 1px 8px rgba(255, 123, 0, 0.2) inset, -1px 1px 8px rgba(255, 123, 0, 0.2) inset, 1px -1px 8px rgba(255, 123, 0, 0.2) inset, -1px -1px 8px rgba(255, 123, 0, 0.2) inset;
    outline: none;
}

input[type="submit"] {
    padding: 5px 10px;
    background: rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 5px;
}

input[type="submit"]:hover {
    padding: 5px 10px;
    background: rgba(255, 255, 255, 0.5);
}

.login__password,
.login__submit {
    padding-top: 10px;
}

.login__username,
.login__password {
    display: flex;
    flex-direction: column
}