﻿html,
body {
	margin: 0;
	padding: 0;
	width: 100%;
	height: 100%;
	overflow-x: hidden;
}

.maxwidth {
	background: url(../../Images/SiteConfigImages/background.png) no-repeat center center/cover;
	min-height: 100vh;
	min-height: 100dvh;
	width: 100%;
	font-family: 'Source Sans 3', sans-serif;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	padding: 24px 4% 24px 24px;
	box-sizing: border-box;
}

/* login-panel: do not use class "container" (conflicts with Bootstrap) */
.login-panel {
	position: relative;
	flex-shrink: 0;
	width: 100%;
	max-width: 460px;
	min-width: 0;
	min-height: 420px;
	max-height: calc(100vh - 48px);
	max-height: calc(100dvh - 48px);
	background: #fff;
	box-shadow: none;
	border: 2px solid #000;
	border-radius: 8px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 40px 36px;
	box-sizing: border-box;
	overflow: auto;
}

.login-panel .logo {
	position: static;
	display: block;
	margin: 0 0 24px 0;
	height: 90px;
	width: auto;
	max-width: 200px;
	object-fit: contain;
}

.login-form {
	width: 100%;
}

.login-form-inner {
	display: flex;
	flex-direction: column;
	gap: 18px;
	width: 100%;
	margin: 0;
}

.form-control {
	border-radius: 40px;
	margin: 0;
	width: 100%;
	border-color: rgb(126, 117, 117);
	height: 44px;
	padding: 10px 18px;
	box-sizing: border-box;
}

.form-check {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin: 0;
	position: static;
	width: 100%;
	gap: 12px;
	flex-wrap: wrap;
}

.remember-wrap {
	display: flex;
	align-items: center;
	gap: 8px;
}

.remember {
	font-size: 13px;
	color: grey;
	margin: 0;
}

.forgot {
	position: static;
	font-size: 13px;
	white-space: nowrap;
}

.loginBtn {
	width: 100%;
	background: #1ba000e0;
	border: none;
	border-radius: 22px;
	color: white;
	font-weight: bold;
	height: 42px;
	position: static;
	margin: 0;
	cursor: pointer;
}

.loginBtn:disabled {
	opacity: 0.7;
}

.form-check a {
	text-decoration: none;
	color: grey;
}

.form-check-input {
	border-color: #1ba000e0;
}

/* Tablet: keep panel on the right, slightly narrower */
@media (min-width: 768px) and (max-width: 991px) {
	.maxwidth {
		justify-content: flex-end;
		padding-right: 3%;
	}

	.login-panel {
		max-width: 400px;
		padding: 32px 28px;
	}
}

/* Mobile: center the login card */
@media (max-width: 767px) {
	.maxwidth {
		justify-content: center;
		align-items: center;
		padding: 20px 16px;
		background-position: center center;
	}

	.login-panel {
		max-width: 420px;
		min-height: auto;
		padding: 32px 24px;
	}

	.login-panel .logo {
		height: 72px;
		margin-bottom: 20px;
	}

	.forgot {
		font-size: 12px;
	}

	.remember {
		font-size: 12px;
	}
}

@media (max-width: 480px) {
	.login-panel {
		padding: 28px 20px;
		border-radius: 8px;
	}

	.login-panel .logo {
		height: 64px;
	}

	.form-control {
		height: 42px;
	}
}

