/*** Adapted from screen.css, BlueTrip CSS Framework: http://bluetrip.org ***/

/*** MEYER RESET v1.0 ***/
html,body,div,span,h2,p,a,img,ul,li,form,label{margin:0;padding:0;border:0;outline:0;font-size:100%;vertical-align:baseline;background:transparent}body{line-height:1}

/*** BASIC TYPOGRAPHY ***/
html { font-size: 62.5%; font-family: "Liberation Sans", Helvetica, Arial, sans-serif; }
h2 { font-weight: bold; }

/*** FORMS ***/
label { font-weight: bold; }
input[type='text'], input[type='password'] { border: 1px solid #ccc; background: #fff; }
input { cursor: pointer; }
input[type='text'],input[type='password'] { cursor: text; }

/*** BASE SIZES ***/
/*.container { font-size: 1.2em; line-height: 1.6em; }*/
h2 { font-size: 1.3em; }

/*** LISTS ***/
ul { margin-left: 0em; list-style-type: none; }
ul li { margin-left: 0em; }

/*** MARGINS & PADDINGS ***/
/*** NOTE: Calulate header margins: TOP: 1.6em/size, BOTTOM: 1.6em/size/2 ***/
h2 { margin: 1.23em 0 .615em; }
input { padding: .3em .4em .15em .4em; }

/*** COLORS ***/
a { color:#2867B4;}
a:link { text-decoration: none; color: #2867B4; }
a:visited { text-decoration: none; color: #621EA1; }
a:hover { text-decoration: underline; color: #465479; }
a:active, a:focus { text-decoration: underline; color: #465479; }
h2 { color: #56738E; }

body {
  min-width: 450px;
  min-height: 400px;
  background: #B8CEE8;
}

html.success {	
	font-size: 100%;
}

.success body {
	background: url("/public/bkgd.jpg") no-repeat scroll center top transparent;
}

.success #main {
	background: #FFF;
	border: 9px solid #2867B4;
	border-radius: 0 0 20px 20px;
	width: 960px;
	margin: 0 auto;
}

/*** Skip link section ***/
#skip-links a,#skip-links a:link,#skip-links a:visited,#skip-links a:hover { 
	height:1px;
	left:0;
	overflow:hidden;
	position:absolute;
	top:-500px;
	width:1px;
}

#skip-links a:active,#skip-links a:focus {
	position:static;
	height:auto;
	width:auto;
}

/*** Header for success page ***/
#header {
	background: #fffffe; /* Old browsers */
	background: -moz-linear-gradient(left, #fffffe 0%, #f6f1d8 100%); /* FF 3.6+ */
	background: -ms-linear-gradient(left, #fffffe 0%,#f6f1d8 100%); /* IE10+ */
  	background: -webkit-gradient(linear, left top, right top, color-stop(0%,#fffffe), color-stop(100%,#f6f1d8));	/* Chrome 2+,Safari4+ */
	background: -webkit-linear-gradient(left, #fffffe 0%,#f6f1d8 100%);	/* Chrome10+,Safari5.1+ */
  	background: -o-linear-gradient(left, #fffffe 0%,#f6f1d8 100%);	/* Opera 11.10+ */
  	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#fffffe', endColorstr='#f6f1d8',GradientType=1 );	/* IE6 - 7 */
  	-ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr='#fffffe', endColorstr='#f6f1d8', GradientType=1)"; 	/* IE8 */  
  	background: linear-gradient(left, #fffffe 0%,#f6f1d8 100%); 	/* W3C */
  	height: 105px;
  	border-bottom: 5px solid #2867B4;
}

#ucsb-logo-wrapper {
	margin: 0 auto;
	width: 960px;
	overflow: hidden;
}

a#ucsb-logo {
	background: url("/public/ucsb_logo.png") no-repeat scroll left top transparent;
	display: block;
	width: 299px;
	height: 57px;
	margin-top: 20px;
	margin-left: 15px;
}


.login {
  width: 450px;
  height: 400px;
  background: url("/public/login_box.png") no-repeat;
  padding: 8px;
  position: absolute;
  top: 30%;
  left: 50%;
  margin: -125px 0 0 -225px;
  z-index: 50;
}

.login .title {
	font-size: 1.9em;
	color: #374A5B;
	font-weight: bold;
	margin: 0 15px 30px 0;
	display: inline-block;
}

.login .title p {
	margin-top: 18px;
}

.login a#ucsb-logo {
	background: url("/public/logo.png") no-repeat;
	height: 32px;
	width: 152px;
	margin-left: 100px;
	float: right;
	margin-top: -25px;
}

a#ucsb-logo span {
	left: -9999px;
	position: absolute;
}

form {
	margin-top: 7px;
	margin-left: 15px;
	padding-left: 10px;
	padding-right: 10px;
	width: 400px;
	height: 350px;
} 

form label {
  display: block;
  font-size: 16px;
  font-weight: bold;
  margin: 6px 0 4px;
  color: #374A5B;
}

form input[type="text"], form input[type="password"] {
  height: 30px;
  width: 275px;
  padding: 0 10px;
  font-size: 1.75em;
  margin-top: 3px;
  margin-bottom: 18px;
}

form input[type="password"] {
  margin-bottom: 15px;
}

form input[type="password"].error {
	border: 1px solid #DD4B39;
}

form a {
  color: #212063;
}

form a:hover {
  color: #BA3B0D;
}

form a.forgot {
  font-size: 1.35em;
}

form p.instructions {
	font-size: 1.25em;
	line-height: 1.5;
	color: #312D2E;
	padding-top: 16px;
	padding-right: 15px;
}

form p.error {
	font-size: 1.3em;
	color: #DD4B39;
    display: inline;
	margin-left: -20px;
}

/* Help link popover created by tipsy.js */
#help-links p { 
	font-size: 1.35em; 
	line-height: 2; 
	text-align: left; 
	padding-left: 0.85em; 
	padding-right: 0.85em; 
}

#help-links p a {
	color: #312D2E;
}

#help-links p a:hover, #help-links p a:focus {
	color: #465479;
}

p#close { padding-bottom: 0.5em; }
#help-links p.last { padding-bottom: 0.85em; }

p#close { text-align: right; }

p#close a { color: #BA3B0D; }

.tipsy-inner { max-width: 35em; }

/**************************************/
/*             BUTTON                */
/**************************************/
button.button {
  background-image: none;
  background-image: -webkit-gradient(linear, left top, left bottom, from(#f8f8f8), to(#d9dad9));
  background: -moz-linear-gradient(top, #f8f8f8, #d9dad9);
  background-color: #e9e9e9;
  display: block;
  border: 1px solid #bfbfbf;
  border-radius: 5px;
  -moz-border-radius: 5px;
  color: #656565;
  text-decoration: none;
  font-family: "Liberation Sans", Helvetica, Arial, sans-serif;
  font-size: 1.2em;
  font-weight: bold;
  height: 26px;
  line-height: 26px;
  font-weight: bold;
  font-size: 14px;
  margin-right: 35px;
  margin-top: 20px;
  text-decoration: none;
  cursor: pointer;
  min-width: 58px;
}

button.button span {
  border-radius: 5px;
  -moz-border-radius: 5px;
  padding: 0 8px;
  display: block;
  height: 24px;
  line-height: 24px;
  border: 1px solid #fafafa;
  border-color: #ffffff #fafafa #F1F0F0;
  text-shadow: 1px 1px 0 #fff;
  white-space: nowrap;
}

button.button:hover, button.button:focus {
  background-image: none;
  background-image: -webkit-gradient(linear, left top, left bottom, from(#efeeee), to(#c5c5c5));
  background: -moz-linear-gradient(top, #efeeee, #c5c5c5);
  background-color: #dadada;
  border: 1px solid #bfbfbf;
  text-decoration: none;
}

button.button:hover span, button.button:focus span {
  border: 1px solid #efefef;
  border-color: #f8f8f8 #efefef #dbdbdb;
  text-shadow: 1px 1px 0 #fff;
}

button.button:active {
  background-image: none;
  background-image: -webkit-gradient(linear, left top, left bottom, from(#e0dfdf), to(#dfdfdf));
  background: -moz-linear-gradient(top, #e0dfdf, #dfdfdf);
  background-color: #e0dfdf;
}


button {
  background: none;
  border: none;
  margin: 0;
  padding: 0;
  width: auto;
  overflow: visible;
}

button::-moz-focus-inner {
  border: 0;
  padding: 0;
}

button.button {
  display: inline;
  height: 28px;
  line-height: 27px;
}

/*** Contact email Link ***/
.contact {
  text-align: center;
  margin-top: 40px;
}

.contact p {
  font-size: 1.25em;
  line-height: 1.5;
}

.contact a {
  color: #002240;
}

/*** Success Page ***/
#content {
	padding: 10px 30px;
}

.success h1 {
	color: #4B826C;
	margin-bottom: 25px;
	font-size: 1.5em;
	float: left;
}

#logout {
	background: url("/public/login_logout_btns.png") no-repeat scroll -71px top transparent;
    float: right;
    height: 37px;
    width: 65px;
    margin-top: 10px;
}

#logout span {
	left: -9999px;
	position: absolute;
	text-decoration: none;
	z-index: 50;
}

#logout:hover, #logout:focus {
	background-position: -71px -37px;
}

#logout.login-link {
	background-position: 0px 0px;
}

#logout.login-link:hover, #logout.login-link:focus {
	background-position: -0px -37px;
}


.success p.instructions {
	line-height: 1.5;
	clear: both;
}

.success ul {
	line-height: 1.8;
	margin-left: 1.5em;
	margin-bottom: 25px;
}

.success h2 {
	font-size: 1.1em;
}

.success h2, .success h3 {
	color: #312D2E;
	margin-bottom: 10px;
}

#resources {
	background-color: #FFFFFF;
	border: 1px solid #C1D1E4;
    box-shadow: 0 3px 5px #03428F; 
    padding: 15px;
    margin: 30px 0 40px;
}

#resources h2 {
	margin-top: 5px;
	margin-bottom: 16px;
}

#resources ul {
	margin-left: 0.6em;
	margin-bottom: 0px;
}

#resources li.section {
	margin-top: 18px;
}

.success h3 {
	font-size: 1em;
}

.success h4 {
	font-size: 0.85em;
	margin-bottom: 8px;
}

#bookmarklet {
	margin-bottom: 35px;
}

#bookmarklet p {
	margin-left: 1.5em;
}

#bookmarklet p {
	line-height: 1.35;
	padding-bottom: 8px;
}

.success .contact {
	margin: 0 0 15px;
	clear: both;
}

.success .contact p {
	font-size: 0.85em;
}

/** Simple Mobile layout **/
@media screen and (max-width: 480px) {
	body {
		min-width: inherit;
		min-height: inherit;
	}
	
	/* login form */
	.login {
		left: auto;
		margin: -125px 0 0;
		width: 100%;
	}
	
	form a.forgot {
		font-size: 100%;
	}
	
	
	form p.instructions {
		font-size: 85%;
	}
	
	/* Sucess page */
	.success body {
		background: none;
		min-width: inherit;
		min-height: inherit;
		font-size: 100%;
	}
	
	.success #main {
		border: none;
		border-radius: 0;
		width: 100%;
	}
	
	#header {
		border-bottom-width: 2px;
		height: auto;
		padding-bottom: 3%;
	}
	
	#ucsb-logo-wrapper {
		width: 100%;
	}
	
	a#ucsb-logo {
		background: url("/public/logo.png") no-repeat scroll left top transparent;
		width: 100%;
		margin-left: 3%;
		margin-top: 3%;
		height: 29px;
	}
	
	#content {
		padding: 4%;
	}
	
	/* Logout page */
	.success h1 {
		line-height: 1.25;
	}
	
	#logout.login-link {
		float: left;
		margin-top: 0;
		margin-bottom: 5px;
	}
	
}
