@import url("../../style/lekkatour.css");
:root { 
	--loginBackgroundColor: var(--mainBackground); 
	--loginForgroundColor: var(--contentBackground); 
	--loginTextColor: var(--contentTextColor); 
	--userMenuBackgroundColor: var(--mainBackground); 
	--userMenuTextColor: var(--contentTextColor);  
	--userMenuBorderColor: var(--contentTextColor); 
	--userMenuHoverBackgroundColor: var(--userMenuTextColor); 
	--userMenuHoverTextColor: var(--userMenuBackgroundColor);  
	--userMenuHoverBorderColor: var(--userMenuTextColor); 
	--errorMessageBackgroundColor: red;
	--errorMessageTextColor: var(--loginTextColor);
	--modalBackgroundColor: rgba(0, 0, 0, 0.4); /* Black w/ opacity */
	--modalBackgroundFallbackColor: rgb(0, 0, 0); /* Fallback color */
	--modalBorderColor: #888;
}

/* Add Zoom Animation */
.animate {
  -webkit-animation: animatezoom 0.6s;
  animation: animatezoom 0.6s
}

@-webkit-keyframes animatezoom {
  from {-webkit-transform: scale(0)} 
  to {-webkit-transform: scale(1)}
}
  
@keyframes animatezoom {
  from {transform: scale(0)} 
  to {transform: scale(1)}
}

/* Add Flip Animation */

.page-flipOutRight {
	-webkit-transform-origin: 50% 50%;
	transform-origin: 50% 50%;
	-webkit-animation: flipOutRight .5s both ease-in;
	animation: flipOutRight .5s both ease-in;
}
.page-flipInLeft {
	-webkit-transform-origin: 50% 50%;
	transform-origin: 50% 50%;
	-webkit-animation: flipInLeft .5s both ease-out;
	animation: flipInLeft .5s both ease-out;
}
.page-flipOutLeft {
	-webkit-transform-origin: 50% 50%;
	transform-origin: 50% 50%;
	-webkit-animation: flipOutLeft .5s both ease-in;
	animation: flipOutLeft .5s both ease-in;
}
.page-flipInRight {
	-webkit-transform-origin: 50% 50%;
	transform-origin: 50% 50%;
	-webkit-animation: flipInRight .5s both ease-out;
	animation: flipInRight .5s both ease-out;
}

@-webkit-keyframes flipOutRight {
	from { }
	to { -webkit-transform: translateZ(-1000px) rotateY(90deg); opacity: 0.2; }
}
@keyframes flipOutRight {
	from { }
	to { -webkit-transform: translateZ(-1000px) rotateY(90deg); transform: translateZ(-1000px) rotateY(90deg); opacity: 0.2; }
}

@-webkit-keyframes flipInLeft {
	from { -webkit-transform: translateZ(-1000px) rotateY(-90deg); opacity: 0.2; }
}
@keyframes flipInLeft {
	from { -webkit-transform: translateZ(-1000px) rotateY(-90deg); transform: translateZ(-1000px) rotateY(-90deg); opacity: 0.2; }
}

@-webkit-keyframes flipOutLeft {
	from { }
	to { -webkit-transform: translateZ(-1000px) rotateY(-90deg); opacity: 0.2; }
}
@keyframes flipOutLeft {
	from { }
	to { -webkit-transform: translateZ(-1000px) rotateY(-90deg); transform: translateZ(-1000px) rotateY(-90deg); opacity: 0.2; }
}

@-webkit-keyframes flipInRight {
	from { -webkit-transform: translateZ(-1000px) rotateY(90deg); opacity: 0.2; }
}
@keyframes flipInRight {
	from { -webkit-transform: translateZ(-1000px) rotateY(90deg); transform: translateZ(-1000px) rotateY(90deg); opacity: 0.2; }
}

/* The Modal (background) */
.modal {
	display: none; /* Hidden by default */
	position: fixed; /* Stay in place */
	z-index: 1; /* Sit on top */
	padding-top: 20%; /* Location of the box */
	left: 0;
	top: 0;
	width: 100%; /* Full width */
	height: 100%; /* Full height */
	overflow: auto; /* Enable scroll if needed */
	background-color: var(--modalBackgroundFallbackColor); /* Fallback color */
	background-color: var(--modalBackgroundColor); /* Black w/ opacity */
}

/* Modal Content as a flex container */
.modal-content {
	display: flex; 
	flex-wrap: nowrap;
	flex-direction: column;
	justify-content: flex-start;
	align-items: flex-start;
	background-color : var(--loginBackgroundColor);
	color: var(--loginTextColor);
	width: 45%;
	margin: auto;
	padding: 10px;
	border-radius: 10px;
	border: 1px solid var(--modalBorderColor);
}

#divLoginUser {
	display: block;
}

#divForgotPassword {
	display: none;
}

.firstLogin {
	padding-top: 50px;
}


/* one row of the modal content container -> a flex row */
.container {	
	display: inline-flex;
	flex-wrap: wrap;
	flex-direction: row;
	width: 100%;
  	align-items: center;
	padding: 5px;
}

label {
	flex-basis:25%;
	justify-self: flex-start;
}

#lblLogin, #lblForgot, #lblUpdateWelcome {
	text-align: center;
}

form {
	width: 100%; /* Full width */
	height: 100%; /* Full height */
	background-color: var(--loginForgroundColor);
	border-radius: 10px;
	padding: 10px;
}

p {
	width: 100%; /* Full width */
	text-align: center;
	margin: 0;
}

/* The Close Button */
.close {
	justify-self: flex-end;
	color: var(--loginTextColor);
	float: right;
	font-size: 28px;
	font-weight: bold;
}

.close:hover, .close:focus {
	color: var(--loginTextColor);
	text-decoration: none;
	cursor: pointer;
}


/* Full-width inputs */
input[type=text], input[type=password] {
	background-repeat: no-repeat;
	background-position-x: 3px;
  	background-position-y: center;
  	white-space: nowrap;
  	overflow: hidden;
  	padding-left: 25px !important;
	flex-basis:75%;
	justify-self: flex-end;
	margin : 8px 0;
}

#loginUsername {
	background-image: url("../icons/icon-username.svg");
}

#loginPassword {
	background-image: url("../icons/icon-password.svg");
}

#loginEmail {
	background-image: url("../icons/icon-email.svg");
}

.error {
	display: none;
	padding-left: 25px;
	padding-right: 25px;
	background-color: var(--errorMessageBackgroundColor);
	color: var(--errorMessageTextColor);
  	z-index: 2;
  	font-size: 1.3rem;
  	border-radius: 0.25em;
	text-align: center;
  	opacity: 0;
  	-webkit-transition: opacity 0.2s 0s, visibility 0s 0.2s;
  	transition: opacity 0.2s 0s, visibility 0s 0.2s;
}

#loginHeader, #forgotHeader, #updateHeader {
	width: 95%;
	text-align: center;	
}

.inputContainer {	
	flex-grow: 1;
	white-space: nowrap;
}

#togglePassword {
	position: relative;
	right: 32px;
  	z-index: 2;
	background-image: url("../icons/icon-show-password.svg");
	background-repeat: no-repeat;
  	background-position-y: center;
  	background-size: 20px;
}
.setImageHide {
	background-image: url("../icons/icon-hide-password.svg") !important;
}

#togglePassword:hover {
	cursor: pointer;
}

/* Set a style for all buttons */
button {
	padding: 10px 14px;
	margin: 8px 0;
	flex-basis:30%;
}

button[name="cancel"], button[name="login"], button[name="backToLogin"], button[name="sendOtp"], button[name="change"] {
	flex-grow: 1;
}

label[id="remember"] {
	flex-grow: 2;
}

label[id="forgot"] {
	flex-grow: 2;
	text-align: right;
}

.userMenuLabel:hover .userMenuItems {
	display: block;
}

.userMenuLabel {
	display: inline-block;
	cursor: pointer;
}

.userMenu {
	background-color: var(--userMenuBackgroundColor);
	color: var(--userMenuTextColor);
	height: 3em;
	line-height: 3em;
	width: 100%;
}

.userMenuItems {
	display: none;
	background-color: var(--mainBackground);
	color: var(--userMenuTextColor);
	text-align: center;
	width: 100%;
}

.userMenuItem {
	display: block;
	border-style: solid;
	border-width: 0 1px 1px 1px;
	border-color: var(--userMenuBorderColor);
	height: 2em;
	line-height: 2em;
	pointer-events:all;
	width: 100%;
	clear: right;
}

.userMenuItem:hover {
	cursor: pointer;
	font-weight: bolder;
	background-color: var(--userMenuHoverBackgroundColor);
	color: var(--userMenuHoverTextColor);
	border-color: var(--userMenuHoverBorderColor);
}

