﻿:root {
    --form-border-radius: 0.5rem;
}

html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

html {
    position: relative;
    min-height: 100%;
}

body {
    height: 100vh;
    background-color: hsl(240 4.8% 95.9%);
}

.custom-container {
    display: flex;
    flex-direction: row;
    min-height: 100vh;
    padding: 1rem;
}

    .custom-container > main {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100vw;
    }

.login-page {
    display: grid;
    gap: 1.5rem;
    width: 100%;
    max-width: 24em;
}

    .login-page .logo-box {
        display: flex;
        justify-content: center;
        margin-bottom: 1em;
    }

    .login-page #siteLogo {
        width: 100%;
        max-width: 14em;
        aspect-ratio: auto;
    }

    .login-page .card {
        display: grid;
        gap: 1.5rem;
        width: 100%;
        max-width: 24em;
        padding: 1.5rem;
        border-radius: 1em;
        border: 1px solid #e5e7eb;
        box-shadow: 0 0 #0000, 0 0 #0000, 0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);
        color: hsl(240 10% 3.9%);
        background-color: hsl(0 0% 100%);
    }

        .login-page .card .alert
        {
            margin: 0;
        }

    .login-page .title {
        text-align: center;
        margin-bottom: 0;
    }

    .login-page .subtitle {
        text-align: center;
        margin: 0;
    }

    .login-page a.subtitle {
        display: block;
        margin-top: 0.5rem;
    }

span[data-valmsg-for] {
    display: block;
    min-height: 1rem;
}

.btn {
    display: block !important;
    width: 100% !important;
    border-radius: var(--form-border-radius);
}

input, input:hover, input:focus {
    border: 0px solid transparent !important;
    background-color: #efefef !important;
}

.form-check-label {
    display: inline-block;
    white-space: nowrap;
}

.form-check-input {
    margin-top: 0.5rem;
}

.form-check-label, .form-check-input {
    vertical-align: middle;
}

.form-group.form-check {
    margin-bottom: 2rem;
}

.form-control {
    border-radius: var(--form-border-radius);
}

.copyright {
    /*padding: 2rem 0;*/
    text-align: center;
    width: 100%;
    opacity: 0.75;
    margin: 0;
}

.lead {
    height: 100%;
    display: flex;
    justify-content: center;
    flex-direction: column;
}

.checkbox-container {
    display: flex;
    flex-direction: row;
}

.checkbox-child {
    display: inline-block;
}

    .checkbox-child:not(:first-child) {
        margin-left: auto;
    }

    .checkbox-child label:hover {
        cursor: pointer;
    }

.fullwidth {
    width: 100% !important;
}

.fullheight {
    height: 100vh !important;
}

.external-logins-divider {
    position: relative;
    display: flex;
    flex-direction: row;
    text-align: center;
    width: 100%;
}

    .external-logins-divider:after {
        position: absolute;
        display: flex;
        box-sizing: border-box;
        border: 0 solid #e5e7eb;
        border-top-width: 1px;
        content: "";
        align-items: center;
        top: 50%;
        left: 0;
        right: 0;
        z-index: 0;
    }

    .external-logins-divider span {
        margin: auto;
        padding: 0 0.25em;
        background-color: #fff;
        z-index: 10;
    }

.external-logins {
    display: flex;
    flex-direction: column;
    width: 100%;
}
    .external-logins .external-icon {
        font-size: 20px;
        height: 44px !important;
        /*width: 44px !important;*/
        margin: auto;
        background-color: #efefef;
    }

        .external-logins .external-icon:not(:first-child) {
            margin-top: 0.5em;
        }

        .external-logins .external-icon span {
            font-size: 16px;
            line-height: 1.5px;
        }

.invalid-background {
    position: absolute;
    right: 0;
    bottom: 0;
    height: 100vh;
    width: 100%;
    filter: grayscale(100%);
}

.invalid-cover {
    position: absolute;
    right: 0;
    bottom: 0;
    height: 100vh;
    width: 100%;
    background: rgb(255,255,255);
    background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 37%, rgba(255,255,255,1) 54%, rgba(255,255,255,0.8099614845938375) 75%, rgba(255,255,255,0.7931547619047619) 100%);
}

.license-message {
    right: 0;
    left: 0;
}

.fullpageimage {
    height: 100vh;
}

.sidebar img {
    width: 100%;
}

@media only screen and (max-width: 1024px) {
    .custom-container {
        flex-direction: column !important;
        height: fit-content;
    }

        .custom-container > .sidebar {
            padding-top: 64px;
            max-height: 10%;
            width: 100%;
            background-color: transparent;
        }

            .custom-container > .sidebar > img {
                aspect-ratio: auto;
                height: 100%;
                width: auto;
            }

        .custom-container > .body {
            width: 100%;
        }

            .custom-container > .body.normalwidth .title {
                display: none;
            }

            .custom-container > .body.normalwidth .login-page {
                padding-top: 64px;
            }

    .login-page {
         width: 80%;
    }
}

.nav-pills .nav-item {
    width: 100%;
}

.form-control:disabled, .form-control[readonly] {
    background-color: #d2d4d5 !important;
    cursor: not-allowed;
}

.text-small {
    font-size: 12px;
}