/*
 * Password Management Servlets (PWM)
 * http://code.google.com/p/pwm/
 *
 * Copyright (c) 2006-2009 Novell, Inc.
 * Copyright (c) 2009-2012 The PWM Project
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 */

html {
    background-size: 100%;
/*    background: white url('tulips-bg.jpg') no-repeat;
*/}

html,body {
    font-family:  Arial, Verdana, sans-serif;
	height: 100%;
}

input, textarea, keygen, select, button {
	font-family:  arial, verdana, sans-serif;
}

body {
    background: white no-repeat fixed;
	min-width: 636px;
}

body#test {
    background-image: none;
    background-color: #8FD8D8;
}

h2 {
	box-sizing: border-box;
	color: #555;
	display: block;
	font-family:  arial, verdana, sans-serif;
	font-size: 2em;
	font-weight: 300;
	line-height: 17px;
}

p {
    color: black;
}

input[type=text], input.inputfield, input.passwordfield {
	border-radius: 0;
	border: 1px solid #d9d9d9;
	display: inline-block;
	margin: 5px auto;
	width: 50%;
	color: black;
	padding: 4px 6px 3px 6px;
	background-color: white;
	font: normal 13px/8px  arial, verdana, sans-serif;
	min-height: 15px;
}

input[type=text]:focus, input.inputfield:focus, input.passwordfield:focus {
	outline: none;
	border-color: #3892D3;
}

.icon-showhidepassword {
	margin-left: 4px;
}

#wrapper {
	min-height: 100% !important;
	position: relative;
}

#header-warning {
    background-color: white;
    color: #0a0a0a;
    text-align: center;
    padding-top: 4px;
    padding-bottom: 4px;
    text-decoration: none;
}

#header-title {
    color: black;

}

#header {
    width: 100%;
    height: auto;
    margin: 20px 0 0 0;
    background-image: none;
    /*background-color: rgb(245, 245, 245);*/
    color: black;
	
	line-height: 17px;
	/*border-color: #125eaa;
	border-bottom-width: 2px;
	border-bottom-style: solid;*/
}

#header-company-logo {
    z-index: 1;
	background-image: url(/pwm/public/resources/logos.jpg);
	background-repeat: no-repeat;
	background-position: 0 0;
	/* Downsize for Retina */
	/*background-size: 184px 100px;*/
	width: 600px;
	height: 150px;
	margin: 0px auto 0 auto;
}

#header-center {
	width: 100%;
	padding: 0px;
	margin: 0px auto;
	text-align: center;
	clear: both;
}

#header-center-left {
	margin: 47px auto 0 auto;
	color: #125eaa;
	padding: 20px;
	width: auto;
	max-width: none;
	float: none;
	display: block;
}

#header-page {
	font-family: 'Trebuchet MS',sans-serif;
	font-size: 18pt;
	color; black;
	padding: 0px;
	width: auto;
}

#header-title {
	display: none;
}

#sidebar {
	float: left;
	width: 200px;
	background-color: #f5f5f5;
	border-right: solid 5px #add2ed;
	position: absolute;
	top: 106px;
	bottom: 0;
	left: 0;
}

#sidebar a.box-item {
	display: block;
	text-decoration: none;
	color: #fff;
	background-color: #4b9cd7;
	line-height: 18px;
	margin: 0px 0px 1px 0px;
	text-align: center;
	width: 176px;
	
	font-size: 13px;
	font-weight: bold;
	
	padding: 7px 12px 6px 12px;
	-moz-border-radius-topleft: 3px;
	-webkit-border-top-left-radius: 3px;
	border-top-left-radius: 3px;
	-moz-border-radius-topright: 0;
	-webkit-border-top-right-radius: 0;
	border-top-right-radius: 0;
	-moz-border-radius-bottomright: 0;
	-webkit-border-bottom-right-radius: 0;
	border-bottom-right-radius: 0;
	-moz-border-radius-bottomleft: 3px;
	-webkit-border-bottom-left-radius: 3px;
	border-bottom-left-radius: 3px;
	border-width: 1px 1px 1px 1px;
	border-style: solid;
	border-color: #4b9cd7;
	border-right: none;
	border-top: none;
	border-left: none;
}

#sidebar a.box-item > span {
	display: table;
	width: 100%;
	height: 100%;
}

#sidebar a.box-item > span > span {
	height: 17px;
	text-align: center;
	vertical-align: middle;
    display: table-cell;
    white-space: nowrap;
    line-height: 17px;
}

#sidebar a.box-item.selected, #sidebar a.box-item.selected:hover {
	border-color: #add2ed;
	background-color: #add2ed;
	color: #157fcc;
}

#sidebar a.box-item:hover {
	border-color: #5fa7db;
	background-color: #5fa7db;
}

#centerbody_title {
	padding: 15px 15px 15px 15px;
	margin: 0 auto;
	text-align: center;
}

#centerbody {
	color: black;
	padding: 30px;
	border: 0;
	clear: right;
	margin: 0px auto;
	height: 100%;
	/*width: auto;*/
	max-width: 600px;
	width: auto;
	/* Rounded corners */
	/*width: 400px;
	height: 300px;*/
	-webkit-border-radius: 4px;
	-moz-border-radius: 4px;
	border-radius: 4px;
	border: 0px solid #DADFE3;
	
	text-align: center;
	
	background-color: #E6E9ED;
	-webkit-box-shadow: #B3B3B3 0px 2px 2px;
	-moz-box-shadow: #B3B3B3 0px 2px 2px;
	box-shadow: #B3B3B3 0px 2px 2px;
}

#centerbody > p:right {
	margin-top: 0;
}

#centerbody.tall {
	top: 220px !important;
}

.grid.tall {
	top: 65px !important;
}

form {
	text-align: center;
	display: block;
	margin-top: 8px;
}

form input.inputfield, form input.passwordfield {
	height: 2.3em;
	line-height: 1.5em;
	margin-bottom: 10px;
	margin-left: auto;
	margin-right: auto;
}

#login .inputfield,
#configLogin .inputfield {
	margin: 5px auto;
	padding: 4px 6px 3px 6px;
	margin-right: auto;
	width: 52%;
	height: 2.3em;
}

.button-nav form {
	display: inline-block;
}

form .buttonbar {
	text-align: center;
	margin-top: 0.6em !important;
}

form td {
	vertical-align: middle; 
}

.icon-showhidepassword {
	display: none;
}

.formFieldWrapper {
	padding: 0;
}

button .fa {
	display: none;
}

.buttonbar {
	width: 314px;
	margin: 0 auto !important;
	padding: 0;
}

.buttonbar button {
	width: 38%;
	float: left;
	margin: 0 0 0 2%;
}

/*.buttonbar button:nth-of-type(1) {
	width: 45%;
	margin: 2%;
}*/

.buttonbar.singlebutton .btn {
	width: 100%;
}

.buttonbar.singlebutton #button-cancel, .buttonbar.singlebutton #button-cancelButton {
	display: none;
}

.btn-icon {
	display: none;
}

#login ~ table {
	width: 600px;
}

.forgotPasswordBox {
	width: 314px;
	margin: 10px auto;
	text-align: right;
}

.forgotPasswordBox a {
	display: inline;
	padding: 0;
	margin: 0;
}

form:after {
	content:'';
	height: 0;
	clear: both;
	display: block;
}

#changePasswordForm td:nth-child(2), #changePasswordForm td:nth-child(3) {
	display: none;
}


#changePasswordForm .passwordfield {
	display: block;
}

.checkboxWrapper {
	display: block;
}



/* Recaptcha styling */
form#verifyCaptcha {
	margin-top: 0px;
}

#recaptcha-container {
	margin-bottom: 12px;
	display: inline-block;
}




.push {
	clear: both;
}
#footer {
    background-color: transparent;
    color: white;
	clear: both;
}

a {
    color: #125EAA;
    text-decoration: underline;
    font-weight: bold
}

a.menubutton {
	color: #125EAA;
	display: inline;
	padding: 0px;
	margin: 0px;
}

a:hover {
	text-decoration: none;
}

#token {
	margin: 10px auto 30px auto;
}
#message_wrapper {
	margin-bottom: 20px;
	width: 314px;
	margin-left: auto;
	margin-right: auto;
}

#message_wrapper span {
	width: auto;
}

#message {
	margin-left: auto;
	margin-right: auto;
	display: block;
}

.message {
    background-color: inherit;
}

.message-info {
    background-color: #ADD2ED;
}

.message-error {
    background-color: #FF951E;
}

.message-success {
    background-color: #79DF41;
}

table {
    border-collapse: collapse;
    border: 2px solid #157FCC;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

table td {
    border: 2px solid #157FCC;
    padding-left: 5px;
	text-align: left;
}

table td.title {
    text-align: center;
    font-weight: bold;
    font-size: 150%;
    padding-right: 10px;
    background-color: white;
}

table td.key {
    text-align: left;
    font-weight: bold;
    padding-right: 10px;
    width: 200px;
}

.buttonbar {
	text-align: left;
	margin-top: 8px;
}

.btn {
    /*border-radius: 3px;
    background-color: #3c2c2c;
    border: 2px solid #ffcccc;*/
	padding: 8px 12px;
	margin-left: 0px;
	
	-webkit-transition: background 0.15s;
	
	/* color */
	background-color: #005DAB;
	
	/* .x-btn */
	display: inline-block;
	outline: 0;
	cursor: pointer;
	white-space: nowrap;
	text-decoration: none;
	vertical-align: top;
	overflow: hidden;
	
	/* .x-btn-default-small */
	-webkit-border-radius: 3px;
	-moz-border-radius: 3px;
	-ms-border-radius: 3px;
	-o-border-radius: 3px;
	border-radius: 3px;
	/*padding: 3px 3px 3px 3px;*/
	border-width: 1px;
	border-style: solid;
	background-image: none;
	/*background-color: #3892d3;
	background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, #4b9cd7), color-stop(50%, #3892d3), color-stop(51%, #358ac8), color-stop(100%, #3892d3));
	background-image: -webkit-linear-gradient(top, #4b9cd7, #3892d3 50%, #358ac8 51%, #3892d3);
	background-image: -moz-linear-gradient(top, #4b9cd7, #3892d3 50%, #358ac8 51%, #3892d3);
	background-image: -o-linear-gradient(top, #4b9cd7, #3892d3 50%, #358ac8 51%, #3892d3);
	background-image: -ms-linear-gradient(top, #4b9cd7, #3892d3 50%, #358ac8 51%, #3892d3);
	background-image: linear-gradient(top, #4b9cd7, #3892d3 50%, #358ac8 51%, #3892d3);
	*/
	/* .x-btn-default-small */
	border-color: #126daf;
	
	/* inline */
	/*max-height: 50px;
    max-width: 150px;
    min-height: 50px;
    min-width: 150px;
    margin: 0px;
    width: 150px;
    height: 50px;
    right: auto;
    left: 740px;
    top: 20px;*/
}
.btn:hover {
	border-color: #1064a1;
	background-image: none;
	background-color: #3386c2;
	/*
	background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, #4792c8), color-stop(50%, #3386c2), color-stop(51%, #307fb8), color-stop(100%, #3386c2));
	background-image: -webkit-linear-gradient(top, #4792c8, #3386c2 50%, #307fb8 51%, #3386c2);
	background-image: -moz-linear-gradient(top, #4792c8, #3386c2 50%, #307fb8 51%, #3386c2);
	background-image: -o-linear-gradient(top, #4792c8, #3386c2 50%, #307fb8 51%, #3386c2);
	background-image: -ms-linear-gradient(top, #4792c8, #3386c2 50%, #307fb8 51%, #3386c2);
	background-image: linear-gradient(top, #4792c8, #3386c2 50%, #307fb8 51%, #3386c2);
	*/
}
.btn:focus {
	-webkit-box-shadow: #d6e6f2 0 1px 0px 0 inset, #d6e6f2 0 -1px 0px 0 inset, #d6e6f2 -1px 0 0px 0 inset, #d6e6f2 1px 0 0px 0 inset;
	-moz-box-shadow: #d6e6f2 0 1px 0px 0 inset, #d6e6f2 0 -1px 0px 0 inset, #d6e6f2 -1px 0 0px 0 inset, #d6e6f2 1px 0 0px 0 inset;
	box-shadow: #d6e6f2 0 1px 0px 0 inset, #d6e6f2 0 -1px 0px 0 inset, #d6e6f2 -1px 0 0px 0 inset, #d6e6f2 1px 0 0px 0 inset;
}
.btn:active {
	border-color: #0d5183;
	background-image: none;
	background-color: #2a6d9e;
	/*
	background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, #2a6d9e), color-stop(50%, #276796), color-stop(51%, #2a6d9e), color-stop(100%, #3f7ba7));
	background-image: -webkit-linear-gradient(top, #2a6d9e, #276796 50%, #2a6d9e 51%, #3f7ba7);
	background-image: -moz-linear-gradient(top, #2a6d9e, #276796 50%, #2a6d9e 51%, #3f7ba7);
	background-image: -o-linear-gradient(top, #2a6d9e, #276796 50%, #2a6d9e 51%, #3f7ba7);
	background-image: -ms-linear-gradient(top, #2a6d9e, #276796 50%, #2a6d9e 51%, #3f7ba7);
	background-image: linear-gradient(top, #2a6d9e, #276796 50%, #2a6d9e 51%, #3f7ba7);
	*/
}
.btn:disabled {
	background: #4B9CD7;
	color: rgba(255,255,255,0.3);
	cursor: default;
}
.btn:disabled * {
	cursor: default;
}

.menubutton_key {
	text-align:right;
	width:54%;
	margin: 10px auto;
	display: block;
	padding: 0px;
}

.menubutton-description {
	display: none;
}

.menubutton {
	padding-left: 0px;
	margin-left: 0px;
}

/* begin dialog section */
dialog { border-color: #157FCC; border-radius: 4px; border-width: 5px; }
dialog .titleBar { background-color: #157FCC; color: #fff; }
dialog .body { padding: 5px; }
/*
.dialogBody { width: 500px; max-width: 500px; }
.dialogBody.narrow { width: 350px; max-width: 350px; }
.dialogBody.wide { width: 95%; max-width: 100%; min-width: 800px; }
.WaitDialogBlank { height: 46px; width: 46px; margin-left: auto; margin-right: auto; background-image: url('wait.gif');}
#dialogPopup_underlay { background-color: #222222; }
#idleDialog_underlay { background-color: #111111; }
dialog::backdrop { background: rgba(0,0,0,0.6); }
dialog { border: 2px solid #DDDDDD; border-radius: 3px; padding:0; max-width: 100%;}
dialog .titleBar { text-align: center; font-weight: bold; padding-top: 3px; padding-bottom: 3px; background-color: #eaeaea; margin-bottom: 5px; }
dialog .body { padding:5px; max-height: 98vh; overflow-x: auto; }
dialog .closeIcon { float: right; cursor: pointer; margin-right: 3px; }
*/
/* end dialog section */

#login .buttonbar #submitBtn {
	width:60%;
	padding: 8px 12px;
}


/* Small devices (768px and smaller) */
@media (max-width: 768px) {
	
	html, body {
		width: 100%;
		min-width: 0;
	}
	
	#wrapper {
		margin: 0;
	}
	
	#header {
		height: auto;
	}
		
		#header-company-logo {
			position: static;
			margin: auto;
			width: 96%;
			height: 0;
			padding-top: 25%;
			max-width: 600px;
			/* Downsize for Retina */
			background-size: contain;
		}
		
		#header-center {
			width: auto;
			padding: 0px;
			margin: auto;
			text-align: center;
			position: static;
		}
		
		#header-center-left {
			margin: 0;
			padding: 10px 20px;
			width: auto;
			max-width: none;
			float: none;
		}
		
		#header-center-right {
			position: absolute;
			top: 0;
			right: 0;
		}
		
		#header-page {
			line-height: 1em;
			padding: 0px;
		}
		#header-page, #header-title {
			color: inherit;
		}
	
	#sidebar {
		float: left;
		width: 100%;
		border-right: none;
		
		position: static;
		text-align: center;
		margin-top: 0px;
		
		border-bottom: solid 5px #add2ed;
		padding-top: 4px;
		padding-bottom: 4px;
	}
		#sidebar a.box-item {
			width: 98%;
			padding: 0;
			margin: 0 auto 1px auto;
			
			-moz-border-radius-topright: 3px;
			-webkit-border-top-right-radius: 3px;
			border-top-right-radius: 3px;
			
			-moz-border-radius-bottomright: 3px;
			-webkit-border-bottom-right-radius: 3px;
			border-bottom-right-radius: 3px;
			
			/*display: block;
			text-decoration: none;
			color: #fff;
			background-color: #4b9cd7;
			line-height: 18px;
			margin: 0px 0px 1px 0px;
			text-align: center;
			width: 176px;
			
			font-size: 13px;
			font-weight: bold;
			
			padding: 7px 12px 6px 12px;
			-moz-border-radius-topright: 3px;
			-webkit-border-top-right-radius: 3px;
			border-top-right-radius: 3px;
			
			-moz-border-radius-bottomright: 3px;
			-webkit-border-bottom-right-radius: 3px;
			border-bottom-right-radius: 3px;
			border-width: 1px 1px 1px 1px;
			border-style: solid;
			border-color: #4b9cd7;
			border-top: none;
			border-left: none;*/
		}
		
		#sidebar a.box-item > span {
			padding: 7px 12px 6px 12px;
			margin: auto;
			width: auto;
			/*display: table;
			width: 100%;
			height: 100%;*/
		}
		
		#sidebar a.box-item > span > span {
			/*height: 17px;
			text-align: center;
			vertical-align: middle;
			display: table-cell;
			white-space: nowrap;
			line-height: 17px;*/
		}
		
		#sidebar a.box-item.selected, #sidebar a.box-item.selected:hover {
			/*border-color: #add2ed;
			background-color: #add2ed;
			color: #157fcc;*/
		}
		
		#sidebar a.box-item:hover {
			/*border-color: #5fa7db;
			background-color: #5fa7db;*/
		}
	
	#centerbody_title {
		/*padding: 10px 3% 0px 3%;*/
		padding: 10px 2% 10px 2%;
		width: 96%;
		margin: 0 auto 0 auto;
		text-align: center;
	}
		#centerbody_title h2 {
			font-size: 1.8em;
		}
	
	#centerbody {
		color: black;
		padding: 20px 3% 20px 3%;
		border: 0;
		margin: 0px auto;
		/*width: auto;*/
		max-width: none;
		width: 90%;
	}
	
	form {
		text-align: center;
		display: block;
		margin-top: 8px;
	}
	
	form input.inputfield, form input.passwordfield {
			width: 80%;
	}
	
	form .buttonbar {
		text-align: center;
		width: calc(80% + 14px);
	}
	
	.forgotPasswordBox {
		width: calc(80% + 14px);
	}
	
	form td {
		vertical-align: middle; 
	}
	
	form div, #strengthLabel {
		padding-top: 0px !important;
	}
	
	.icon-showhidepassword {
		display: none;	
	}
	
	#message_wrapper {
	margin-bottom: 20px;
	width: calc(80% + 14px);
	margin-left: auto;
	margin-right: auto;
}

	#message_wrapper span {
		width: auto;
	}
	
	#message {
		margin-left: auto;
		margin-right: auto;
		display: block;
	}
	
	
	
}