/**
 * Copyright (c) Enalean, 2020-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/>.
 */

.account-security-password-form {
    display: flex;
    justify-content: space-between;
}

.account-security-password-fields {
    width: calc(50% - var(--tlp-medium-spacing));
}

.account-security-password-robustness {
    display: flex;
    flex-direction: column;
    width: calc(50% - var(--tlp-medium-spacing));
    transition: opacity ease-in-out 150ms;
    opacity: 1;

    &.account-security-password-robustness-hidden {
        opacity: 0;
    }

    > .tlp-label {
        flex: 0 0 auto;
    }

    > .robustness {
        flex: 1 1 auto;
        border-radius: var(--tlp-medium-radius);

        &.good {
            background: var(--tlp-success-color-transparent-90);
            color: var(--tlp-success-color);

            > .password-strategy-bad {
                display: none;
            }
        }

        &.bad {
            background: var(--tlp-danger-color-transparent-90);
            color: var(--tlp-danger-color);

            > .password-strategy-good {
                display: none;
            }
        }

        > .password-strategy-good,
        > .password-strategy-bad {
            margin: var(--tlp-medium-spacing) 0
                calc(var(--tlp-medium-spacing) + var(--tlp-small-spacing));
            font-size: 30px;
            font-weight: 600;
            text-align: center;
        }
    }
}

.account-security-password-passwords-validator {
    position: relative;
    margin: 0 0 5px;
    padding: 0 0 0 20px;
    font-size: 14px;
    line-height: 20px;

    > .fa {
        position: absolute;
        top: 3px;
        left: 0;
        font-style: normal;
    }
}
