@import "../../../variables.less";
@import "../../../mixins.less";
@import "forgot-password.less";
//========================================
body {
	background-color: #476a9c;
	font-family: @baseFontFamily;
	font-size: @baseFontSize;
	color: @textColor;
}
.loginBGLight {
	background: @baseBackground;
	border-radius: 80px 80px 80px 80px;
	box-shadow: 0 0 250px @baseBackground;
	left: 50%;
	margin: -100px;
	position: fixed;
	top: 50%;
	width: 200px;
	height: 200px;
}
.uiLogin {
	color: @textColor;
	display: block;
	left: 50%;
	.translate(-50%, -50%);
	position: absolute;
	top: 50%;
	width: 420px;
	.loginContainer {
		border-radius: 8px;
		padding: 0 50px 15px;
		background-color: @baseBackground;
	}
	.loginHeader {
		display: none;
	}
	.introBox:after {
		border-bottom: 8px solid #2a323e;
		border-right: 7px solid transparent;
		right: -8px;
	}
	.introBox:before {
		border-bottom: 8px solid #2a323e;
		border-left: 7px solid transparent;
		left: -8px;
	}
	.loginContent {
		padding: 45px 0;
		.iconUser {
			background: #fff url("@{images-path}/username.png") no-repeat left -3px;
		}
		.iconPswrd {
			background: #fff url("@{images-path}/password.png") no-repeat left -3px;
		}
		input:-webkit-autofill:focus {
			box-shadow: inset 0 0 0px 9999px white !important;
			transition: all 5000s ease-in-out 0s;
		}
		.userCredentials {
			position: relative;
			margin-top: 12px;
			& + .userCredentials {
				margin-top: 0;
			}
			.iconUser, .iconPswrd {
				border-right: solid 1px @baseGreyColor;
				border-radius: 5px 0 0 5px;
				position: absolute;
				width: 40px;
				left: 2px;
				top: 2px;
				bottom: 16px;
			}
		}
		input {
			width: 260px;
			height: 36px;
			border: solid 2px @baseGreyColor;
			background: @inputBackground;
			margin: 0 0 14px;
			color: @inputColor;
			.box-shadow(1px 2px 1px rgba(0, 0, 0, 0.075) inset);
			.border-radius(7px);
			padding-left: 50px;
			font-size: 18px;
			outline: none;
			box-shadow: none;
		}
		input:not(*:root) {
			height: 33px;
			box-shadow: none;
			border: solid 2px @baseGreyColor;
			border-radius: 7px;
			font-family: @sansFontFamily;
			font-size: 15px;
		}
		input::-webkit-input-placeholder {
			color: @placeholderText;
		}
		input:-moz-placeholder {
			color: @placeholderText;
		}
		input::-moz-placeholder {
			color: @placeholderText;
		}
		input:-ms-input-placeholder {
			color: @placeholderText;
			opacity: 0.5;
		}
		input:focus {
			color: @inputFocusColor;
			border-color: @inputFocusBorder;
			.box-shadow(0px 0px 5px rgba(19, 75, 159, 0.45));
		}
		input[name="username"]:focus {
			background-position: 0 -45px;
		}
		input[name="password"]:focus {
			background-position: 0 -44px;
		}
		.loginButton {
			padding: 5px 0 0 0;
			.button {
				.border-radius(4px);
				text-align: center;
				width: 313px;
				height: 43px;
				cursor: pointer;
				font-family: @sansFontFamily;
				font-size: 16px;
				font-weight: normal;
				outline: none;
				padding: 0;
				.buttonBackgroundEXO(@btnPrimaryBackground, @btnPrimaryBackgroundHighlight, @btnPrimaryBorder,@btnPrimaryColor);
				.box-shadow(~"inset 0 1px 0 rgba(255,255,255,.2), 0 1px 2px rgba(0,0,0,.05)");

			}
		}
		#social-pane {
			text-align: center;
			margin-top: 20px;
			#SignInDelimiter {
				font-size: @baseFontSize;
			}
			#social-login {
				a {
					display: inline-block;
					margin: 10px 8px 0;
					text-decoration: none;
					.uiIconOauth {
						background-image: url("@{images-path}/platform/portlets/extensions/oauthIcon.png");
						.size(35px, 37px);
						display: block;
						background-repeat: no-repeat;
					}
					&:hover {
						.uiIconOauth {
							background-image: url("@{images-path}/platform/portlets/extensions/oauthIconHover.png");
						}
					}
					.facebook {
						background-position: 0 0;
					}
					.twitter {
						background-position: -123px 0;
					}
					.linkedin {
						background-position: -82px 0;
					}
					.google {
						background-position: -41px 0;
					}
				}
			}
		}
		.centerLoginContent a{
			color: @linkColor;
			text-decoration: none;
			display: block;
			margin: 3px 0;
		}
	}
	.spaceRole {
		clear: both;
		padding: 2px 0 11px;
	}
	.switchBtnDisabled {
		filter: progid:DXImageTransform.Microsoft.Alpha(Opacity = 50);
		opacity: 0.5;
	}
	.uiSwitchBtn {
		-webkit-transform: translate3d(0, 0, 0);
		position: relative;
		height: 21px;
		cursor: pointer;
		overflow: hidden;
		padding-top: 1px;
		float: left;
		margin-right: 15px;
		input {
			position: absolute;
			top: 1px;
			left: 30px;
			filter: progid:DXImageTransform.Microsoft.Alpha(Opacity = 0);
			opacity: 0;
		}
		label.switchBtnLabelOff {
			#gradient > .vertical(rgba(255, 255, 255, .0), rgba(0, 0, 0, 0.09));
			border-bottom-right-radius: 9px;
			border-top-right-radius: 9px;
			.box-shadow(0 1px 1px rgba(0, 0, 0, 0.43) inset);
			color: @textMediumColor;
			right: 0;
			text-align: right;
			text-shadow: none;
			height: 17px;
		}
		label.switchBtnLabelOn {
			#gradient > .vertical(@primaryColorLighter, @primaryColor);
			border: 1px solid @primaryColor;
			border-bottom-left-radius: 9px;
			border-top-left-radius: 9px;
			.box-shadow(0 3px 5px @primaryDarkerColor inset);
			color: @btnPrimaryColor;
			left: 1px;
			min-width: 9px;
			top: 1px;
			text-shadow: none;
			text-align: center;
		}
		label {
			white-space: nowrap;
			font-size: 11px;
			line-height: 16px;
			font-weight: bold;
			font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
			cursor: pointer;
			display: block;
			height: 16px;
			position: absolute;
			width: auto;
			top: 1;
			overflow: hidden;
		}
	}
	label.switchBtnLabelOff {
		span {
			line-height: 18px;
			padding-right: 17px;
		}
	}
	label.switchBtnLabelOn {
		span {
			line-height: 16px;
			padding: 0 8px 0 4px;
		}
	}
	.switchBtnHandle {
		#gradient > .vertical(@baseBackground, #F1F1F1);
		.border-radius(50%);
		.box-shadow(0px 1px 2px rgba(0, 0, 0, 0.8));
		cursor: pointer;
		display: block;
		height: 18px;
		left: 1;
		position: absolute;
		top: 1px;
		width: 18px;
	}
	.rememberTxt {
		font-size: 13px;
		color: @textLightColor;
		font-weight: bold;
	}
	.signinFail {
		font-size: 13px;
		line-height: 18px;
		margin: 12px 0 0 1px;
		font-weight: bold;
		width: 310px;
	}
	.uiIconError {
		background: url("@{images-path}/Icons/uiIconsColor.png") no-repeat left top;
		padding-left: 20px;
	}
}
.uiLogin .introBox:before, .uiLogin .introBox:after {
	border-top: medium none;
	content: "";
	display: inline-block;
	height: 0;
	position: absolute;
	top: -1px;
	vertical-align: top;
	width: 0;
	border-top: medium none;
	content: "";
	display: inline-block;
	height: 0;
	position: absolute;
	top: -1px;
	vertical-align: top;
	width: 0;
}
.uiLogin .uiSwitchBtn, .uiSwitchBtn label {
	-moz-user-select: none;
	user-select: none;
	-moz-user-select: none;
	-khtml-user-select: none;
}
#platformInfoDiv {
	font-size: 12px;
	text-align:center;
	color: @baseBackground;
	opacity: 0.6;
	margin-top: 15px;
}
#platformInfoPoweredBy{
	color: #ffffff;
	opacity: 0.6;
	text-decoration: none;
}
#platformInfoVersion{
	opacity:0.6;
}
#loginFooter{
	font-size: 12px;
	text-align: center;
	color: #ffffff;
	margin-top: 14px;
}


// remove clear button on IE
input::-ms-clear,input[type=password]::-ms-reveal{
	display: none;
}
/** Login form **/
@media (min-width: 639px) and (max-width: 767px) {
	.uiLogin {
		-webkit-transform: translateX(-50%);
		transform: translateX(-50%);
		top: auto;
	}
}
@media (max-width: 480px) {
	.uiLogin {
		width: 290px;
		//margin: 0;
		.loginHeader {
			display: none;
		}
		.loginContainer{
			padding: 0 32px 15px;
			background-color: @baseBackground;
			.loginContent {
			    	.iconUser, .iconPswrd {
			        	top: 7px;
			        	bottom: 7px;
					background-position-y: -5px;
			    	}
				input {
					width: 172px;
					background-position: left -5px;
					font-size: 16px;
					height: 26px;
					margin: 5px 0;
					&:focus{
						background-position: left -46px;
					}
				}
				.loginButton {
					padding: 3px 0 0 0;
					.button {
						width: 100%;
						font-size: 12px;
						height: 30px;
					}
				}
				#social-pane {
					margin-top: 4px;
					#social-login {
						a {
							margin: 5px 8px 0;
							.uiIconOauth {
								background-image: url("@{images-path}/platform/portlets/extensions/oauthIconXs.png");
								.size(25px, 27px);
							}
							&:hover {
								.uiIconOauth {
									background-image: url("@{images-path}/platform/portlets/extensions/oauthIconHoverXs.png");
								}
							}
							.facebook {
								background-position: 0 0;
							}
							.twitter {
								background-position: -88px 0;
							}
							.linkedin {
								background-position: -59px 0;
							}
							.google {
								background-position: -29px 0;
							}
						}
					}
				}
			}
			input:not(*:root) { width: 166px; }
		}
		.titleLogin {
			font-size: 10px;
			line-height: 10px;
			min-height: 16px;
			padding: 3px 3px 0 0;
			.signinFail{
				font-size: 10px;
				margin: 0;
				width: 225px;
				.uiIconError{
					padding: 2px 10px;
				}
			}
		}
		.rememberTxt {
			font-weight: normal;
		}
		.spaceRole{
			padding: 1px 0 8px;
		}
	}
	.loginBGLight {
		height: 150px;
	}
	@supports (-webkit-appearance:none) { .uiLogin .loginContainer .loginContent input {
		width: 172px;
	} }
}
input[type=text]::-ms-clear,input[type=password]::-ms-reveal{
	display: none;
}

@media (max-width: 767px) {
	.loginBGLight {
		display: none;
	}
}
