:root {
    --form-group-font-size: 16px;
}

body {
    min-width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

body main[role='main'] {
    align-content: center;
    padding-block: 50px 80px;
}

/*---------------------------------------------*/
button {
    outline: none !important;
}

.login-section {
    font-family: Poppins-Regular;
    width: 390px;

    @media only screen and (max-width: 450px) {
        & {
            width: calc(100vw - 40px);
        }
    }

    .card {
        width: 100%;
        border-radius: 10px;

        .card-title {
            font-weight: bold;
        }

        .site-logo {
            max-width: calc(100% - 10px);
        }

        a.btn-back {
            position: absolute;
            right: 15px;
            bottom: 10px;
            text-decoration: none;

            .icon {
                width: 22px;
                height: 22px;
                font-size: 13px;
                padding-block: 2px 0px;
                border-radius: 50px;
                transition: 0.4s;
            }
            .text {
                font-size: 16px;
            }
        }

        a.btn-forgot {
            font-size: var(--form-group-font-size, 16px);
        }
    }
}

.form-group {
    width: 100%;
    position: relative;
    border-bottom: 2px solid;
    margin-bottom: 40px;

    &.validate-input {
        position: relative;
    }

    .form-control {
        font-size: var(--form-group-font-size, 16px);
        line-height: 1.2;

        display: block;
        width: 100%;
        height: 40px;
        background: transparent;

        outline: none;
        border: none !important;
        box-shadow: none !important;

        &:focus::-webkit-input-placeholder {
            color: transparent;
        }
        &:focus:-moz-placeholder {
            color: transparent;
        }
        &:focus::-moz-placeholder {
            color: transparent;
        }
        &:focus:-ms-input-placeholder {
            color: transparent;
        }
    }

    .field-validation-error {
        position: absolute;
        top: calc(100% + 5px);
        left: 0;
        font-size: var(--form-group-font-size, 16px);
    }

    .focus-input-field {
        position: absolute;
        display: block;
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
        pointer-events: none;

        &::before {
            content: '';
            display: block;
            position: absolute;
            bottom: -2px;
            left: 0;
            width: 0;
            height: 2px;

            -webkit-transition: all 0.4s;
            -o-transition: all 0.4s;
            -moz-transition: all 0.4s;
            transition: all 0.4s;
        }

        &::after {
            font-size: var(--form-group-font-size, 16px);
            line-height: 1.2;
            opacity: 0.8;

            content: attr(data-placeholder);
            display: block;
            width: 100%;
            position: absolute;
            top: 16px;
            left: 0px;
            padding-left: 5px;

            -webkit-transition: all 0.4s;
            -o-transition: all 0.4s;
            -moz-transition: all 0.4s;
            transition: all 0.4s;
        }
    }

    .form-control:-webkit-autofill ~ .focus-input-field::after,
    .form-control:focus + .focus-input-field::after,
    .has-val.form-control + .focus-input-field::after {
        top: -22px;
        font-size: calc(var(--form-group-font-size, 16px) - 2px);
    }

    .form-control:focus + .focus-input-field::before,
    .form-control:-webkit-autofill ~ .focus-input-field::before,
    .has-val.form-control + .focus-input-field::before {
        width: 100%;
    }
}

.passWordArea {
    position: relative;

    .field-icon {
        width: 25px;
        position: absolute;
        right: 0px;
        top: 0px;
        bottom: 0px;
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 2;
        cursor: pointer;

        * {
            cursor: pointer;
        }
    }
}

.btn-submit {
    width: 100%;
    display: block;
    position: relative;
    z-index: 1;
    border-radius: 25px;
    overflow: hidden;
    margin: 0 auto;
    font-size: calc(var(--form-group-font-size, 16px) + 4px);
    font-weight: bold;

    .btn-submit-bg {
        position: absolute;
        z-index: -1;
        width: 300%;
        height: 100%;
        top: 0;
        left: -100%;

        -webkit-transition: all 0.4s;
        -o-transition: all 0.4s;
        -moz-transition: all 0.4s;
        transition: all 0.4s;
    }

    &:hover .btn-submit-bg {
        left: 0;
    }
}

/*! inherit autofill input fields label --------------------*/
/* input:-webkit-autofill:not(:hover) ~ .focus-input-field::after {
    color: transparent !important;
} */

/** Color area start */

/* body {
    background: #e6e6e6;
}

a.btn-back .icon {
    background-color: #f0f0f0;
}

a.btn-back:hover .icon {
    background: #6a7dfe;
    background: -webkit-linear-gradient(left, #21d4fd, #b721ff);
    color: white;
}

.form-group {
    border-color: #adadad;
}
.form-group .form-control {
    color: var(--font-color, #555555);
}
.form-group .form-control::-webkit-input-placeholder {
    color: var(--font-color, #adadad);
}
.form-group .form-control:-moz-placeholder {
    color: var(--font-color, #adadad);
}
.form-group .form-control::-moz-placeholder {
    color: var(--font-color, #adadad);
}
.form-group .form-control:-ms-input-placeholder {
    color: var(--font-color, #adadad);
}
.form-group .focus-input-field::before {
    background: #6a7dfe;
    background: -webkit-linear-gradient(left, #21d4fd, #b721ff);
    background: -o-linear-gradient(left, #21d4fd, #b721ff);
    background: -moz-linear-gradient(left, #21d4fd, #b721ff);
    background: linear-gradient(left, #21d4fd, #b721ff);
}
.form-group .focus-input-field::after {
    color: var(--font-color, #696969);
}

.passWordArea {
    position: relative;
}
.passWordArea .field-icon:hover,
.passWordArea .field-icon .fa-eye-slash {
    color: #6a7dfe;
    color: -webkit-linear-gradient(left, #21d4fd, #b721ff);
    color: -o-linear-gradient(left, #21d4fd, #b721ff);
    color: -moz-linear-gradient(left, #21d4fd, #b721ff);
    color: linear-gradient(left, #21d4fd, #b721ff);
}

.btn-submit {
    color: white;
}
.btn-submit .btn-submit-bg {
    background: #a64bf4;
    background: -webkit-linear-gradient(
        right,
        #21d4fd,
        #b721ff,
        #21d4fd,
        #b721ff
    );
    background: -o-linear-gradient(right, #21d4fd, #b721ff, #21d4fd, #b721ff);
    background: -moz-linear-gradient(right, #21d4fd, #b721ff, #21d4fd, #b721ff);
    background: linear-gradient(right, #21d4fd, , #21d4fd, #b721ff);
}
.btn-submit :hover {
    color: white;
} */
/*? Color area end */
