/* Brand colours per site */
:root {
	--theme_light: #159884;
	--theme_dark: #156C60;
	--theme_text: #FFFFFF;
	--theme_semitransparent: #159884B3;
}

html, body {
	margin: 0px;
	padding: 0px;
	font-family: calibri, arial, verdana, sans-serif;
	font-size: 14px;
	text-align: left;
}
html {
	background-color: #f1f1f1;
	min-height: 100%;
}

a {
	color: #159985;
}

/*Background and main box*/
#ap_background, .ap_background_solid {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	min-height: 740px;
	height: 100%;
	width: 100%;
	object-fit: cover;
	z-index: -1;
}
.ap_background_solid {
	background-color: var(--theme_semitransparent);
}
.ap_bound_box_outer {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
}
.login-messages .ap_messages, .login-messages .ap_errors {
	margin: 10px auto 20px auto!important;
}
#ap_bound_box {
	
	display: flex;
	height: 450px;
	width: 684px;
	border-radius: 10px;
	box-shadow: 0px 0px 10px 0px #101010;
	background-color: var(--theme_light);
	animation: bounce 7s linear infinite alternate;
	margin: 0 auto;
	height: 450px;
	height: 460px;
	width: 684px;
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0px 0px 10px 0px #101010;
	background-color: var(--theme_light);
	z-index: -1;
}
#ap_bound_box a:hover {
	text-decoration: none;
}
/*Title text*/
.ap_login_title {
	width: 50%;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	justify-content: space-evenly;
	padding: 20px;
	color: #ffffff;
	box-sizing: border-box;
	background-color: #135e4f;
	background-color: var(--theme_light);
}

.ap_errors, .ap_messages {
	margin: 50px auto -40px auto!important;
	width: 284px!important;
}
body.apso_admin .ap_errors, body.apso_admin .ap_messages {
	margin: 25px 10px 10px 10px!important;
	width: 484px!important;
}

#ap_bound_box .ap_login_form_container {
	max-width: 50%;
	padding: 20px;
	background-color: #ffffff;
	display: flex;
	flex-direction: column;
	justify-content: center;
}
#ap_bound_box #ap_login_form {
	margin: 0 auto;
	text-align: left;
	box-sizing: border-box;
}
#ap_bound_box .ap_site_name {
	font-size: 38px;
	line-height: 42px;
	font-weight: bold;
}
#ap_bound_box .ap_site_name span {
	display: block;
	margin-top: -20px;
	margin-top: -14px;
	font-size: 72px;
	font-size: 62px;
	line-height: 96px;
	line-height: 88px;
	font-weight: bold;
}
#ap_bound_box .ap_login_powered, #ap_bound_box .ap_login_other_services {
	font-size: 13px;
	font-size: 20px;
	line-height: 20px;
	font-weight: normal;
	color: #DFDFDF;
	color: #DFDFDFCC;
}
#ap_bound_box .ap_login_other_services .ap_login_powered {
	margin-top: 6px;
}
#ap_bound_box .ap_login_other_services {
	font-size: 16px;
	line-height: 16px;
}
#ap_bound_box .ap_login_other_services ul {
	padding: 0;
	margin: 14px auto 0 auto;
	list-style-type: none;
}
#ap_bound_box .ap_login_other_services ul li {
	position: relative;
	padding-left: 15px;
	margin-bottom: 6px;
}
#ap_bound_box .ap_login_other_services ul li:before {
	content: "\2713";
	position: absolute;
	left: 0;
}
#ap_bound_box .ap_login_heading {
	color: #333333;
	font-size: 26px;
	font-weight: bold;
}
#ap_bound_box .ap_login_heading a, #ap_bound_box .ap_login_text a {
	font-size: 14px;
	font-weight: 600;
	text-underline-offset: 2px;
	color: var(--theme_light);
}
#ap_bound_box #ap_login_form input {
	padding: 10px;
	color: #222;
	font-size: 16px;
	border:0px solid #222;
	border-radius: 3px;
	width: 100%!important;
	box-sizing: border-box;
}

#ap_bound_box #ap_login_form .input_holder:after {
	content: "";
	position: relative;
	top: 0;
	display: block;
	width: 100%;
	height: 1px;
	background-color: #000000;
}
#ap_bound_box .ap_login_text {
	margin-top: 10px;
	color: #858585;
}

::-webkit-input-placeholder {
	color: #545454;
	color: #858585;
}
:-moz-placeholder {
	color: #545454;
	text-transform: uppercase;
	font-weight: bold;
}
::-moz-placeholder, :-ms-input-placeholder {
	color: #545454;
	text-transform: uppercase;
	font-weight: bold;
}

#ap_bound_box #ap_login_form .button_input {
	height: 45px;
	width: 302px;
	padding: 5px 6px;
	box-shadow: none;
	border: none;
	border-radius: 4px;
	background-color: #1A73E8;
	color: #F6F6F6;
	font-family: calibri, arial, verdana, sans-serif;
	font-size: 20px;
	font-weight: bold;
	text-align: center;
	cursor: pointer;
	transition: background-color .3s ease-in-out, box-shadow .3s ease-in-out;
}

#ap_bound_box #ap_login_form .button_input:hover {
	background-color: #065ED1;
	box-shadow:0 0 2px 0 #000;
}
#ap_login_form .button_input:focus {
	border-color:#257865;
}
#ap_login_form .button_input:active {
	box-shadow: inset 3px 3px 6px 0px rgba(0,0,0,0.4);
}
#login_footer {
	max-width: 440px;
	width: 302px;
	margin: 6px auto 0 auto;
	font-family: calibri, arial, verdana, sans-serif;
	font-size: 11px;
	line-height: 14px;
	color: #ffffff;
	color: #ffffffcc;
	border-top: 1px solid #ffffffcc;
	padding: 10px 0 0 0;
}
#login_footer > div {
	margin-top: 10px;
}

/* Two Factor Authentication */
#ap_bound_box #ap_login_form div .two_factor_holder {
	height: 50px;
	width: 302px;
	margin: 10px auto;
	box-sizing: border-box;
	position: relative;
}
#ap_bound_box #ap_login_form .two_factor_holder:after {
	content: unset;
}
#ap_bound_box #ap_login_form .two_factor_holder .digits {
	position: absolute;
	top: 0;
	width: 100%;
	height: 100%;
	background-image: url("tfa-digit-box.png");
	background-size: 100% auto;
	background-position: 0px center;
	background-image: url("2fa-42px-squares-sprite.png");
	background-size: auto 99px;
	background-position: 0px -2px;
	background-repeat: repeat-x;
}
#ap_bound_box #ap_login_form #two_factor {
	height: 50px;
	border: none;
	border-radius: 0;
	outline: none;
	padding: 0;
	position: relative;
	background-color: transparent;
	font-family: monospace;
	font-size: 26px;
	font-weight: bold;
	letter-spacing: 36px;
	caret-color: transparent;
	-webkit-appearance: none;
	-moz-appearance: textfield;
	overflow: hidden!important;
	display: block;
	position: absolute;
	left: 0px;
	text-indent: 16px;
	width: 324px!important;
}
#ap_bound_box #ap_login_form #two_factor::selection {
	background-color: transparent;
	-webkit-user-select: none;
	-ms-user-select: none;
	user-select: none;
	user-select: none;
	-moz-user-select: none;
}
#ap_bound_box #ap_login_form #two_factor::-webkit-outer-spin-button, #ap_bound_box #ap_login_form #two_factor::-webkit-inner-spin-button {
	-webkit-appearance: none;
}
#ap_bound_box #ap_login_form .two_factor_holder.tfa_focus .digits {
	background-position: 0px -52px;
	outline: none;
	overflow: hidden !important;
}
#ap_bound_box #ap_login_form #two_factor:-webkit-autofill, #ap_bound_box #ap_login_form #two_factor:-webkit-autofill:hover, #ap_bound_box #ap_login_form #two_factor:-webkit-autofill:focus {
	border: none;
	background-color: transparent;
	color: #000000;
	color: #858585;
	-webkit-text-fill-color: #858585;
	box-shadow: inset 0 0 20px 20px transparent;
	border: none;
	background-image: url("tfa-digit-box-selected.png");
	transition: all 5000s ease-in-out 0s;
}
@keyframes autofillStyle {
	to {
		background: url("tfa-digit-box-selected.png");
	}
}
#ap_bound_box #ap_login_form #two_factor:-webkit-autofill {
	animation: autofillStyle;
}

@media screen and (max-width: 720px) {
	.ap_bound_box_outer {
		margin: 20px auto;
	}
	#ap_bound_box {
		flex-direction: column;
		width: 400px;
		height: auto;
	}
	.login-messages .ap_messages, .login-messages .ap_errors {
		margin: 10px auto 20px auto!important;
	}
	.ap_login_title, #ap_bound_box .ap_login_form_container {
		max-width: none;
		width: 100%;
		padding: 15px;
		box-sizing: border-box;
	}
	#ap_bound_box .ap_site_name {
		font-size: 36px;
		line-height: 38px;
	}
	#ap_bound_box .ap_site_name br {
		display: none;
	}
	#ap_bound_box .ap_site_name span {
		display: inline-block;
		margin-top: -5px;
		font-size: 46px;
		line-height: 48px;
	}
	#ap_bound_box .ap_login_powered {
		font-size: 18px;
	}
	#ap_bound_box .ap_login_other_services {
		font-size: 14px;
		line-height: 16px;
	}
	#ap_bound_box .ap_login_other_services .ap_login_powered {
		margin-top: 0;
	}
	#ap_bound_box .ap_login_other_services ul {
		margin: 6px auto 10px auto;
	}
	#login_footer {
		max-width: none;
		width: 100%;
		padding: 6px 0 0 0;
		margin: 2px auto 0 auto;
	}
	#login_footer > div {
		margin-top: 1px;
	}
	#ap_bound_box .ap_login_heading {
		font-size: 18px;
		margin-bottom: -9px;
	}
	#ap_bound_box #ap_login_form div .input_holder {
		margin-top: -2px;
	}
	#ap_bound_box #ap_login_form div .input_holder.login_username_holder {
		margin-top: 0;
	}
	#ap_bound_box #ap_login_form input {
		padding: 8px 10px;
	}
	#ap_bound_box #ap_login_form .button_input {
		font-size: 18px;
		height: 38px;
		height: 34px;
		padding: 4px 6px 6px 6px;
	}
	#ap_bound_box .ap_login_text, #ap_bound_box .ap_login_text ~ b {
		width: 302px;
		margin: 10px auto 0 auto;
	}
	#ap_bound_box .ap_login_form_container {
		padding-bottom: 20px;
	}
	#ap_bound_box .ap_login_form_container.tfa_container .ap_login_heading {
		margin-bottom: 0;
	}
	#ap_bound_box .ap_login_form_container.tfa_container .ap_login_text {
		margin-bottom: 5px;
	}
	#ap_bound_box #ap_login_form div .two_factor_holder {
		margin: 10px auto;
	}
	
	/* Two Factor Authentication */
	#ap_bound_box #ap_login_form .two_factor_holder .digits {
		background-size: auto 100px;
	}
}
@media screen and (max-width: 420px) {
	.ap_errors, .ap_messages, .ap_infobox {
		box-sizing: border-box;
	}
	.ap_bound_box_outer {
		width: 90%;
		margin: 50px auto;
	}
	#ap_bound_box {
		width: 100%;
	}
	#ap_bound_box #ap_login_form, #ap_bound_box #ap_login_form .button_input, #ap_bound_box .ap_login_text, #ap_bound_box .ap_login_text ~ b {
		width: 100%;
	}
	#ap_bound_box .ap_site_name {
		font-size: 30px;
		font-size: 34px;
		line-height: 36px;
		margin-bottom: 4px;
	}
	#ap_bound_box .ap_site_name span {
		font-size: 46px;
		line-height: 48px;
	}
	#ap_bound_box .ap_login_other_services ul {
		margin: 8px auto 10px auto;
	}
	#ap_bound_box .ap_login_other_services ul li {
		margin-bottom: 8px;
	}
	#ap_bound_box .ap_login_form_container {
		padding-top: 8px;
	}
	#ap_bound_box #ap_login_form div .two_factor_holder {
		margin: 8px auto 10px 0;
	}
	#ap_bound_box #ap_login_form #two_factor {
		width: 318px!important;
	}
	#ap_bound_box .ap_login_form_container.tfa_container #ap_login_form .button_input {
		width: 302px;
	}
}
@media screen and (max-width: 370px) {
	.ap_login_title, #ap_bound_box .ap_login_form_container {
		padding: 10px;
	}
	#ap_bound_box .ap_site_name {
		font-size: 32px;
		line-height: 30px;
	}
	#ap_bound_box .ap_login_powered {
		font-size: 16px;
	}
	#ap_bound_box .ap_login_other_services {
		line-height: 14px;
	}
	#ap_bound_box .ap_login_other_services ul {
		margin: 6px auto 10px auto;
	}
	#ap_bound_box .ap_login_other_services ul li {
		margin-bottom: 6px;
	}
	#ap_bound_box #ap_login_form div .two_factor_holder {
		width: 268px;
		height: 44px;
		margin: 5px auto 8px 0;
	}
	#ap_bound_box #ap_login_form #two_factor {
		width: 310px!important;
		height: 44px;
		letter-spacing: 30px;
		left: -4px;
	}
	#ap_bound_box #ap_login_form .two_factor_holder.tfa_focus .digits {
		background-position: 0px -45px;
	}
	#ap_bound_box #ap_login_form .two_factor_holder .digits {
		background-size: auto 88px;
	}
	#ap_bound_box .ap_login_form_container.tfa_container #ap_login_form .button_input {
		width: 256px;
	}
}