/*

FORM-FLOATING / FLOATING LABELS

CSS Modificat i adaptat per UPF ( S'ha canviat la clase original .has-float-label que porta al CSS original ( link abaix ) per .form-floating que és la que es fa servir a bootstrap 5 natiu.

El fem servir per adaptar a LR 7.2 DXP el comportament que es pot aconseguir amb Bootstrap 5
Origen del CSS : https://cdn.rawgit.com/tonystar/bootstrap-float-label/v4.0.1/dist/bootstrap-float-label.min.css
Exèmple de codi : https://codepen.io/tonycorp/pen/LRdpYe

*/

.form-floating {
    display: block;
    position: relative;
}
.form-floating label, .form-floating>span {
    position: absolute;
    cursor: text;
    font-size: 75%;
    opacity: 1;
    -webkit-transition: all .2s;
    transition: all .2s;
    top: -.5em;
    left: .75rem;
    z-index: 3;
    line-height: 1;
    padding: 0 1px;
}
.form-floating label::after, .form-floating>span::after {
    content: " ";
    display: block;
    position: absolute;
    background: #fff;
    height: 2px;
    top: 50%;
    left: -.2em;
    right: -.2em;
    z-index: -1;
}
.form-floating .form-control::-webkit-input-placeholder {
    opacity: 1;
    -webkit-transition: all .2s;
    transition: all .2s;
}
.form-floating .form-control:placeholder-shown:not(:focus)::-webkit-input-placeholder {
    opacity: 0;
}

.input-group .form-floating {
    display: table-cell;
}
.input-group .form-floating .form-control {
    border-radius: .25rem;
}
.input-group .form-floating:not(:last-child), .input-group .form-floating:not(:last-child) .form-control {
    border-bottom-right-radius: 0;
    border-top-right-radius: 0;
    border-right: 0;
}
.input-group .form-floating:not(:first-child), .input-group .form-floating:not(:first-child) .form-control {
    border-bottom-left-radius: 0;
    border-top-left-radius: 0;
}
