.inp {
    position: relative;
    width: 100%;
    border-radius: 3px;
    overflow: hidden;
}
.inp .label {
    position: absolute;
    top: 20px;
    left: 12px;
    font-size: 16px;
    color: rgba(0, 0, 0, 0.5);
    font-weight: 500;
    transform-origin: 0 0;
    transform: translate3d(0, 0, 0);
    transition: all 0.2s ease;
    pointer-events: none;
    background: transparent;
}
.inp .focus-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.05);
    z-index: -1;
    transform: scaleX(0);
    transform-origin: left;
}
.inp input {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 100%;
    border: 0;
    font-family: inherit;
    padding: 20px 12px 0 12px !important;
    height: 36px !important;
    font-size: 16px;
    font-weight: 400;
    background: rgba(0, 0, 0, 0.02);
    box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.3);
    color: #000;
    transition: all 0.15s ease;
}
.inp input:hover {
    background: rgba(0, 0, 0, 0.04);
    box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.5);
}
.inp input:not(:-moz-placeholder-shown) + .label {
    color: rgba(0, 0, 0, 0.5);
    transform: translate3d(0, -12px, 0) scale(0.75);
}
.inp input:not(:-ms-input-placeholder) + .label {
    color: rgba(0, 0, 0, 0.5);
    transform: translate3d(0, -12px, 0) scale(0.75);
}
.inp input:not(:placeholder-shown) + .label {
    color: rgba(0, 0, 0, 0.5);
    transform: translate3d(0, -12px, 0) scale(0.75);
}


.inp input:focus {
    background: rgba(0, 0, 0, 0.05);
    outline: none;
    box-shadowYYYYY: inset 0 -2px 0 #0077FF;
}

.inpWrapper:focus-within {
    background: rgba(0, 0, 0, 0.05);
    outline: none;
    box-shadowTTTT: inset 0 -2px 0 #0077FF;
}


.inp input:focus + .label {
    color: #0077FF;
    transform: translate3d(0, -12px, 0) scale(0.75);
}
.inp input:focus + .label + .focus-bg {
    transform: scaleX(1);
    transition: all 0.1s ease;
}


.inpWrapper:focus-within  + .control-label  {
    color: #0077FF;
    transform: translate3d(0, -12px, 0) scale(0.75);
}

.inpWrapper:focus-within + .control-label + .focus-bg {
    transform: scaleX(1);
    transition: all 0.1s ease;
}



.inp > div > .control-label {
    position: absolute;
    top: 20px;
    left: 12px;
    font-size: 16px;
    color: rgba(0, 0, 0, 0.5);
    font-weight: 500;
    transform-origin: 0 0;
    transform: translate3d(0, 0, 0);
    transition: all 0.2s ease;
    pointer-events: none;
    background: transparent;
}



.inp div input:not(:placeholder-shown) + .control-label {
    color: rgba(0, 0, 0, 0.5);
    transform: translate3d(0, -12px, 0) scale(0.75);
}


.inp div input:focus + .control-label {
    color: #0077FF;
    transform: translate3d(0, -12px, 0) scale(0.75);
}
.inp div  input:focus + .control-label + .focus-bg {
    transform: scaleX(1);
    transition: all 0.1s ease;
}