﻿.form-floating .form-control {
    border: solid 1px #aaa;
    padding-top: 13px;
    font-weight: 400;
}

    .form-floating .form-control:not(:placeholder-shown) {
        padding-top: 13px;
    }

    .form-floating .form-control:placeholder-shown + label {
        padding-top: 18px;
        color: #444;
    }

.form-floating .icon {
    color: #777;
    font-size: 18px;
    margin-left: 10px;
    height: 30px;
    width: 40px;
    background-color: #fff;
    display: block;
    text-align: center;
    position: absolute;
    top: 29%;
    right: 1%;
}


.form-floating .form-control:focus {
    box-shadow: none;
    padding-top: 13px;
    border: solid 1px #000099;
}

    .form-floating .form-control:focus + label, .form-floating .form-control:not(:placeholder-shown) + label {
        opacity: 1;
        padding: 0px;
        padding-right: 7px;
        padding-left: 4px;
        height: auto;
        width: auto;
        top: -2px;
        margin-left: 7px;
        background-color: #fff;
        color: #000099;
        font-weight: 500;
    }

.form-floating .form-control:not(:placeholder-shown) + label {
    color: #777;
}

.form-floating .form-control:not(:placeholder-shown):focus + label, .form-floating:has(.form-control:focus) .icon {
    color: #000099;
}

.form-floating .form-control.input-validation-error {
    border: solid 1px orangered;
    color: orangered;
}

    .form-floating .form-control.input-validation-error:not(:placeholder-shown) + label, .form-floating:has(.form-control.input-validation-error:not(:placeholder-shown)) .icon {
        color: orangered;
    }

    .form-floating .form-control.input-validation-error:focus + label {
        color: orangered;
    }

    .form-floating .form-control.input-validation-error + label {
        color: orangered;
    }

.form-floating .form-control:disabled, .form-floating .form-control:read-only {
    background-color: #eee;
    pointer-events: none;
    color: #777;
}

    .form-floating .form-control:disabled + label, .form-floating .form-control:read-only + label {
        color: #777;
    }




.form-floating .form-select {
    border: solid 1px #aaa;
    padding-top: 15px;
    font-weight: 400;
    line-height: 30px;
}

    .form-floating .form-select:focus {
        box-shadow: none;
        padding-top: 15px;
        border: solid 1px #000099;
    }

    .form-floating .form-select + label {
        opacity: 1;
        padding: 0px;
        padding-right: 10px;
        padding-left: 4px;
        height: auto;
        width: auto;
        top: -2px;
        margin-left: 7px;
        background-color: #fff;
        color: #777;
        font-weight: 500;
    }

    .form-floating .form-select:focus + label {
        color: #000099;
    }

    .form-floating .form-select:disabled {
        color: #777;
        background-color: #eee;
    }

        .form-floating .form-select:disabled + label {
            color: #777;
        }

    .form-floating .form-select.input-validation-error {
        color: orangered;
        border: solid 1px orangered;
    }

        .form-floating .form-select.input-validation-error + label {
            color: orangered;
        }



.form-floating .btn-group .form-select {
    padding-top: 12px;
    font-weight: 400;
}

.form-floating .btn-group + label {
    opacity: 1 !important;
    padding: 0px;
    padding-right: 10px;
    padding-left: 4px;
    height: auto;
    width: auto;
    top: -2px;
    margin-left: 7px;
    background-color: #fff;
    color: #777;
    font-weight: 500;
}

.form-floating .btn-group:focus {
    border: solid 1px #000099;
}

.form-floating .btn-group:has(.form-select:focus) + label {
    color: #000099 !important;
}

.form-floating .form-select.input-validation-error + .btn-group .form-select {
    border: solid 1px orangered !important;
    color: red;
}

.form-floating .form-select.input-validation-error + .btn-group + label {
    color: orangered !important;
}
