/* HRWalah: split-panel login page, applied only on /login via the
   hrwalah-login-page class the injected JS adds. Pure addition on top
   of Frappe's existing login.html/login.js - no core behavior touched. */

body.hrwalah-login-page .page-breadcrumbs,
body.hrwalah-login-page .page-header-wrapper,
body.hrwalah-login-page .page-footer {
	display: none !important;
}

body.hrwalah-login-page .page-content-wrapper {
	max-width: none !important;
	padding: 0 !important;
	margin: 0 !important;
}

body.hrwalah-login-page .page_content {
	display: flex;
	min-height: 100vh;
	padding: 0 !important;
	margin: 0 !important;
}

body.hrwalah-login-page .hrwalah-brand-panel {
	flex: 0 0 45%;
	/* matches logo-navbar-dark.png's own baked-in background exactly, so the logo has no visible edge/seam */
	background: #02203a;
	color: #fff;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 4rem 3.5rem;
	position: relative;
	overflow: hidden;
}

body.hrwalah-login-page .hrwalah-brand-panel img.brand-logo {
	height: 40px;
	width: auto;
	margin-bottom: 3rem;
	position: relative;
	z-index: 1;
}

body.hrwalah-login-page .hrwalah-brand-panel h1 {
	font-size: 2.1rem;
	font-weight: 700;
	line-height: 1.25;
	margin: 0 0 0.75rem;
	position: relative;
	z-index: 1;
}

body.hrwalah-login-page .hrwalah-brand-panel .brand-subhead {
	font-size: 1.05rem;
	font-weight: 500;
	color: #cdd9ec;
	margin: 0 0 1.25rem;
	position: relative;
	z-index: 1;
}

body.hrwalah-login-page .hrwalah-brand-panel .brand-desc {
	font-size: 0.95rem;
	color: #9fb0c8;
	line-height: 1.6;
	margin: 0 0 2.5rem;
	max-width: 26rem;
	position: relative;
	z-index: 1;
}

body.hrwalah-login-page .hrwalah-brand-features {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.9rem 1.5rem;
	list-style: none;
	padding: 0;
	margin: 0;
	position: relative;
	z-index: 1;
}

body.hrwalah-login-page .hrwalah-brand-features li {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	font-size: 0.92rem;
	color: #e3e9f2;
}

body.hrwalah-login-page .hrwalah-brand-features li::before {
	content: "";
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #c59d4f;
	flex-shrink: 0;
}

body.hrwalah-login-page .hrwalah-brand-watermark {
	position: absolute;
	right: -60px;
	bottom: -60px;
	width: 320px;
	height: 320px;
	background: url("/assets/hrwalah/images/logo-watermark.png") center / contain no-repeat;
	opacity: 0.1;
	pointer-events: none;
}

body.hrwalah-login-page .page_content > div:not(.hrwalah-brand-panel) {
	flex: 1 1 55%;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 2rem;
	background: #ffffff;
}

body.hrwalah-login-page .login-content.page-card {
	box-shadow: none;
	border: none;
	width: 100%;
	max-width: 400px;
}

@media (max-width: 860px) {
	body.hrwalah-login-page .page_content {
		flex-direction: column;
		min-height: auto;
	}
	body.hrwalah-login-page .hrwalah-brand-panel {
		flex: none;
		padding: 2rem 1.5rem;
		text-align: center;
		align-items: center;
	}
	body.hrwalah-login-page .hrwalah-brand-panel img.brand-logo {
		margin: 0 auto 1rem;
	}
	body.hrwalah-login-page .hrwalah-brand-panel h1 {
		font-size: 1.4rem;
	}
	body.hrwalah-login-page .hrwalah-brand-panel .brand-desc,
	body.hrwalah-login-page .hrwalah-brand-features {
		display: none;
	}
	body.hrwalah-login-page .page_content > div:not(.hrwalah-brand-panel) {
		padding: 1.5rem;
	}
}
