/* MLS Genie™ — branded login page (Concept A) */

:root {
	--mlsg-navy: #0c1a26;
	--mlsg-navy-2: #14293a;
	--mlsg-teal: #107dbd;
	--mlsg-teal-dark: #0c649a;
	--mlsg-mint: #5dcaa5;
}

* { box-sizing: border-box; }

html, body.mlsg-login {
	margin: 0;
	padding: 0;
	min-height: 100vh;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	font-size: 1rem;
	background: #eef3f7;
}

.mlsg-login__backdrop {
	position: fixed;
	inset: 0;
	background: var(--mlsg-login-bg, none) center / cover no-repeat;
	z-index: 0;
}

.mlsg-login__overlay {
	position: fixed;
	inset: 0;
	background: var(--mlsg-login-overlay, #0c1a26);
	opacity: var(--mlsg-login-overlay-opacity, 0.5);
	z-index: 1;
}

body.mlsg-login:not(.mlsg-login--has-bg) .mlsg-login__overlay { display: none; }

.mlsg-login__stage {
	position: relative;
	z-index: 2;
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 40px 20px;
}

.mlsg-login__card {
	display: flex;
	width: 100%;
	max-width: 880px;
	min-height: 520px;
	border-radius: 18px;
	overflow: hidden;
	box-shadow: 0 25px 70px rgba(4, 14, 22, 1);
	background: #ffffff;
	animation: mlsg-login-card-in 0.6s ease-out both;
}

@keyframes mlsg-login-card-in {
	from {
		opacity: 0;
		transform: translateY(24px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@media (prefers-reduced-motion: reduce) {
	.mlsg-login__card {
		animation: none;
	}
}

/* ── Brand panel ── */

.mlsg-login__brand {
	flex: 0 0 44%;
	background: linear-gradient(165deg, var(--mlsg-navy) 0%, var(--mlsg-navy-2) 70%, #1a3549 100%);
	color: #ffffff;
	padding: 44px 38px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.mlsg-login__logo {
	max-width: 200px;
	max-height: 64px;
	display: block;
	margin-bottom: 30px;
}

.mlsg-login__wordmark {
	display: flex;
	align-items: center;
	gap: 11px;
	font-size: 1.125rem;
	font-weight: 700;
	margin-bottom: 30px;
}

.mlsg-login__wordmark-icon {
	width: 36px;
	height: 36px;
	border-radius: 10px;
	background: var(--mlsg-teal);
	display: flex;
	align-items: center;
	justify-content: center;
}

.mlsg-login__lamp {
	width: 18px;
	height: 18px;
	background: #ffffff;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 576 512'%3E%3Cpath d='M208 80c0-26.5 21.5-48 48-48h64c26.5 0 48 21.5 48 48v13.6c56.6 25.8 96 82.9 96 149.1 0 5.8-.3 11.6-.9 17.3h56.9c13.3 0 24 10.7 24 24s-10.7 24-24 24h-73.7c-27.8 60.1-88.6 102-159.3 102S156.5 388.1 128.7 328H55c-13.3 0-24-10.7-24-24s10.7-24 24-24h56.9c-.6-5.7-.9-11.5-.9-17.3 0-66.2 39.4-123.3 96-149.1V80z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 576 512'%3E%3Cpath d='M208 80c0-26.5 21.5-48 48-48h64c26.5 0 48 21.5 48 48v13.6c56.6 25.8 96 82.9 96 149.1 0 5.8-.3 11.6-.9 17.3h56.9c13.3 0 24 10.7 24 24s-10.7 24-24 24h-73.7c-27.8 60.1-88.6 102-159.3 102S156.5 388.1 128.7 328H55c-13.3 0-24-10.7-24-24s10.7-24 24-24h56.9c-.6-5.7-.9-11.5-.9-17.3 0-66.2 39.4-123.3 96-149.1V80z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.mlsg-login__tagline {
	font-size: 1.75rem;
	font-weight: 800;
	line-height: 1.25;
	margin: 0 0 12px;
}

.mlsg-login__tagline-accent { color: var(--mlsg-teal); }

.mlsg-login__sub {
	font-size: 0.9375rem;
	line-height: 1.6;
	color: #8aa3b5;
	margin: 0;
}

.mlsg-login__points {
	list-style: none;
	margin: 28px 0 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.mlsg-login__points li {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 0.875rem;
	color: #b8ccdb;
}

.mlsg-login__check {
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: rgba(93, 202, 165, 0.15);
	color: var(--mlsg-mint);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 0.75rem;
	font-weight: 700;
	flex: 0 0 20px;
}

/* ── Form panel ── */

.mlsg-login__panel {
	flex: 1 1 auto;
	padding: 48px 46px;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.mlsg-login__title {
	font-size: 1.5rem;
	font-weight: 800;
	color: #0f2333;
	margin: 0 0 4px;
}

.mlsg-login__lead {
	font-size: 0.9375rem;
	color: #5f7285;
	margin: 0 0 24px;
}

.mlsg-login__notice {
	background: #fdecec;
	border: 1px solid #f5b8b8;
	color: #9c2121;
	font-size: 0.875rem;
	line-height: 1.5;
	border-radius: 10px;
	padding: 11px 14px;
	margin: 0 0 18px;
}

.mlsg-login__label {
	display: block;
	font-size: 0.8125rem;
	font-weight: 600;
	color: #40566b;
	margin: 0 0 6px;
}

.mlsg-login__input {
	width: 100%;
	height: 46px;
	border: 1px solid #d4dee6;
	border-radius: 10px;
	padding: 0 14px;
	font-size: 0.9375rem;
	color: #0f2333;
	background: #ffffff;
	margin-bottom: 16px;
	transition: border-color .15s, box-shadow .15s;
}

.mlsg-login__input:focus {
	outline: none;
	border-color: var(--mlsg-teal);
	box-shadow: 0 0 0 3px rgba(16, 125, 189, 0.15);
}

.mlsg-login__pass-wrap { position: relative; }

.mlsg-login__pass-wrap .mlsg-login__input { padding-right: 46px; }

.mlsg-login__eye {
	position: absolute;
	right: 6px;
	top: 7px;
	width: 32px;
	height: 32px;
	border: none;
	background: transparent;
	color: #8aa0b3;
	cursor: pointer;
	font-size: 1rem;
	line-height: 1;
	border-radius: 8px;
}

.mlsg-login__eye:hover { color: #40566b; background: #f1f5f8; }

.mlsg-login__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin: 2px 0 20px;
	gap: 12px;
	flex-wrap: wrap;
}

.mlsg-login__remember {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 0.8125rem;
	color: #5f7285;
	cursor: pointer;
}

.mlsg-login__remember input {
	width: 16px;
	height: 16px;
	accent-color: var(--mlsg-teal);
}

.mlsg-login__forgot {
	font-size: 0.8125rem;
	color: var(--mlsg-teal);
	text-decoration: none;
	font-weight: 600;
}

.mlsg-login__forgot:hover { text-decoration: underline; }

.mlsg-login__submit {
	width: 100%;
	height: 48px;
	border: none;
	border-radius: 10px;
	background: var(--mlsg-teal);
	color: #ffffff;
	font-size: 0.9375rem;
	font-weight: 700;
	cursor: pointer;
	transition: background .15s, transform .05s;
}

.mlsg-login__submit:hover { background: var(--mlsg-teal-dark); }
.mlsg-login__submit:active { transform: scale(0.99); }

.mlsg-login__foot {
	text-align: center;
	font-size: 0.8125rem;
	color: #8aa0b3;
	margin: 22px 0 0;
}

.mlsg-login__foot a {
	color: #5f7285;
	text-decoration: none;
}

.mlsg-login__foot a:hover { color: var(--mlsg-teal); }

.mlsg-login__foot-sep { margin: 0 8px; }

/* ── Responsive ── */

@media (max-width: 760px) {
	.mlsg-login__card { flex-direction: column; min-height: 0; }
	.mlsg-login__brand { flex: none; padding: 32px 28px; }
	.mlsg-login__points { margin-top: 20px; }
	.mlsg-login__panel { padding: 32px 28px 38px; }
	.mlsg-login__tagline { font-size: 1.375rem; }
	.mlsg-login__tagline br { display: none; }
}
