html, body {
    height: initial;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Ubuntu', sans-serif;
    margin: 0;
    padding: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    min-height: 100vh;
}

.submit {
    display: flex;
    justify-content: center;
    flex-direction: column-reverse;
    align-items: initial;
    margin-top: 32px;
}

.access-button {
    cursor: pointer;
    display: inline-block;
    text-decoration: none;
    border-width: 0;
    border-radius: 3px;
    height: 2.2em;
    line-height: 2.2em;
    padding: 0 10px;
    font-size: 16px;
    background-color: var(--password-panel-buttons-background-color);
    color: var(--password-panel-buttons-color);
    outline: none;
    margin-bottom: 10px;
}

.access-button:hover {
    filter: brightness(1.1);
}

.access-container {
    width: 95%;
    margin: 30vh auto 0;
    display: flex;
    flex-direction: column;
}

a {
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

a:visited {
    color: rgb(0, 0, 238);
}

main {
    width: 100%;
    padding: 32px 0;
    background-color: var(--password-panel-background-color);
    border-width: var(--password-panel-border-width);
    border-style: var(--password-panel-border-style);
    border-color: var(--password-panel-border-color);
    border-radius: var(--password-panel-border-radius);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    margin: var(--password-panel-margin);
}

@media screen and (min-width: 500px) {
    main {
        padding: var(--password-panel-padding);
        box-shadow: var(--password-panel-box-shadow);
    }

    .access-container {
        width: 450px;
    }
}

.main-header {
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
    color: var(--password-panel-header-color);
    font-size: 16px;
    font-weight: 600;
}

.message-red {
    color: #de0303;
    font-size: 14px;
}

.input {
    display: flex;
    flex-direction: column;
    margin: 10px 0;
}

.text-input {
    padding: 10px 13px 9px;
    line-height: 1.3;
    font-size: 14px;
    color: #222;
    font-weight: 400;
}

.text-input {
    background-color: rgb(250, 251, 252);
    border-color: rgb(223, 225, 230);
    border-radius: 3px;
    border-width: 2px;
    border-style: solid;
    box-sizing: border-box;
    color: rgb(9, 30, 66);
    height: 40px;
}

.text-input:hover {
    background-color: rgb(236, 236, 236);
}

.text-input:focus {
    border-color: rgb(139, 182, 247);
    background-color: white;
    outline: none;
}

nav .user-section .button {
    height: 20px;
}

footer.footer-simple {
    display: block;
    text-align: center;
    margin-top: 10px;
    padding: 15px 0;
    width: 100%;
    color: #44546F;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.footer-simple span, .footer-simple a {
    font-size: 14px;
    color: #44546F;
    text-decoration: none;
}

html.dark-mode .text-input {
    background-color: #3e3e3e;
    border: 1px solid #4e4e4e;
    color: #e5e8f5;
}

html.dark-mode .text-input:hover {
    background-color: #4e4e4e;
}

html.dark-mode .text-input:focus {
    background-color: #5e5e5e;
}

html.dark-mode .text-input::placeholder {
    color: #cccdd9;
}

html.dark-mode a, html.dark-mode a:visited {
    color: #699bf9;
}

html.dark-mode footer.footer-simple {
    border-top: 1px solid #2C353B;
}

html.dark-mode .footer-simple span, .dark-mode .footer-simple a {
    color: #d3d7e6;
}
