﻿h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-sans);
}

p {
    font-family: var(--font-sans);
}

small {
    font-family: var(--font-sans);
}

body {
    color: var(--color-off-white);
    font-family: var(--font-sans);
    background-color: var(--color-background);
    font-weight: 400;
    font-style: normal;
}

.text-warning {
    font-size: 0.9rem;
}

.content-container {
    align-items: center;
    display: flex;
    height: 100%;
    justify-content: center;
    padding: 0.5rem;
    position: relative;
    width: 100%;
}

.page-content {
    border-radius: var(--radius-card);
    max-width: 30rem;
    padding: 0.5rem;
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;

    .centered-logo {
        align-items: center;
        display: flex;
        align-self: center;
        justify-content: center;
        margin-bottom: 1.5rem;
        width: 4.2rem;
    }

    .page-title {
        color: var(--color-off-white);
        text-align: center;
        margin-bottom: 1.5rem;
        font-weight: bold;
    }

    .page-description {
        color: var(--color-off-white);
        text-align: center;
        margin-bottom: 1.5rem;
        font-weight: 200;
    }
}

.back-container {
    margin-bottom: 0.5rem;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: left;

    .back-button {
        color: var(--color-off-white);
        text-decoration: none;
        padding-left: 0;
        transition: none;
        border: none;

        .back-button:hover {
            text-decoration: underline;
        }

        &:focus,
        &:active {
            border: none;
            box-shadow: none;
            outline: none;
            text-decoration: none;
        }

        .back-icon {
            margin-right: 0.5rem;
        }
    }
}

.welcome-page .logo {
    width: 4rem;
}

.icon-banner {
    width: 2rem;
}

.body-container {
    margin-top: 3.75rem;
    padding-bottom: 2.5rem;
}

.welcome-page li {
    list-style: none;
    padding: 0.25rem;
}

.logged-out-page iframe {
    display: none;
    width: 0;
    height: 0;
}

.grans-page .card .card-title {
    font-size: 1.2em;
    font-weight: bold;
}

    .grans-page .card .card-title img {
        width: 6.25rem;
        height: 6.25rem;
    }

.grans-page .card .label {
    font-weight: bold;
}

.page-navigation {
    display: flex;
    justify-content: space-between;
    margin: 0.5rem 0.5rem;

    .header-logo {
        height: 2.2rem;
    }

    .dropdown {
        list-style: none;

        .dropdown-toggle {
            display: flex;
            justify-content: center;
            align-items: center;
            font-weight: bold;
            color: var(--color-warm-grey);
        }
    }

        .dropdown.dropdown-menu.language-dropdown {
            background-color: rgba(43, 47, 67);
            border: none;
        }

        .dropdown.dropdown-toggle.language-dropdown {
            background-color: rgba(43, 47, 67);
            border: none;
        }

    .nav-dropdown {
        border-radius: var(--radius-card);
        border: 1px solid var(--color-border);
        background-color: var(--color-dark-grey);
        color: var(--color-warm-grey);

        &:active,
        &:focus,
        &:hover,
        &[aria-expanded="true"] {
            color: var(--color-off-white);
            text-decoration: none;
        }

        & button {
            color: var(--color-off-white);
        }

            & button:hover {
                background-color: var(--color-border);
                color: white;
            }

        .dropdown-item {
            display: flex;
            align-items: center;
            justify-content: flex-start;
            font-weight: 200;
            color: var(--color-warm-grey);
        }

            .dropdown-item.active {
                background-color: var(--color-accent);
            }

        .dropdown-logo {
            margin-right: 0.5rem;
        }
    }
}

.external-auth-providers-container {
    .external-auth-provider-list {
        display: flex;
        flex-direction: column;
        gap: 0.8rem;

        .external-auth-provider {
            color: var(--color-off-white);
            width: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            text-align: center;
            border-radius: var(--radius-small-ui);

            &:hover {
                background-color: var(--color-border);
            }

            .external-auth-provider-logo {
                display: inline-block;
                height: 1rem;
                width: 1rem;
                margin-right: 0.5rem;
            }
        }
    }
}

.btn-google {
    border-radius: var(--radius-small-ui);
    background-color: #cd5542;
    color: var(--color-off-white);
    font-weight: bold;

    &:hover {
        color: var(--color-off-white);
        background-color: #bd422f;
    }
}

.btn-facebook {
    border-radius: var(--radius-small-ui);
    background-color: #3b5998;
    color: var(--color-off-white);
    font-weight: bold;

    &:hover {
        color: var(--color-off-white);
        background-color: #244690;
    }
}

.btn-azure-active-directory {
    border-radius: var(--radius-small-ui);
    background-color: #0089d6;
    color: var(--color-off-white);
    font-weight: bold;

    &:hover {
        color: var(--color-off-white);
        background-color: #0175b8;
    }
}

.btn-kinepolis-v1 {
    border-radius: var(--radius-small-ui);
    background-color: var(--color-secondary);
    color: var(--color-secondary-hover);
    font-weight: bold;
}

hr {
    border-top: 1px solid var(--color-off-white);
}

.success-check-wrapper {
    font-size: 3rem;
    height: 3rem;
    margin-bottom: 1rem;
    display: inline-block;
}

.styled-container-card {
    border-radius: var(--radius-input);
    color: var(--color-off-white);
    border: 1px solid var(--color-border);
    background-color: var(--color-dark-grey);
}

.password-requirements {
    & .glyphicon {
        margin-right: 0.5rem;
        color: #495057;
    }
}

/*Bootstrap Overrides*/
.form-label {
    color: var(--color-off-white);
    margin-bottom: 0;
}

.form-control {
    border-radius: var(--radius-input);
    color: var(--color-dark-blue);

    &::placeholder {
        font-weight: bold;
    }

    &::-ms-input-placeholder {
        font-weight: bold;
    }

    &:-ms-input-placeholder {
        font-weight: bold;
    }

    &::-webkit-input-placeholder {
        font-weight: bold;
    }

    &:disabled {
        background-color: var(--color-input-disabled);
        color: var(--color-off-white);
        cursor: not-allowed;
    }
}

.btn {
    border-radius: var(--radius-small-ui);
}

.btn-primary {
    border: none;
    color: var(--color-off-white);
    background-color: var(--color-primary);
    position: relative;
    overflow: hidden;
    transition: background 0.2s ease;

    &:hover,
    &:focus,
    &:focus-visible {
        background-color: var(--color-primary-hover);
    }

    &:focus,
    &:focus-visible {
        outline: none;
    }

    &:disabled,
    &[disabled] {
        background-color: var(--color-primary);
        color: var(--color-off-white);
        opacity: 0.6;
        cursor: not-allowed;
    }
}

.btn-secondary {
    color: var(--color-off-white);
    background-color: var(--color-secondary);
    border: none;
    text-align: center;
    transition: background 0.2s ease;

    &:hover {
        background-color: var(--color-secondary-hover);
    }

    &:disabled,
    &[disabled] {
        background-color: var(--color-secondary);
        color: var(--color-off-white);
        opacity: 0.6;
        cursor: not-allowed;
    }
}

.btn-underline {
    color: var(--color-off-white);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem 1rem;
    text-align: center;
    text-decoration: underline;
    transition: text-decoration 0.2s ease;

    &:hover {
        color: var(--color-off-white);
        text-decoration: none;
    }
}

.btn-password-toggle {
    border-radius: var(--radius-input);
    border: 1px solid #ced4da;
    background-color: #e9ecef;

    & span {
        color: #495057;
    }

    &:hover {
        border: 1px solid #ced4da;
        background-color: #ced4da;
    }

    &:focus,
    &:active {
        outline: none;
        box-shadow: none;
        border: 1px solid #ced4da;
    }
}

.card {
    border-radius: var(--radius-input);
    color: var(--color-off-white);
    border: 1px solid var(--color-border);
    background-color: var(--color-dark-grey);
}

.table {
    color: var(--color-off-white);

    tr {
        color: var(--color-off-white);
    }

    th {
        color: var(--color-off-white);
    }

    td {
        color: var(--color-off-white);
    }
}

ul.danger {
    margin-bottom: 0px;
}

input.form-control:disabled,
input.form-control[readonly] {
    background-color: var(--color-input-disabled);
    color: #000;
    cursor: not-allowed;
    opacity: 1;
}
