.login:before {
	content:'';
    position: fixed;
    top: 0;bottom:0;left: 0;right:0;
    background-image: url(../images/bg.jpg);
    background-size: cover;
    background-repeat: none;
    background-position: 50% 50%;
	-webkit-backface-visibility: hidden;
    -webkit-animation: imageAnimation 35s linear infinite 0s;
    -moz-animation: imageAnimation 35s linear infinite 0s;
    -o-animation: imageAnimation 35s linear infinite 0s;
    -ms-animation: imageAnimation 35s linear infinite 0s;
    animation: imageAnimation 35s linear infinite 0s;
    width: 100%;height: 100%;
    z-index: 0;
}

.login:after { content:'';position: absolute;top:0;bottom:0;left:0;right:0;background:rgba(0,0,0,0.5); z-index: 44;}
.login .logo { text-align:center; margin-bottom:20px; }
.login form { 
    position: fixed;
	display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    align-items: center;
    justify-content: center;
    top:0;bottom:0;right:0;
    padding:0px 5vh;
    box-shadow: 2px 10px 30px 0 rgba(0,0,0,.42), 0 4px 25px 0 rgba(0,0,0,.12), 0 8px 10px -5px rgba(0,0,0,.2);
    transition: width .1s cubic-bezier(0,0,.2,1);
    width:400px; 
    z-index: 8888;
}
.login form:after {
	content:'';
	position: absolute;
	top:0;left:0;opacity: .9;
	background: #FFF;
    width:100%;height:100%;
}

.login form .inner { position: relative;display:block;width:100%;z-index: 5555; }
@-webkit-keyframes imageAnimation { 
	0% {
	    -webkit-animation-timing-function: ease-in;
	}
	8% {
	    -webkit-transform: scale(1.05);
	    -webkit-animation-timing-function: ease-out;
	}
	17% {
	    -webkit-transform: scale(1.1) rotate(3deg);
	}
	25% {
	    -webkit-transform: scale(1.1) rotate(3deg);
	}
}
@-moz-keyframes imageAnimation { 
	0% {
	    -moz-animation-timing-function: ease-in;
	}
	8% {
	    -moz-transform: scale(1.05);
	    -moz-animation-timing-function: ease-out;
	}
	17% {
	    -moz-transform: scale(1.1) rotate(3deg);
	}
	25% {
	    -moz-transform: scale(1.1) rotate(3deg);
	}
}
@-o-keyframes imageAnimation { 
	0% {
	    -o-animation-timing-function: ease-in;
	}
	8% {
	    -o-transform: scale(1.05);
	    -o-animation-timing-function: ease-out;
	}
	17% {
	    -o-transform: scale(1.1) rotate(3deg);
	}
	25% {
	    -o-transform: scale(1.1) rotate(3deg);
	}
}
@-ms-keyframes imageAnimation { 
	0% {
	    -ms-animation-timing-function: ease-in;
	}
	8% {
	    -ms-transform: scale(1.05);
	    -ms-animation-timing-function: ease-out;
	}
	17% {
	    -ms-transform: scale(1.1) rotate(3deg);
	}
	25% {
	    -ms-transform: scale(1.1) rotate(3deg);
	}
}

@media (max-width: 768px){
 .login form { width:100%; }
	}