.lea-input-text {
    position: relative;
    float: left;
    width: 100%;
    input {
        width: 100%;
        border-radius: $border-radius;
        box-shadow: none;
        border: $border-input;
        background-color: $background-input;
        font-family: $title;
        font-size: 1rem;
        padding: 1.2rem 1rem 0.5rem;
        margin: 1.1rem 0;
        color: $black;
        box-sizing: border-box;
        transition: $short-transition;
        &:focus {
            outline: none;
            transition: $short-transition;
            border: $border-focus;
        }
        &.input-error {
            transition: $short-transition;
            border: $border-error;
            color: $red;
        }
        &:disabled {
            background-color: $bg-grey;
            border: $border-disabled;
            color: $dark-grey;
        }
    }
    label {
        position: absolute;
        transform-origin: left;

        top: 2.05rem;
        left: 1rem;
        font-size: 1rem;
        color: $dark-grey;
        &.label-focus {
            color: $accent;
            transition: $short-transition;
        }
        // &.label-float {
        //     transform: scale(0.7) translate(-1.7rem, -1rem);
        //     transition: $short-transition;
        // }
        &.label-float {
            transform: scale(0.7) translate( 0rem, -1rem);
            transition: $short-transition;
        }
        &.label-not-float {
            transform: scale(1) translate(0);
            transition: $short-transition;
        }
        &.label-error {
            color: $red;
            transition: $short-transition;
        }
        &.label-disabled {
            color: $dark-grey;
        }
    }
    .error {
        position: absolute;
        bottom: 0;
        font-size: 0.7rem;
        height: 0.9rem;
        overflow: hidden;
        left: 0;
        span {
            position: relative;
            float: left;
            color: $red;
        }
    }
}

.error {
    span {
        transition: $short-transition;
        margin-top: -1rem;
    }
}

lea-input-text{
    &.withIcon{
            input{
                padding-right: 3rem ;
            }
        }
}


.input-error+.error {
    span {
        transition: $short-transition;
        margin-top: 0;
    }
}

// .ng-valid {
//     &.ng-touched {
//         .error {
//             span {
//                 traremnsition: $short-transition;
//                 margin-top: -1rem;
//             }
//         }
//     }
// }

.dark-mode{
    .lea-input-text {
        label{
        color: $light-grey;
        }
        input{
            color: $white;
            &:disabled {
                background-color: $dark-grey;
                border: $border-disabled;
                color: $grey;
            }
        }
    }
}
 