﻿:root {
	--login-header-height: 1rem;
	--login-footer-height: 25px;
}

body {
	height: -webkit-fill-available;
	overflow-y: auto;
}

body * {
	box-sizing: border-box;
}

body form {
	font-size: 16px;
	height: 100%;
}

html {
	height: -webkit-fill-available;
}

p {
	margin: 10px 0;
}

#pnlLoginDialogsContainer {
	width: 100vw;
	height: 100vh;
	/*overflow-y: auto;*/
	position: relative;
}

#loginDialogsWrapper {
	position: relative;
	display: inline-table;
	height: 100%;
	width: 100%;
}

#logindialogouter {
	opacity: 0.5;
}

#loginHeader, #loginFooter {
	height: var(--login-header-height);
	position: absolute;
	left: 0;
	width: 100%;
	z-index: 99;
	display: flex;
}

#loginHeader {
	position: sticky;
	margin-bottom: calc(var(--login-header-height) * -1);
	top: 0;
}

#loginFooter {
	height: var(--login-footer-height);
	bottom: 0;
	font-size: 1rem;
	justify-content: flex-end;
	align-items: center;
	display: none;
}
#loginFooter a {
	margin: 0 5px;
	text-decoration: none;
}

#loginPanelColumnContainer {
	height: 100%;
	padding-top: var(--login-header-height);
	padding-bottom: var(--login-footer-height);
	display: flex;
	justify-content: center;
}

.login-panel-column {
	height: 100%;
}

.login-panel-column {
	width: 100%;
}

	.login-panel-column.left, .login-panel-column.right {
		width: 0;
	}

#loginContentWrapper {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	position: relative;
	min-height: 100%;
	z-index: 1;
	box-sizing: border-box;
	padding: 10px;
}

#loginFormsWrapper {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100%;
	width: calc(100% - 20px);
	max-width: 700px;
}

#loginFormTabs {
	margin-bottom: -1px;
	padding-left: 10px;
}

	#loginWelcome, #loginTabContent, #loginFormTabs .login-form-tab {
		padding: 5px;
	}

	#loginTabContent, #loginFormTabs .login-form-tab {
		border: 1px solid #e1d3e7;
	}

	#loginFormTabs .login-form-tab {
		display: inline-block;
		background-color: #abd5b2;
		border-bottom-color: #e1d3e7;
		font-weight: bold;
		/*color: #005591;*/
		text-transform: capitalize;
	}

		#loginFormTabs .login-form-tab:hover {
			background-color: #fff;
			cursor: pointer;
		}

		#loginFormTabs .login-form-tab.selected {
			border-bottom-color: #e1d3e7;
			background-color: #e1d3e7;
			pointer-events: none;
		}

#loginForms, #loginTabContent, #loginWelcome, #pnlLoginLanguage {
	width: 100%;
}

#loginTabContent {
	background-color: #e1d3e7;
}

.login-tab-content {
	display: none;
}

	.login-tab-content input:not([type=checkbox]), .login-tab-content select {
		width: 100%;
		font-size: 1rem;
	}

.login-tab-content select:invalid {
	color: #888;
}

.login-tab-content select[required] option {
	color: #000;
}

#loginLogo {
	background-image: url('../images/furniture/grappa-logo.png');
	height: 150px;
	width: 100%;
	background-repeat: no-repeat;
	background-position: center;
	background-position: center;
	background-size: contain;
	margin-bottom: 10px;
}

.formline {
	margin-bottom: 10px;
}

.formlabel {
	/*font-weight: bold;*/
	padding: 10px 0px;
	/*color: #005591;*/
}

#pnlLoginLanguage {
	display: none;
}

	#pnlLoginLanguage .formline {
		display: flex;
		align-items: center;
		justify-content: flex-end;
	}

	#pnlLoginLanguage .formlabel {
		margin-right: 10px;
	}

#lnkForgottonPassword {
	margin-top: 10px;
	text-align: right;
}

#lnkForgottonPassword a {
	cursor: pointer;
}

#btnLogin, #btnRegister {
	width: 100%;
}

#pnlRegistrationCodeLogin {
	/* display: none; */
}

#loginWelcome {
	display: none;
}

.ui-dialog[aria-labelledby='ui-dialog-title-loginprewarningdialog'] {
	max-width: 768px;
}

.ui-dialog.no-close-button .ui-dialog-titlebar-close,
.ui-dialog.warning .ui-dialog-titlebar-close {
	display: none;
}

/* Background elements */
body:before, body:after,
#pnlLoginDialogsContainer:before, #pnlLoginDialogsContainer:after,
#loginTabContent:before, #loginTabContent:after,
#loginTabContent .login-tab:before, #loginTabContent .login-tab:after,
#loginTabContent .register-tab:before, #loginTabContent .register-tab:after {
	content: '';
	position: fixed;
	top: 0;
	left: 0;
	height: 100vh;
	width: 100vw;
	background-repeat: no-repeat;
	pointer-events: none;
	z-index: -1;
}

body:before {
	background-image: url('../images/furniture/purple-circle.svg');
	background-position: 95% -5%;
	opacity: .5;
	background-size: 150px;
}
body:after {
	background-image: url('../images/furniture/Graphic-Element_Purple-Dots.png');
	background-position: 93% 5%;
	background-size: 200px;
}
#pnlLoginDialogsContainer:before {
	background-image: url('../images/furniture/green-circle.svg');
	background-position: 0% 105%;
	opacity: .5;
	background-size: 200px;
}
#pnlLoginDialogsContainer:after {
	background-image: url('../images/furniture/Graphic Element_Green Dots.png');
	background-position: center;
	background-size: 150px;
	background-position: 10% 95%;
}

#loginTabContent:before {
	background-image: url('../images/furniture/green-circle.svg');
	background-position: 10% -10%;
	background-size: 200px;
}
#loginTabContent:after {
	background-image: url('../images/furniture/purple-circle.svg');
	background-position: 103% 110%;
	background-size: 300px;
}
#loginTabContent .register-tab:before {
	background-image: url('../images/furniture/purple-circle.svg');
	background-position: calc(50% + 210px) 30%;
	position: absolute;
	width: 100%;
	height: 100%;
	z-index: -1;
	background-size: 150px;
}
#loginTabContent .register-tab:after {
	background-image: url('../images/furniture/green-circle.svg');
	background-position: calc(50% - 210px) 70%;
	position: absolute;
	width: 100%;
	height: 100%;
	z-index: -1;
	background-size: 150px;
}

label.error {
	color: #fff;
}

.error-value input[type=checkbox] {
	position: relative;
}
.error-value input[type=checkbox]::after {
	content: '';
	top: 0;
	left: 0;
	border: 1px solid #f00;
	position: absolute;
	width: 100%;
	height: 100%;
	box-sizing: border-box;
	border-radius: 3px;
}

.error-value input, .error-value select {
	border-color: #f00;
}

select {
	border: 1px solid #ccc;
	border-radius: 5px;
	border-top: 1px solid #aaa;
	border-left: 1px solid #aaa;
}

input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus, 
input:-webkit-autofill:active{
    -webkit-background-clip: text;
    transition: background-color 5000s ease-in-out 0s;
    box-shadow: inset 0 0 20px 20px #fff;
}

select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus {
	-webkit-box-shadow: 0 0 0px 1000px #ffffff inset !important;
}

@media(max-width: 1180px) {
	#loginTabContent:before { background-position:-10% -10%; }
}

@media(max-width: 1140px) {
	#loginTabContent:after { background-size: 200px; }
	/*#pnlLoginDialogsContainer:before,*/
	#pnlLoginDialogsContainer:after,
	/*#loginTabContent:before,*/
	/*body:before,*/
	body:after { display: none; }
}

@media(max-width: 980px) {
	#pnlLoginDialogsContain:before,
	#loginTabContent .register-tab:before,
	#loginTabContent .register-tab:after,
	body:after { display: none; }
}

@media(max-width: 740px) {
	/*#pnlLoginDialogsContainer:before,*/
	/*#pnlLoginDialogsContainer:after,*/
	#loginTabContent:before,
	#loginTabContent:after,
	/*body:before,*/
	body:after { display: none; }
	body:before {
		background-position: 95% calc(0% + 220px);
	}
}