﻿* {
    margin: 0;
    padding: 0;
    border: 0;
}

html, body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    width: 100%;
    color: #4a4a4a;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    font-family: BlinkMacSystemFont,-apple-system,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Fira Sans","Droid Sans","Helvetica Neue",Helvetica,Arial,sans-serif;
}

h1 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: .5rem;
    text-align: center;
}

#background {
    position: fixed;
    width: 100%;
    height: 100%;
    background-color: #A3A0AB;
    background-image: url('../WhitelabelImages/welc_bg.jpg');
    background-size: cover;
    background-position: center;
    z-index: -1;
}

#align {
    display: flex;
    align-items: center;
    flex-direction: column;
    min-height: 68%;
    margin: 1rem;
}

#align-center {
    width: 360px;
    padding: 24px;
    background: white;
    box-shadow: 0 2px 3px rgba(10,10,10,.1),0 0 0 1px rgba(10,10,10,.1);
    color: #4a4a4a;
    display: flex;
    flex-direction: column;
}

.is-hidden {
    display: none !important;
}

button, input[type=submit], input[type=text], input[type=password], .btn-fedlogin {
    -moz-appearance: none;
    -webkit-appearance: none;
    border: 1px solid transparent;
    border-radius: 4px;
    box-shadow: none;
    font-size: 1rem;
    line-height: 1.5;
    padding: 0 .625rem;
}

button, input[type=submit], .btn-fedlogin {
    background-color: #03833F;
    color: #fff;
    cursor: pointer;
    padding: .375rem .75rem;
    text-align: center;
    white-space: nowrap;
    text-decoration: none;
}

input[type=text], input[type=password] {
    background-color: #fff;
    border-color: #dbdbdb;
    color: #363636;
    box-shadow: inset 0 1px 2px rgba(10,10,10,.1);
    height: 2.25rem;
}

input[disabled] {
    color: #888888;
}

#footer {
    margin-top: 0.6rem;
    font-size: 0.75rem;
    opacity: 0.8;
    text-shadow: 0 0 2px #fff, 0 0 2px #fff, 0 0 2px #fff, 0 0 2px #fff;
}

.message {
    background-color: #fff5f7;
    border-radius: 4px;
    border-style: solid;
    border-width: 0 0 0 4px;
    color: #4a4a4a;
    padding: 1.25rem 1.5rem;
    border-color: #ff3860;
    color: #cd0930;
}

#logo {
    width: 200px;
    margin: auto;
    /*hide logo by default*/
    display: none;
}

form {
    display: flex;
    flex-direction: column;
}

    form > *, #align-center > * {
        margin-bottom: 0.5rem;
    }

        form > *:last-child, #align-center > *:last-child {
            margin-bottom: 0;
        }

div.password {
    display: flex;
    flex-direction: row;
}

    div.password input {
        flex-grow: 1;
    }

.separator {
    overflow: hidden;
    text-align: center;
    padding: 0.25rem 0;
}

    .separator:before,
    .separator:after {
        background-color: #888;
        content: "";
        display: inline-block;
        height: 1px;
        position: relative;
        vertical-align: middle;
        width: 50%;
    }

    .separator:before {
        right: 0.5rem;
        margin-left: -50%;
    }

    .separator:after {
        left: 0.5rem;
        margin-right: -50%;
    }

.center {
    align-self: center;
}

#page-login #title {
    display: none;
}

#page-login #logo {
    display: block;
}

/* dark mode, with the colors of the back office pages; the background picture is dimmed */
@media (prefers-color-scheme: dark) {
    html, body {
        color: #dbe3e8;
    }

    a {
        color: #82bddc;
    }

    #background {
        background-color: #12171a;
        filter: brightness(0.4) saturate(0.8);
    }

    #align-center {
        background: #1b2226;
        color: #dbe3e8;
        box-shadow: 0 2px 6px rgba(0,0,0,.5), 0 0 0 1px #2f3a41;
    }

    input[type=text], input[type=password] {
        background-color: #151b1f;
        border-color: #45535b;
        color: #dbe3e8;
        box-shadow: inset 0 1px 2px rgba(0,0,0,.4);
    }

    input[disabled] {
        color: #95a4ad;
    }

    #footer {
        text-shadow: 0 0 2px #000, 0 0 2px #000, 0 0 2px #000, 0 0 2px #000;
    }

    .message {
        background-color: #331a1e;
        border-color: #6b2c36;
        color: #ff8a95;
    }

    .separator:before,
    .separator:after {
        background-color: #45535b;
    }

    body button.passwordToggle {
        color: #95a4ad;
    }
}
