/**
 * Copyright (c) Enalean, 2016-Present. All Rights Reserved.
 *
 * This file is a part of Tuleap.
 *
 * Tuleap is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * Tuleap is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with Tuleap. If not, see <http://www.gnu.org/licenses/>.
 */
@use "../../BurningParrot/css/includes/button-colors";
@use "../../default/css/style";

#linked-providers > .provider > .provider-header {
    border-color: var(--tlp-main-color);
}

#providers-configuration {
    .modal .modal-header {
        border-bottom-color: var(--tlp-main-color);
    }

    #providers .provider > h3 {
        border-color: var(--tlp-main-color);
    }
}

.btn:not(.btn-link, .disabled).btn-primary.provider-button {
    @include button-colors.provider-button-colors;
}

/* stylelint-disable selector-no-qualifying-type */
body {
    // stylelint-disable-next-line selector-class-pattern
    &.FlamingParrot_Orange {
        &.openid-connect-link {
            background:
                url("@tuleap/flamingparrot-theme/images/login/login-background-orange.png")
                    no-repeat center top,
                linear-gradient(#ffffff 0%, #f5f5f5 75%);
        }
    }

    // stylelint-disable-next-line selector-class-pattern
    &.FlamingParrot_Blue {
        &.openid-connect-link {
            background:
                url("@tuleap/flamingparrot-theme/images/login/login-background-blue.png") no-repeat
                    center top,
                linear-gradient(#ffffff 0%, #f5f5f5 75%);
        }
    }

    // stylelint-disable-next-line selector-class-pattern
    &.FlamingParrot_Green {
        &.openid-connect-link {
            background:
                url("@tuleap/flamingparrot-theme/images/login/login-background-green.png") no-repeat
                    center top,
                linear-gradient(#ffffff 0%, #f5f5f5 75%);
        }
    }

    // stylelint-disable-next-line selector-class-pattern
    &.FlamingParrot_BlueGrey {
        &.openid-connect-link {
            background:
                url("@tuleap/flamingparrot-theme/images/login/login-background-bluegrey.png")
                    no-repeat center top,
                linear-gradient(#ffffff 0%, #f5f5f5 75%);
        }
    }

    // stylelint-disable-next-line selector-class-pattern
    &.FlamingParrot_Purple {
        &.openid-connect-link {
            background:
                url("@tuleap/flamingparrot-theme/images/login/login-background-purple.png")
                    no-repeat center top,
                linear-gradient(#ffffff 0%, #f5f5f5 75%);
        }
    }

    // stylelint-disable-next-line selector-class-pattern
    &.FlamingParrot_Red {
        &.openid-connect-link {
            background:
                url("@tuleap/flamingparrot-theme/images/login/login-background-red.png") no-repeat
                    center top,
                linear-gradient(#ffffff 0%, #f5f5f5 75%);
        }
    }
}

/* stylelinst-enable */
