.floatingLabel {
    display: block;
    position: relative;
}

.floatingLabel label,
.floatingLabel>span {
    position: absolute;
    left: 0;
    top: 0;
    cursor: text;
    font-size: 75%;
    opacity: 1;
    -webkit-transition: all .2s;
    transition: all .2s;
    top: -.5em;
    left: 12px;
    z-index: 4;
    line-height: 1;
    padding: 0 1px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: calc(100% - 3ex);
    height: 1.5em;
    background-color: white;
}

.floatingLabel label::after,
.floatingLabel>span::after {
    content: " ";
    display: block;
    position: absolute;
    background: white;
    height: 2px;
    top: 50%;
    left: -.2em;
    right: -.2em;
    z-index: -1;
}

.transparent-labels .floatingLabel label,
.transparent-labels .floatingLabel>span {
    background: none;
}

.floatingLabel .form-control::-webkit-input-placeholder {
    opacity: 1;
    -webkit-transition: all .2s;
    transition: all .2s;
}

.floatingLabel .form-control::-moz-placeholder {
    opacity: 1;
    transition: all .2s;
}

.floatingLabel .form-control:-ms-input-placeholder {
    opacity: 1;
    transition: all .2s;
}

.floatingLabel .form-control::placeholder {
    opacity: 1;
    -webkit-transition: all .2s;
    transition: all .2s;
}

.floatingLabel .form-control:placeholder-shown:not(:focus)::-webkit-input-placeholder {
    opacity: 0;
}

.floatingLabel .form-control:placeholder-shown:not(:focus)::-moz-placeholder {
    opacity: 0;
}

.floatingLabel .form-control:placeholder-shown:not(:focus):-ms-input-placeholder {
    opacity: 0;
}

.floatingLabel .form-control:placeholder-shown:not(:focus)::placeholder {
    opacity: 0;
}

.floatingLabel .form-control:placeholder-shown:not(:focus)+* {
    font-size: 125%;
    opacity: .5;
    top: .6em;
    font-weight: normal;
}

.input-group .floatingLabel {
    display: table-cell;
}

.input-group .floatingLabel .form-control {
    border-radius: 4px;
}

.input-group .floatingLabel:not(:last-child) .form-control {
    border-bottom-right-radius: 0;
    border-top-right-radius: 0;
}

.input-group .floatingLabel:not(:first-child) .form-control {
    border-bottom-left-radius: 0;
    border-top-left-radius: 0;
    margin-left: -1px;
}