.app-floating-field {
    display: block;
    position: relative;
}

.app-floating-field label,
.app-floating-field > span {
    position: absolute;
    cursor: text;
    font-size: 75%;
    opacity: 1;

    -webkit-transition: all .2s;
    transition: all .2s;

    top: -.5em;
    left: 1rem;

    z-index: 3;

    line-height: 1;
    padding: 0 1px;

    font-weight: normal;
}

.app-floating-field label::after,
.app-floating-field > span::after {
    content: " ";
    display: block;

    position: absolute;

    background: white;

    height: 2px;

    top: 50%;
    left: -.2em;
    right: -.2em;

    z-index: -1;

    font-weight: normal;
}


/* Placeholder */
.app-floating-field .form-control::-webkit-input-placeholder {
    opacity: 1;

    -webkit-transition: all .2s;
    transition: all .2s;
}

.app-floating-field .form-control::-moz-placeholder {
    opacity: 1;
    transition: all .2s;
}

.app-floating-field .form-control:-ms-input-placeholder {
    opacity: 1;
    transition: all .2s;
}

.app-floating-field .form-control::placeholder {
    opacity: 1;

    -webkit-transition: all .2s;
    transition: all .2s;
}


/* Input vacío y sin foco: oculta placeholder */
.app-floating-field
.form-control:placeholder-shown:not(:focus)
::-webkit-input-placeholder {
    opacity: 0;
}

.app-floating-field
.form-control:placeholder-shown:not(:focus)
::-moz-placeholder {
    opacity: 0;
}

.app-floating-field
.form-control:placeholder-shown:not(:focus)
:-ms-input-placeholder {
    opacity: 0;
}

.app-floating-field
.form-control:placeholder-shown:not(:focus)
::placeholder {
    opacity: 0;
}


/* Input vacío y sin foco: label dentro del control */
.app-floating-field
.form-control:placeholder-shown:not(:focus)
+ * {
    opacity: .5;
    top: 1.2em;
}


/* =========================================================
   INPUT GROUP
   Copia funcional del original
   ========================================================= */

.input-group .app-floating-field {
    -webkit-box-flex: 1;

    -webkit-flex-grow: 1;
    -ms-flex-positive: 1;
    flex-grow: 1;

    margin-bottom: 0;

    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;

    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;

    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;

    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
}

.input-group
.app-floating-field
.form-control {
    width: 100%;
}

.input-group
.app-floating-field:not(:last-child),
.input-group
.app-floating-field:not(:last-child)
.form-control {
    border-bottom-right-radius: 0;
    border-top-right-radius: 0;
    border-right: 0;
}

.input-group
.app-floating-field:not(:first-child),
.input-group
.app-floating-field:not(:first-child)
.form-control {
    border-bottom-left-radius: 0;
    border-top-left-radius: 0;
}