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

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

.page-content {
    border-radius: var(--radius-movie-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;
    }
}

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

.navbar-logo {
    padding-right: 0.5rem;
}

.icon-banner {
    width: 32px;
}

.body-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 60px;
}

.welcome-page li {
    list-style: none;
    padding: 4px;
}

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

.grants-page .card {
    margin-top: 20px;
    border-bottom: 1px solid lightgray;
}

.grants-page .card .card-title {
    font-size: 120%;
    font-weight: bold;
}

.grants-page .card .card-title img {
    width: 100px;
    height: 100px;
}

.grants-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 {
            padding: 0.5rem 1rem;
            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-movie-card);
        border: 1px solid var(--color-border);
        background-color: var(--color-dark-grey);
        color: var(--white);

        &: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-providers-container {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    width: 100%;
    margin-bottom: 1.5rem;

    .external-providers-list {
        display: flex;
        gap: 1rem;
        width: 100%;
        flex-direction: column;

        .external-provider {
            align-items: center;
            border: 1px solid var(--color-border);
            color: var(--color-off-white);
            background-color: var(--color-dark-grey);
            display: flex;
            flex-direction: column;
            height: auto;
            justify-content: center;
            overflow: hidden;
            padding: 1rem 0.5rem;
            gap: 0.5rem;
            width: 100%;
            min-width: 100%;

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

            .bi {
                stroke-width: 1.5rem;
                font-size: 1.6rem;
            }
        }
    }
}

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

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

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

.back-container .back-button .back-button:focus,
.back-container .back-button .back-button:active {
    border: none;
    box-shadow: none;
    outline: none;
    text-decoration: none;
}

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

.external-logins-page button {
    color: white;
}

/* 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;
    }
}

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

    &:focus,
    &:active,
    &:focus-visible {
        color: white;
        background-color: inherit;
    }
}

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

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

    &: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;
    }
}
.card {
    border-radius: var(--radius-input);
    color: var(--color-off-white);
    border: 1px solid var(--color-border);
    background-color: var(--color-dark-grey);
}