body {
	background-color: white;
	min-height: 100%;
}

body > .box {
	background-color: white;
	border-radius: 4px;
	border: 1px solid #d2d9e1;
	min-height: 200px;
	width: 496px;
	margin: 80px auto;
	margin-top: 140px;
	text-align: center;
}

.box h1 {
	color: #8d9aa3;
	font-weight: 400;
	font-size: 34px;
	line-height: 90px;
}

.box input {
	width: 313px;
	margin: 0px auto;
	border: 2px solid #dfe4e9;
	padding-left: 50px;

	/* For icons inside */
	background-size: 28px;
	background-position: 10px center;
	background-repeat: no-repeat;
}

.box input:focus {
	border-color: #7fa9d9;
}

.box input.email {
	border-radius: 3px 3px 0px 0px;
	background-image: url("../images/icons/mail.svg");
}
.box input.password {
	border-radius: 0px 0px 3px 3px;
	border-top: none;
	background-image: url("../images/icons/key.svg");
	background-size: 22px;
	background-position: 13px center;
}

/* When password is focused */
.box.password-is-focused input.email {
	border-bottom: none;
}
.box.password-is-focused input.password {
	border-top: 2px solid #7fa9d9;
}

.box input[type=submit] {
	border: none;
	margin: 32px auto 0px auto;
	padding: 12px 0px;
	width: 385px;
}


.box a.button.signup {
	line-height: normal;
	display: block;
	color: white;
	text-decoration: none;
	margin: 20px 55px;
	padding: 12px 0px;
	background-color: #4cc54f;
}

.box input[type=submit].signup {
	margin-top: 14px;
	background-color: #4cc54f;
}
.box input[type=submit].signup:hover {
	background-color: #4ac14b;
}
.box input[type=submit].signup:active {
	background-color: #42b744;
}

.box a { /* Forgot password? */
	color: #8d9aa3;
	display: inline-block;
	line-height: 80px;
}
.box a:hover {
	text-decoration: underline;
	cursor: pointer;
}


/* Tablets */

@media all and (max-width: 800px) {
	body > .box {
		background-color: white;
		border-radius: 4px;
		border: 1px solid #d2d9e1;
		min-height: 200px;
		width: 480px;
	}
	.box a.button.signup {
		margin: 20px 47px;
	}
}

/* Phones */
@media all and (max-width: 500px) {
	body > .box {
		position: relative;
		margin-left: 10px;
		margin-right: 10px;
		margin-top: 90px;
		margin-bottom: 30px;
		width: auto;
	}
	.box input,
	.box a {
		position: relative;
		display: block;
		width: 80%;
		left: 0;
		right: 0;
	}
	.box input[type=submit] {
		width: 90%;
		margin: 30px auto 0px auto;
	}
	.box a.button.signup {
		width: 90%;
		margin: 20px auto;
	}
	.box input {
		width: 90%;
		box-sizing: border-box;
		-moz-box-sizing:border-box; /* Firefox */
	}
	.box a.forgot {
		margin: 0px auto;
		line-height: normal;
		padding-bottom: 15px;
	}
}