@CHARSET "ISO-8859-1";

.action_canteen_user_login {
	background-image: url("/skin/canteen/images/bg_login.jpg");
}

.action_canteen_user_logout {
	background-image: url("/skin/canteen/images/bg_logout.jpg");
}

#content {
	text-align: center;
}

#login-wrapper {
	display: inline-block;
	text-align: center;
}

#user-form {
	width: 23em;
	display: flex;
	flex-flow: row wrap;
	align-items: center;
	justify-content: center;
	gap: 2ex 1em;
}

#user-form ul {
	list-style-type: none;
	padding-left: 0;
}

#user-form input,
#user-form button {
	font-size: 110%;
	box-shadow: 0.2ex 0.2ex 1ex rgba(0, 0, 0, 0.5);
}

#user-form input[name="username"] {
	display: none;
}

#user-form button.username-button {
	padding: 1ex;
	border: 1px solid transparent;
	border-radius: 0.5ex;
}

#user-form button.username-button.active {
	background-color: #007bff;
	color: white;
	border-color: #8ec4ff;
}

#user-form #fe-wrapper-username,
#user-form #fe-wrapper-password {
	flex-basis: 100%;
	text-align: center;
}

#user-form input[type="password"] {
	width: 8em;
	text-align: center;
	background-color: transparent;
	border: 1px solid #888;;
	border-radius: 0.5ex;
	color: white;
	box-shadow: none;
}

#user-form #digit-wrapper {
	width: 18.5em;
	display: flex;
	flex-flow: row wrap;
	gap: 1ex 0;
	justify-content: space-between;
}

#fe-wrapper-digit0,
#fe-wrapper-digit1,
#fe-wrapper-digit2,
#fe-wrapper-digit3,
#fe-wrapper-digit4,
#fe-wrapper-digit5,
#fe-wrapper-digit6,
#fe-wrapper-digit7,
#fe-wrapper-digit8,
#fe-wrapper-digit9,
#fe-wrapper-submit-login,
#fe-wrapper-clear {
	display: inline-block;
	margin: 0;
	flex-basis: 33%;
	width: 33%;
	text-align: center;
}

#user-form input[type="submit"], #user-form button[name="clear"] {
	padding: 1ex 0;
	width: 5.5em;
}

#user-form button[name="clear"] {
	margin-left: 0;
	background-color: #b44;
}

#logout-wrapper {
	display: inline-block;
}

#logout-wrapper p {
	font-size: 121%;
	margin-bottom: 4ex;
}


@media only screen and (max-width: 640px)
{
	#user-form {
		width: 19em;
	}

	/* #digit-wrapper .narrow {
		display: block;
		height: 1px;
		margin: 0 0 1ex 0;
	}*/
}

@media only screen and (max-width: 440px)
{
#content {
	margin-left: 1em;
	margin-right: 1em;
}	

#login-wrapper {
	width: 100%;
}

	#user-form {
		width: 100%;
	}

	#digit-wrapper,
	#fe-wrapper-clear {
		padding-left: 0.6em;
	}

#fe-wrapper-digit0 {
		order: 10;
		flex-basis: 100%;
	margin-bottom: 3ex;
	}

	#fe-wrapper-submit-login {
		order: 11;
	}

	#fe-wrapper-clear {
		order: 12;
	}
}