/**
 * 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/>.
 */

/* stylelint-disable-next-line selector-no-qualifying-type */
body.login-page {
    background: linear-gradient(#ffffff 0%, #f5f5f5 75%);
    text-align: center;
}

#login-box {
    display: inline-block;
    position: relative;
    box-sizing: border-box;
    width: 400px;
    margin: 100px 0 0;
    padding: 30px;
    border: 1px solid #ededed;
    border-radius: var(--tlp-large-radius);
    background: #ffffff;
    box-shadow: var(--tlp-pane-shadow);

    #login-help {
        position: absolute;
        top: 10px;
        right: 10px;
        transition: color 250ms ease-in-out;
        color: #bbbbbb;
        font-size: 18px;

        &:hover,
        &:active {
            transition: color 50ms ease-in-out;
            color: #555555;
            text-decoration: none;
        }

        > span {
            display: inline-block;
            position: relative;
            top: 4px;
            max-width: 0;
            height: 20px;
            overflow: hidden;
            transition: max-width 200ms ease-in;
            font-size: 12px;
        }

        > i::before {
            transition: transform 200ms ease-in-out;
        }

        &:hover {
            > i::before {
                transform: rotate(-360deg);
            }

            > span {
                max-width: 350px;
                transition: max-width 200ms ease;
            }
        }
    }

    > h1 {
        margin: 10px 0 50px;
        font-size: 40px;
        font-weight: 100;
        line-height: normal;
    }

    #login-intro {
        margin: 0 0 30px;
        color: #4db3d0;
        font-size: 13px;
    }

    > form {
        margin: 0;

        > input[type="text"],
        input[type="password"] {
            display: block;
            box-sizing: border-box;
            width: 100%;
            height: 50px;
            padding: 15px;
            font-size: 18px;
            line-height: normal;
        }

        > button {
            display: block;
            box-sizing: border-box;
            width: 100%;
            margin: 50px 0 10px;
            padding: 15px 5px;
            font-size: 20px;
            line-height: normal;

            &:last-child {
                margin: 50px 0 0;
            }
        }

        #login-ssl {
            margin: 30px 0 -20px;
            line-height: normal;
            text-align: left;

            > input {
                position: relative;
                top: -1px;
                margin: 0 3px 0 0;
            }
        }

        #login-lost-password {
            font-size: 12px;
        }
    }

    .not-a-member {
        margin: 40px 0 0;
    }
}
