/**
 * 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 "pkg:@tuleap/tlp-swatch-colors";

// stylelint-disable selector-no-qualifying-type, selector-class-pattern
body.login-page {
    &,
    &.FlamingParrot_Orange {
        background:
            url("../images/login/login-background-orange.png") no-repeat center top,
            linear-gradient(#ffffff 0%, #f5f5f5 75%);
    }

    &.FlamingParrot_Blue {
        background:
            url("../images/login/login-background-blue.png") no-repeat center top,
            linear-gradient(#ffffff 0%, #f5f5f5 75%);
    }

    &.FlamingParrot_Green {
        background:
            url("../images/login/login-background-green.png") no-repeat center top,
            linear-gradient(#ffffff 0%, #f5f5f5 75%);
    }

    &.FlamingParrot_BlueGrey {
        background:
            url("../images/login/login-background-bluegrey.png") no-repeat center top,
            linear-gradient(#ffffff 0%, #f5f5f5 75%);
    }

    &.FlamingParrot_Purple {
        background:
            url("../images/login/login-background-purple.png") no-repeat center top,
            linear-gradient(#ffffff 0%, #f5f5f5 75%);
    }

    &.FlamingParrot_Red {
        background:
            url("../images/login/login-background-red.png") no-repeat center top,
            linear-gradient(#ffffff 0%, #f5f5f5 75%);
    }
}
// stylelint-enable

#login-box {
    #login-help:hover,
    #login-help:active,
    .not-a-member > a {
        color: var(--tlp-main-color);
    }

    > form {
        #login-lost-password {
            color: var(--tlp-main-color);
        }
    }
}

.additional-connectors-or {
    display: block;
    position: relative;
    height: 100px;
    color: #bbbbbb;
    font-size: 12px;

    > span {
        position: absolute;
        z-index: 2;
        top: 50%;
        left: 50%;
        padding: 0 10px;
        transform: translate(-50%, -50%);
        background: #ffffff;
        white-space: nowrap;
    }

    &::before {
        content: "";
        position: absolute;
        z-index: 1;
        top: 50%;
        left: 0;
        width: 100%;
        height: 1px;
        border-top: 1px solid #f1f1f1;
    }
}

.additional-connectors-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    gap: 5px;

    &.one-column {
        grid-template-columns: 1fr;
    }

    > .btn.btn-primary.colored-button {
        display: block;
        box-sizing: border-box;
        padding: 18px 5px;
        font-size: 16px;
        line-height: normal;

        > i {
            margin: 0 3px 0 0;
            font-size: 18px;
        }
    }
}

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