div.example > label {
    display: inline-block;
    width: auto;
    height: 60px;
    font-size: 12pt;
    font-family: sans-serif;
    background-color: #EFEFEF;
    color: #555;
    border-radius: 4px;
    overflow: hidden;
    cursor: text;
}
div.example > label span {
    position: relative;
    top: -44px;
    font-size: 1.25em;
    padding: 0 10px;
    transition: 0.3s;
}
div.example > label input {
    display: block;
    height: 40px;
    width: 200px;
    padding: 18px 10px 0 10px;
    background-color: #EFEFEF;
    color: #444;
    font-size: 1em;
    border: 0;
    border-bottom: 2px solid #555;
    transition: 0.3s;
}
div.example > label:hover input, div.example > label input:focus {
    background-color: #F5F5F5;
}
div.example > label input:focus + span {
    top: -58px;
    font-size: 0.9em;
    color: #55F;
}
div.example > label input:focus {
    outline: none;
    color: #55F;
    border-bottom-color: #55F;
}
div.example > label input.placeholder:not(:placeholder-shown) + span {
    top: -58px;
    font-size: 0.9em;
}
div.example > label input.required:valid + span {
    top: -58px;
    font-size: 0.9em;
}
div.example > label input.notblank + span {
    top: -58px;
    font-size: 0.9em;
}