/*
This file is part of the Meeds project (https://meeds.io/).
Copyright (C) 2020 Meeds Association
contact@meeds.io
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 3 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
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with this program; if not, write to the Free Software Foundation,
Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
*/
@import "../../../variables.less";
@import "../../../mixins.less";
@import "forgot-password.less";
//========================================
body {
	background-color: @baseBackgroundDefault;
	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;
}
.brandingComanyClass{
    color: @baseBackground;
    font-size: 24px;
}
.uiCheckbox{
    position: relative;
    display: inline-block;
    margin: 0 5px;
}
.rememberContent{
    margin-bottom: 12px;
    font-size: 13px;
    color: @baseBackground;
    font-weight: 400;
    font-family:  Helvetica, arial, sans-serif;
}
.forgotPasswordClass {
    text-align: center;
    padding: 6px;
}
.brandingImageContent {
    img.brandingImage {
        width: 150px;
    }
    bottom:40px;
    right:40px;
    position: fixed;
}
input[type="checkbox"]{
    cursor: pointer;
    top: 3px;
    display: inline-block;
    position: relative;
    width: 17px!important;
    z-index: 100;
    height: 17px!important;
    margin-right: 10px;
}
.uiCheckbox > span {
    display: inline-block;
    text-indent: 5px;
    font-size: 14px;
    font-family: Helvetica, arial, sans-serif;
}
.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: @primaryColor;
	}
	.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: 10px 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 @greyColor;
				border-radius: 5px 0 0 5px;
				position: absolute;
				width: 40px;
				left: 2px;
				top: 2px;
				bottom: 16px;
			}
		}
		input {
			width: 260px;
			height: 36px;
			border: solid 2px @greyColor;
			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 @greyColor;
			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: bold;
				outline: none;
				padding: 0;
				.buttonBackgroundEXO(@secondaryColor, @secondaryColor, @secondaryColor, @baseBackgroundDefault);
				.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;
					}
					.openid {
						background-position: 0 0;
						background-image: url("@{images-path}/platform/portlets/extensions/openid-icon-35-35.png");
					}
					.openid:hover {
						background-position: 0 0;
						background-image: url("@{images-path}/platform/portlets/extensions/openid-icon-35-35.png");
					}
				}
			}
		}
		.centerLoginContent a{
			color: @baseBackground;
			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: @primaryColor;
			.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;
	}
}
