header {
    position: relative;
    z-index: 10;
    background-color: white;
    height: 50px;
    width: 100%;
    display: flex;
    justify-content: center;
    box-shadow: var(--box-shadow);
}

#navbar {
    width: min(1000px, 95%);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

header img {
    transform: translateY(-2px);
}

#auth-background {
    position: absolute;
    visibility: hidden;
    width: 100%;
    height: 100vh;
    z-index: 100;
}

#auth-background > div {
    position: absolute;
    top: 55px;
    visibility: hidden;
    z-index: 100;
    padding: 15px 20px;
}

#auth-form {
    right: max(5px, calc(50vw - 568px));
}

#logout-form {
    right: max(5px, calc(50vw - 540px));
}

#logout-fake-form, #auth-form > form {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
}

#logout-fake-form {
    width: 120px;
}

#auth-form > form > div:not(.auth-switch-tab) {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    margin: 5px 0;
}

#auth-form label {
    margin-top: auto;
    margin-bottom: auto;
    font-size: 15px;
}

#auth-background h2 {
    font-size: 22px;
    margin-bottom: 6px;
}

.auth-switch-tab {
    font-size: 12px;
    margin-bottom: 8px;
}

#auth-form .textbox {
    width: 175px;
    margin-left: 8px;
}

#logout-button, #auth-background input[type=submit] {
    width: 100%;
    font-size: 16px;
}

footer {
    width: 100%;
    background-color: rgb(41, 41, 41);
    color: white;
    font-size: 12px;
}

#footer-inner {
    margin: 0 auto;
    padding: 20px 5px;
    width: min(1000px, calc(100% - 20px));
    display: flex;
    justify-content: space-between;
}

footer a {
    color: inherit;
    text-decoration: underline;
}
