* {
    font-family: 'Arial', sans-serif;
    --bg-win: rgba(192, 192, 192, 0.25);
    --bg: rgba(224, 224, 224, 0.5);
    --fg-soft: rgba(32, 32, 32, 0.5);
    --footer-height: 2em;
}

noscript {
    display: block;
    text-align: center;
    margin: 20vh auto 1em auto;
    max-width: 650px;
    padding: 2em !important;
}

body {
    margin: 0;
    min-height: 100vh;
    background-image: url("/res/images/background.jpg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

main {
    max-width: 800px;
    height: calc(100% - 2em);
    padding: 1em;
    box-sizing: border-box;
    margin: 0 auto;
}

div#wrapper {
    box-sizing: border-box;
    width: 100%;
    height: calc(100vh - var(--footer-height));
}

@media screen and (max-width: 600px) {
    div#wrapper {
        height: 100vh;
    }
}

h1, h2, h3, h4, h5, h6 {
    color: #000000;
    font-weight: normal;
}

div#windows {
    position: fixed;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    padding: 1em;
    top: 0;
    left: 0;
}

div#windows > * {
    backdrop-filter: blur(32px);
    border: 1px solid var(--bg-win);
    background: var(--bg-win);
    border-radius: 4px;
    padding: 0.5em 1em;
    box-sizing: border-box;
}

div#login-win,
div#welcome-win {
    max-width: 650px;
    margin: calc(max(25vh, 8em) - 8em) auto 1em auto;
}

div#login-win h1,
div#welcome-win h1 {
    text-align: center;
    font-size: 1.5rem;
}

footer {
    width: 100%;
    border-top: 1px solid var(--bg-win);
    background: var(--bg-win);
    height: var(--footer-height);
    backdrop-filter: blur(32px);
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
}

@media screen and (max-width: 600px) {
    footer {
        flex-direction: column;
    }
    * {
        --footer-height: 4em;
    }
}

footer div {
    font-size: 0.75em;
    display: inline;
    color: #000000;
    margin: 0.5em 1em;
    text-align: center;
}

form {
    max-width: 400px;
    margin: 1.5em auto;
}

form input,
form button,
a.button,
form div {
    border: 1px solid var(--bg);
    border-radius: 4px;
    outline: none;
    padding: 0.5em 1em;
    display: block;
    box-sizing: border-box;
    margin: 1em auto;
    font-size: 1em;
    color: #000000;
    transition: border-color 0.125s, background-color 0.125s;
}

form input,
form button,
a.button {
    background-color: var(--bg);
}

form div.error {
    border-color: rgba(192, 0, 0, 0.75);
    text-align: center;
    color: #C00000;
    padding: 1em;
}

a.button {
    text-decoration: none;
    text-align: center;
    display: block;
    width: 100px;
}

form input,
form button {
    width: 100%;
}

form button,
a.button {
    cursor: pointer;
}

form input::placeholder {
    color: var(--fg-soft);
    opacity: 1;
}

form input[invalid] {
    border-color: rgba(192, 0, 0, 0.75);
}

form input:not(:disabled):focus,
form input:not(:disabled):hover,
form button:not(:disabled):focus,
form button:not(:disabled):hover,
a.button:not(:disabled):focus,
a.button:not(:disabled):hover {
    border-color: rgba(255, 255, 255, 0.75);
}

form *:disabled {
    cursor: not-allowed;
}

form button:active,
a.button:active {
    background-color: rgba(224, 224, 224, 0.75);
}