/*
 * Mars scheme
 *
 * @version 1.0
 */

/*  
 * === Table of contents ===
 *  
 *  --- General
 *  --- Form
 *   |--- Form elements
 *   |--- Alerts
 *  --- Iframe form
 *  --- Responsive
 */

// General
body {
	.bg(@bg_color);
	.bg_img(@bg_image, @bg_image_repeat, @bg_image_size_type);
	background-position: center;
}

a:focus {
	box-shadow: none;
}

.tt-body-login {
	.bg(@form_bg_color);
	.bg_img(@form_bg_image, @form_bg_image_repeat, @form_bg_size_type);
	.no-shadow(@form_bg_color);
	box-shadow: 0 5px 6px rgba(0,0,0, 0.4);
	overflow: hidden;
}

#login form {
	background: transparent;
	box-shadow: none;
	margin: 0;
	padding: 20px 0 0;

	label {
		.font(@font_color, @font_family, @font_size);
		font-weight: 100;
	}

	p:first-child, p:first-child + p {
		position: relative;
		border-width: 0 0 1px 0;
		border-style: solid;
		.prop(@font_color, border-color);
		margin-bottom: 16px;

		label {
				pointer-events: none;
			br {
				display: none;
			}

			span {
				position: absolute;
				top: 7px;
				left: 0;
				display: block;
				-webkit-transition: all 0.3s cubic-bezier(0.77, 0, 0.175, 1);
				-moz-transition: all 0.3s cubic-bezier(0.77, 0, 0.175, 1);
				transition: all 0.3s cubic-bezier(0.77, 0, 0.175, 1);
				will-change: transform;
			}
		}

		&:before {
			content: '';
			display: block;
			position: absolute;
			height: 1px;
			width: 0;
			.prop(@primary_color, background);
			left: 0;
			right: 0;
			bottom: -1px;
			margin: 0 auto;
			-webkit-transition: all 0.3s cubic-bezier(0.77, 0, 0.175, 1);
			-moz-transition: all 0.3s cubic-bezier(0.77, 0, 0.175, 1);
			transition: all 0.3s cubic-bezier(0.77, 0, 0.175, 1);
		}	
	}

	input[type="checkbox"] {
		background: rgba(0,0,0, 0.2);
		border: none;
		border-radius: 4px;
	}

	input[type="text"], input[type="password"], input[type="email"] {
		background: transparent;
		border: 0;
		box-shadow: none;
		.prop(@font_color, border-color);
		.prop(@font_color, color);
		padding: 10px 0;
		margin: 0;

		&:focus + span, + .have-content {
			-webkit-transform: translateY(-18px);
			-moz-transform: translateY(-18px);
			transform: translateY(-18px);
			.font-size(@font_size, 0.7);
			opacity: 0.6;
		}
	}

	input[type="text"], input[type="password"], input[type="checkbox"], input[type="email"] {
		.font-size(@font_size, 1);
		pointer-events: all;
		
		&:focus {
			.prop(@primary_color, border-color);
		}
	}
}

.focused-input:before {
	width: 100% !important;
}

#wp-submit {
	width: 100%;
	margin-top: 16px;
	padding: 10px;
	height: auto;
	border: none;
	box-shadow: none;
	-webkit-transition: all 0.3s ease;
	-moz-transition: all 0.3s ease;
	transition: all 0.3s ease;
	.if(@form_button_bg_color, @primary_color, background-color);
	.w-or-b(@primary_color, color);
	.font-family(@font_family);
	.font-size(@font_size, 20 / 18);
	.prop(@form_button_color, color);

	&:hover {
		.button-hover(@primary_color);
		.prop-lighten(@form_button_bg_color, background-color);
		.w-or-b(@primary_color, color);
		.prop(@form_button_color, color);
	}
}

.forgetmenot label {
	.font-size(@font_size, 15 / 18) !important;
	font-weight: 300 !important;
}

#rememberme:before {
	.color(@font_color);
}

#login h1 {
	.check(@logo_hide);

	a {
		.bg_img(@logo_image, no-repeat, @logo_bg_size_type);
		.no-logo(@logo_image, @logo_width, @logo_height);
		background-position: center;
		position: relative;
		top: 50%;
		left: 50%;
		-webkit-transform: translate(-50%);
		-moz-transform: translate(-50%);
		transform: translate(-50%);
		margin: 0 0 25px;
		overflow: visible;
		display: table;

		&:before, &:after {
			content: '';
			display: block;
			margin: auto 0;
			position: absolute;
			top: 0;
			bottom: 0;
			height: 7px;
			width: 400px;
			border-top: 1px solid rgba(255,255,255, 0.1);
			border-bottom: 1px solid rgba(255,255,255, 0.1);
		}

		&:before {
			right: calc(100% + 25px);
		}

		&:after {
			left: calc(100% + 25px);
		}
	}
}

.login #nav {
	padding: 0;
	font-size: 0;

	a:last-child {
		float: right;
	}
}

#backtoblog {
	text-align: center;
}

.login #nav, .login #backtoblog {
	.color(@font_color);

	a {
		.color(@font_color);
		.font-family(@font_family);
		.font-size(@font_size, 15 / 18);
		.ifnot(@font_size, font-size, 15px);

		&:hover {
			.color(@primary_color);
		}
	}
}

.tt-form-title {
	text-align: center;
	margin: 20px 0;
	.color(@font_color);
	.font-family(@font_family);
}

// Reset Password
#resetpassform {
	background-color: transparent;
	padding: 0;
	box-shadow: none;
}

.indicator-hint {
	.font-family(@font_family);
	.font-size(@font_size, 16 / 18);
	.color(@font_color);
	margin-top: 10px;
}

.login #pass-strength-result {
	margin: 10px 0 0 !important;

}

.show-password {
	border-bottom: 1px solid transparent;
	.prop(@font_color, border-color);
	padding-bottom: 10px;
}

// Alerts
#login_error, .message {
	.font-family(@font_family);
	.font-size(@font_size, 14 / 18);
	background: rgba(255,255,255, 0.1) !important;
	.color(@font_color);
	margin: 5px 0;
}

.message {
	border-left-color: #64daff !important;
}

#login_error {
	border-left-color: #ffb5b5 !important;
}

#reg_passmail {
	.color(@font_color);
	.font-family(@font_family);
	.font-size(@font_size, 14 / 18);
}

// Form iframe
body:not(.interim-login) #login {
	.form-placement(@form_placement);
	width: 420px;

	@media (max-width: 420px) {
		width: auto;
	}

	.tt-body-login {
		.prop(@form_padding, padding);
	}
}

.interim-login {
	background-repeat: no-repeat;
	min-height: auto;
	.tt-body-login {
		padding: 20px;
	}
}

// Blur fix
.login form .forgetmenot label {
	line-height: 20px;
}

// Captcha
.tt-login .g-recaptcha {
	height: 78px;
	margin-bottom: 1em;
}