/*
 * Copyright (c) 2023, 2024, Oracle and/or its affiliates.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License, version 2.0,
 * as published by the Free Software Foundation.
 *
 * This program is designed to work with certain software (including
 * but not limited to OpenSSL) that is licensed under separate terms, as
 * designated in a particular file or component or in included license
 * documentation.  The authors of MySQL hereby grant you an additional
 * permission to link the program and your derivative works with the
 * separately licensed software that they have either included with
 * the program or referenced in the documentation.
 *
 * This program 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, version 2.0, for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software Foundation, Inc.,
 * 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
 */

.mrsLogin {
    display: flex;
    flex-direction: column;
    padding-bottom: 20px;
    gap: 12px;
    align-items: center;
}

.mrsLogin p {
    font-size: 20px;
    font-weight: 400;
}

.mrsLoginFields {
    display: flex;
    flex-direction: column;
}

.mrsLoginFields input[type=text],
.mrsLoginFields input[type=password] {
    border: none;
    outline: none;
    background-color: transparent;
    color: var(--primary-text-color);
    font-size: 17px;
    font-weight: 300;
    width: 250px;
}

.mrsLoginField {
    display: flex;
    flex-direction: row;
    border: 1px solid var(--secondary-text-color);
    padding: 8px 8px 8px 16px;
}

.mrsLoginField:first-of-type {
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
}

.mrsLoginField:last-of-type:not(:only-of-type) {
    border-top: 0px;
}

.mrsLoginField:last-of-type {
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
    margin-bottom: 16px;
}

.mrsLoginField input {
    height: 26px;
}

.mrsLoginBtnNext {
    border: 1px solid var(--secondary-text-color);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    margin-left: 12px;
    padding-right: 0px;
}

.mrsLoginBtnNext.active {
    border: 1px solid var(--primary-text-color);
}

.mrsLoginBtnNext.loading {
    border: none;
    width: 26px;
}

.mrsLoginBtnNext::after {
    content: "";
    position: relative;
    border: solid var(--secondary-text-color);
    border-width: 0 3px 3px 0;
    display: inline-block;
    padding: 3px;
    transform: rotate(-45deg);
    -webkit-transform: rotate(-45deg);
    margin-left: 6px;
    margin-top: 7px;
}

.mrsLoginBtnNext.active::after {
    content: "";
    position: relative;
    border: solid var(--primary-text-color);
    border-width: 0 3px 3px 0;
    display: inline-block;
    padding: 3px;
    transform: rotate(-45deg);
    -webkit-transform: rotate(-45deg);
    margin-left: 6px;
    margin-top: 7px;
}

.mrsLoginBtnNext.loading::after {
    content: " ";
    display: block;
    width: 17px;
    height: 17px;
    margin-left: -3px;
    margin-top: -2px;
    border-radius: 50%;
    border: 4px solid var(--primary-text-color);
    border-color: var(--primary-text-color) transparent var(--primary-text-color) transparent;
    animation: mrsLoaderKeyframes 1.2s linear infinite;
}

@keyframes mrsLoaderKeyframes {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.mrsLoginError {
    background-color: var(--error-color);
    box-shadow: rgb(0 0 0 / 10%) 0px 5px 10px 2px;
    width: 220px;
    padding: 8px 20px 8px 20px;
    border: 1px solid var(--error-text-color);
    border-radius: 6px;
}

.mrsLoginError p {
    color: var(--error-text-color);
    font-size: 14px;
    text-align: center;
}

.mrsLoginError:before {
    width: 15px;
    height: 15px;
    background-color: var(--error-color);
    content: "";
    position: absolute;
    left: 50%;
    margin-top: -16px;
    margin-left: -15px;
    transform: rotate(135deg) skewX(5deg) skewY(5deg);
    -webkit-transform: rotate(135deg) skewX(5deg) skewY(5deg);
    border-left: 1px solid var(--error-text-color);
    border-bottom: 1px solid var(--error-text-color);
}

.mrsLoginSeparator {
    background: linear-gradient(to right, rgba(200, 200, 200, 0), rgba(200, 200, 200, 1), rgba(200, 200, 200, 1), rgba(200, 200, 200, 0));
    width: 400px;
    height: 1px;
    margin-top: 20px;
}
