/*
 * Datto theme for Stanford WebAuth
 * Dan Fuhry <df@datto.com>
 * February 22, 2016
 */

/*
 * Font list:
 *   Copy:    DIN Regular
 *   Form:    DIN Medium
 *   Buttons: DIN OT Bold Condensed
 */

@import url(fonts.css);

/* Setup - body */
body {
	background-image: url(datto-low-poly-background.png);
	background-size: cover;
	background-attachment: fixed;
	background-position: center top;
}

/* Colors & fonts */
h1, h2, h3, h4, h5, h6 {
	font-family: DINCondBold;
	text-transform: uppercase;
	color: #4E6973;
}

p, ul, a:link, a:visited {
	font-family: DINRegular;
	font-size: 13pt;
	color: #355460;
}
	a:link, a:visited {
		color: #687F88;
	}

	a:hover {
		text-decoration: none;
		color: #1C3E4C;
	}

/* copy */
.signin-copy-initial {
	padding: 10px 0;
}

/* Bootstrap overrides */
div.well {
	border-radius: 0;
	border-width: 0;
	background-color: rgba(255, 255, 255, 0.65);
}

	img.datto-sso-logo-sm {
		display: none;
	}
	
	div.well.login-form {
		position: absolute;
		top: 50%;
		left: 0;
		right: 0;
		margin: auto;
		width: 800px;
		padding: 0.5em 15px;
		transform: translateY(-50%);
	}

div.loginbox form {
	width: 375px;
	padding-right: 10px;
	margin-top: 20px;
	float: left;
}

	div.pwchange div.loginbox form {
		width: 100%;
		float: none;
	}

	div.pwchange div.loginbox .form-group {
		width: 375px;
	}
	
	div.pwchange .form-group.pw-tip {
		float: right;
		padding-left: 20px;
	}
	
	div.pwchange .form-group.pw-tip ul {
		list-style: none;
		padding: 0 0 0 5pt;
	}
	
	div.pwchange .form-group.pw-tip ul li:before {
		float: left;
		margin: -2pt 0 0 -10pt;
		font-size: 1.2em;
		font-weight: bold;
		content: "\203a";
	}

.form-control {
	color: #355460;
	font-family: DINMedium;
	border-width: 0;
	border-radius: 0;
	background: white;
	font-size: 16pt;
	height: 32pt;
}

.form-control:focus {
	box-shadow: none;
}

.btn, a.btn {
	border-width: 0;
	border-radius: 0;
	text-transform: uppercase;
	font-family: DINCondBold;
	font-size: 16pt;
	padding: 4pt 24px;
}

.btn span.glyphicon {
	font-size: 10pt;
	position: relative;
	top: -1pt;
}

.btn-primary {
	background-color: #b0d156;
}
	.btn-primary:hover, .btn-primary:focus {
		background-color: #9fbd4e;
	}

.btn-default {
	background-color: #F5F6F7;
}

.alert {
	border-width: 0;
	border-radius: 0;
	text-transform: uppercase;
	font-family: DINCondBold;
	font-size: 16pt;
}

	.alert a:link, .alert a:visited, .alert a:active {
		font-family: DINCondBold;
		font-size: 16pt;
		color: white;
		text-decoration: underline;
	}

	.alert-danger, .progress-bar-danger {
		background-color: #F3523E;
		color: white;
	}
	
	.alert-caution, .progress-bar-caution {
		background-color: #FF8213;
		color: white;
	}
	
	.alert-warning, .progress-bar-warning {
		background-color: #F6D93C;
		/* FIXME: this looks awkward, but white is hard to read */
		color: #002A3A;
	}
	
	.alert-success {
		background-color: #58C990;
		color: white;
	}
	
	.progress-bar-success {
		background-color: #26BF5C;
		color: white;
	}
	
	.alert.prominently-displayed-error {
		margin-top: 20px;
	}

div.links {
	float: right;
	width: 375px;
	padding-top: 12px;
	border-left: 1px solid #aeb8bc;
	padding-left: 15px;
	min-height: 150px;
}

div.links ul {
	list-style-type: none;
	margin: 0;
	padding: 0;
}

div.links ul li {
	line-height: 240%;
}

.progress {
	margin-top: 10px;
	border-radius: 0;
	background: #F5F6F7;
}

	.progress-bar {
		font-family: DINCondBold;
		text-transform: uppercase;
	}

/* Form elements */
button.login-mfa-push {
	background-size: 48px 48px;
	background-position: center center !important;
	background-repeat: no-repeat;
	line-height: 48px;
	padding: 0 !important;
}

button.login-mfa-push span.name {
	visibility: hidden;
	display: block;
	padding: 5px 20px;
	color: #116A91;
	background-color: rgba(255, 255, 255, 0.6);
}

	button.login-mfa-push:hover span.name {
		visibility: visible;
	}

/* Responsive overrides */
@media (max-width: 849px) {
	img.datto-sso-logo-sm {
		display: inline;
	}
	
	img.datto-sso-logo-lg {
		display: none;
	}
	
	div.well.login-form {
		position: normal;
		width: 100%;
	}
	
	div.loginbox form, div.links {
		width: auto;
		float: none;
	}
	
	div.links {
		border-left-width: 0;
		padding-left: 0;
	}
}
