
.panel {
    position: relative;
    width: 100%;
    padding: 40px;
    background: #F9F9F9;
    box-shadow: 0px 22px 44px 0px rgba(0, 0, 0, 0.3);
    border-radius: 2px;
}

.top {
    margin-top: 90px;
}

.top h1 {
    font-size: 32px;
    line-height: 32px;
    color: #FFF;
    text-align: center;
}

.form-bg {
    position: absolute;
    height: 217px;
    width: 205px;
    background-size: contain;
    top: -70px;
    top: -7rem;
    right: -130px;
    right: -13rem;
    z-index: 0;
}

.bot-text {
    color: #ebe8f6;
    padding: 20px;
}


/* ============ LABEL =========== */

label {
    color: #333;
    font-weight: 400;
    transition: all .3s cubic-bezier(.64, .09, .08, 1);
    margin: 0px 0 0px;
    display: inline-block
}

.floating-label {
    -webkit-transform: translateY(-18px);
    transform: translateY(-18px);
    position: absolute
}

.label-active {
    -webkit-transform: translateY(-38px);
    transform: translateY(-38px);
    font-size: 11px;
    color: #9b9b9b;
    letter-spacing: 1px;
}

.label-required:before {
    content: '*';
    color: #5F47B6;
    position: absolute;
    margin-left: -10px
}


/* ============ INPUT =========== */

input[type=email],
input[type=text],
input[type=datepicker],
input[type=password],
input[type=number] {
    position: relative;
    z-index: 2;
    margin-bottom: 30px;
    width: 100%;
    display: block;
    border: none;
    padding: 10px 0;
    border-bottom: solid 1px #9B9B9B;
    will-change: background-position;
    transition: all .3s cubic-bezier(.64, .09, .08, 1);
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 96%, #5F47B6 96%);
    background-position: -1920px 0;
    background-size: 100%;
    background-repeat: no-repeat;
    color: #333;
    font-size: 14px;
    font-weight: 400;
}

textarea {
    position: relative;
    z-index: 2;
    margin-bottom: 30px;
    width: 100%;
    display: block;
    border: none;
    padding: 10px 0;
    border-bottom: solid 1px #9B9B9B;
    will-change: background-position;
    transition: all .3s cubic-bezier(.64, .09, .08, 1);
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 98%, #5F47B6 98%);
    background-position: -1920px 0;
    background-size: 100%;
    background-repeat: no-repeat;
    color: #333;
    font-size: 14px;
    font-weight: 400;
}

input[type=email].input-active,
input[type=email]:focus,
input[type=text].input-active,
input[type=text]:focus,
input[type=datepicker].input-active,
input[type=datepicker]:focus,
textarea.input-active,
textarea:focus,
input[type=password].input-active,
input[type=password]:focus,
input[type=number].input-active,
input[type=number]:focus {
    background-position: 0 0;
    box-shadow: none;
    outline: 0;
}

input[type=email].input-active,
input[type=email]:focus:after,
input[type=text].input-active,
input[type=text]:focus:after,
input[type=datepicker].input-active,
input[type=datepicker]:focus:after,
textarea.input-active,
textarea:focus:after,
input[type=password].input-active,
input[type=password]:focus:after,
input[type=number].input-active,
input[type=number]:focus:after {
    position: relative;
    z-index: 2;
    margin-bottom: 30px;
    width: 100%;
    display: block;
    border: none;
    padding: 10px 0;
    border-bottom: solid 1px #9B9B9B;
    will-change: background-position;
    transition: all .3s cubic-bezier(.64, .09, .08, 1);
    background: linear-gradient(to bottom, rgba(249, 249, 249, 0) 96%, #9B9B9B 96%);
    background-position: -1920px 0;
    background-size: 100%;
    background-repeat: no-repeat;
    color: #333;
    font-size: 14px;
    font-weight: 400;
}

input[type=email]::-webkit-input-placeholder,
input[type=text]::-webkit-input-placeholder,
input[type=datepicker]::-webkit-input-placeholder,
textarea::-webkit-input-placeholder,
input[type=password]::-webkit-input-placeholder,
input[type=number]::-webkit-input-placeholder {
    transition: all .2s cubic-bezier(.64, .09, .08, 1);
}

input[type=radio]:after,
input[type=radio]:before {
    content: '';
    position: absolute;
    transition: all .3s cubic-bezier(.64, .09, .08, 1)
}

input[type=checkbox] {
    position: relative;
    cursor: pointer;
    top: -2px;
    margin-left: -1px;
    margin: 5px 12px 5px 0px;
}

input[type=checkbox]:before {
    content: '';
    width: 20px;
    height: 20px;
    border: 1px solid #9b9b9b;
    border-radius: 3px;
    background: #f9f9f9;
    position: absolute;
    top: -2px;
    margin-left: -1px;
}

input[type=checkbox]:after {
    content: '✓';
    color: #fff;
    background: #5F47B6;
    position: absolute;
    top: -2px;
    margin-left: -1px;
    left: 0;
    width: 20px;
    height: 20px;
    border: 1px solid #5F47B6;
    border-radius: 3px;
    display: -webkit-inline-flex;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
    opacity: 0;
    transition: opacity .3s cubic-bezier(.64, .09, .08, 1);
    will-change: opacity
}

input[type=checkbox]:checked:after {
    opacity: 1
}

input[type=radio] {
    position: relative;
    top: 2px;
    left: 2px;
    margin: 0 8px;
    cursor: pointer
}

input[type=radio]:before {
    background-color: #fff;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1px solid #5F47B6;
    display: inline-block;
    top: -5px;
    left: -8px;
    background-image: radial-gradient(circle, #5F47B6 60%, #fff 70%);
    background-size: 0;
    background-position: 50% 50%;
    background-repeat: no-repeat;
    will-change: background-size;
    z-index: 2
}

input[type=radio]:after {
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 50%
}

input[type=radio]:checked:before {
    background-size: 14px 14px
}


/* ============ BUTTON =========== */

.chic-button {
   margin-top: 20px;
    padding: 15px 0;
    float: right;
    background: #2282af;
    border-radius: 3px;
    color: #fff;
    border: 1px solid #2282af;
    font-weight: 400;
    width: 100%;
}

.chic-button:hover {
    background-color: #99cc00;
    ;
    border: 1px solid #99cc00;
}
@media only screen and (max-width: 667px) {
	.form-bg {
    position: absolute;
    height: 217px;
    width: 202px;
    background-size: contain;
    top: -6rem;
    right: -2rem;
    z-index: 0;
}
.top {
    margin-top: 18px;
    margin-bottom: 35px;
}
}
