﻿.group {
    position: relative;
    margin-bottom: 20px;
    margin-top: 5px;
}

.textbox {
    font-size: 18px;
    padding: 10px 10px 5px 5px;
    display: block;
    width: 80%;
    border: none;
    border-bottom: 1px solid #5264AE;
}

    .textbox:focus {
        outline: none;
    }

.group label {
    color: #999;
    font-size: 18px;
    font-weight: normal;
    position: absolute;
    pointer-events: none;
    left: 5px;
    top: 10px;
    transition: 0.2s ease all;
}
/* active state */

.textbox:focus ~ label,
.textbox:valid ~ label {
    top: -10px;
    font-size: 14px;
     color: #5264AE;
}
/* BOTTOM BARS ================================= */

.bar {
    position: relative;
    display: block;
    width: 80%;
}

    .bar:before,
    .bar:after {
        content: '';
        height: 2px;
        width: 0;
        bottom: 1px;
        position: absolute;
        background: #ff6a00;
        transition: 0.2s ease all;
    }

    .bar:before {
        left: 50%;
    }

    .bar:after {
        right: 50%;
    }
/* active state */

.textbox:focus ~ .bar:before,
.textbox:focus ~ .bar:after {
    width: 50%;
}
/* HIGHLIGHTER ================================== */

.highlight {
    position: absolute;
    height: 60%;
    width: 100px;
    top: 25%;
    left: 0;
    pointer-events: none;
    opacity: 0.5;
}

/* active state */

.textbox:focus ~ .highlight {
    animation: inputHighlighter 0.3s ease;
}
/* ANIMATIONS ================ */

@keyframes inputHighlighter {
    from {
        background: #caf1ee;
    }

    to {
        width: 0;
         background: transparent;
    }
}
