@import url(https://fonts.googleapis.com/css?family=Roboto);

button::-moz-focus-inner {
  border: 0;
}

::-moz-selection {
	background-color: #000080;
	color: white;
}

::selection {
	background-color: #000080;
	color: white;
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html {
	height: 100%;
}

body {
	background: url(/img/background.jpg) no-repeat center center fixed;
	background-size: cover;
	font-family: 'Roboto';
	font-size: 14px;
	text-rendering: optimizeLegibility;
}

/* Selection */
img, #error {
	user-select: none;
	-moz-user-select: none;
}

/* Formular */
form {
	margin: 100px auto auto;
	padding: 20px;
	background-color: rgba(255, 255, 255, 0.85);
	width: 300px;
	text-align: center;
}

form img {
	margin-bottom: 20px;
}

form input[type="text"], form input[type="password"] {
	border: 1px solid #dddddd;
	padding: 8px 8px 8px 30px;
	width: 100%;
	font-size: 14px;
	color: gray;
	transition: all .3s ease-in-out;
}

form input[type="text"] {
	background: white url(/img/login-user.png) no-repeat scroll 5px center;
	background-size: 20px 20px;
}

form input[type="password"] {
	margin-top: 10px;
	background: white url(/img/login-key.png) no-repeat scroll 5px center;
	background-size: 20px 20px;
}

form input[type="text"]:focus, form input[type="password"]:focus {
	border-color: silver;
}

/* Submit button */
form button {
	margin-top: 15px;
	font-size: 17px;
	padding: 8px 14px;
	background: linear-gradient(to bottom, rgba(255, 255, 255, 1) 0%, rgba(246,246,246,1) 47%, rgba(237, 237, 237, 1) 100%);
	border: 1px solid silver;
	color: grey;
	transition: all 0.3s ease-in-out;
	cursor: pointer;
	width: 100%;
	transition: all ease-in-out .25s;
	outline: 0;
}

form button span {
	cursor: pointer;
	display: inline-block;
	position: relative;
	transition: 0.5s;
}

form button span:after {
	content: '\00bb';
	position: absolute;
	opacity: 0;
	top: 0;
	right: -20px;
	transition: 0.5s;
}

form button:hover span {
	padding-right: 25px;
}

form button:hover span:after {
	opacity: 1;
	right: 0;
}

.transform {
	animation-name: rotate;
	animation-duration: 1.5s; 
	animation-iteration-count: infinite;
	animation-timing-function: linear;
}

@keyframes rotate {
    from { transform: rotateY(0deg); }
    to   { transform: rotateY(360deg); }
}

form button:disabled {
	opacity: 0.6;
	cursor: wait;
}

/* Fehlermeldung */
#error {
	margin: 20px auto auto;
	display: none;
}

#error-content {
	margin: auto;
	padding: 8px;
	width: 300px;
	background-color: rgba(0, 0, 0, 0.75);
	color: white;
	font-size: 13px;
	vertical-align: middle;
}

#error-close {
	float: right;
	cursor: pointer;
}

#error-bar {
	background-color: orange;
	height: 3px;
	width: 300px;
	margin: auto;
}