/* Hospital System sky-blue desk theme */
:root {
	--blue-300: #7dd3fc;
	--blue-400: #38bdf8;
	--blue-500: #0ea5e9;
	--blue-600: #0284c7;
	--blue-700: #0369a1;
	--primary: #0284c7;
	--primary-color: #0284c7;

	/* left navigation sidebar */
	--sidebar-hover-color: rgba(2, 132, 199, 0.06);
	--sidebar-active-color: rgba(2, 132, 199, 0.12);
}

[data-theme="dark"] {
	--blue-300: #7dd3fc;
	--blue-400: #38bdf8;
	--blue-500: #0ea5e9;
	--blue-600: #0284c7;
	--blue-700: #0369a1;
	--primary: #38bdf8;
	--primary-color: #38bdf8;

	--sidebar-hover-color: rgba(56, 189, 248, 0.1);
	--sidebar-active-color: rgba(56, 189, 248, 0.18);
}

.btn-primary {
	background-color: var(--primary) !important;
	border-color: var(--primary) !important;
}

/* left navigation sidebar accent */
.active-sidebar {
	border-left: 3px solid var(--primary);
}

/* login page */
.btn-login,
.btn-ldap-login {
	background: var(--primary) !important;
}

.btn-login:hover,
.btn-login:focus,
.btn-login:active,
.btn-ldap-login:hover,
.btn-ldap-login:focus,
.btn-ldap-login:active {
	background: var(--blue-700) !important;
}

/* split-screen login layout */
/* frappe's page wrapper adds 60px of top padding; stacked on our own
   100vh block that overflows the viewport, so zero it out on this page */
body:has(.hc-login-split) .page-content-wrapper {
	padding-top: 0;
	min-height: 100vh;
}

.hc-login-split {
	display: flex;
	min-height: 100vh;
}

.hc-login-hero {
	position: relative;
	flex: 1 1 50%;
	background-image: url("/assets/healthcare/images/login-hero.jpg");
	background-size: cover;
	background-position: center;
	display: flex;
	align-items: flex-end;
	justify-content: flex-start;
	overflow: hidden;
}

.hc-login-hero-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		180deg,
		rgba(3, 42, 71, 0.35) 0%,
		rgba(3, 42, 71, 0.05) 30%,
		rgba(3, 42, 71, 0.55) 75%,
		rgba(3, 42, 71, 0.88) 100%
	);
}

.hc-login-hero-content {
	position: relative;
	z-index: 1;
	max-width: 460px;
	padding: 56px 48px;
	color: #ffffff;
	text-align: left;
}

.hc-login-hero-logo {
	height: 44px;
	width: 44px;
	border-radius: 10px;
	margin-bottom: 24px;
}

.hc-login-hero-content h1 {
	color: #ffffff;
	font-size: 2.1rem;
	font-weight: 700;
	margin-bottom: 8px;
	text-shadow: 0 2px 16px rgba(0, 0, 0, 0.45);
}

.hc-login-hero-tagline {
	color: rgba(255, 255, 255, 0.92);
	font-size: 1rem;
	margin-bottom: 28px;
	text-shadow: 0 1px 10px rgba(0, 0, 0, 0.4);
}

.hc-module-flash {
	list-style: none;
	margin: 0;
	padding: 0;
	height: 44px;
	position: relative;
}

.hc-module-flash li {
	position: absolute;
	left: 0;
	top: 0;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 11px 18px;
	background: rgba(255, 255, 255, 0.14);
	border: 1px solid rgba(255, 255, 255, 0.28);
	border-radius: 999px;
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	box-shadow: 0 4px 16px rgba(3, 105, 161, 0.25);
	color: #ffffff;
	font-size: 0.95rem;
	font-weight: 600;
	letter-spacing: 0.01em;
	opacity: 0;
	transform: translateY(6px);
	transition: opacity 0.5s ease, transform 0.5s ease;
	white-space: nowrap;
}

.hc-module-flash li::before {
	content: "";
	width: 6px;
	height: 6px;
	flex-shrink: 0;
	border-radius: 50%;
	background: #ffffff;
}

.hc-module-flash li.active {
	opacity: 1;
	transform: translateY(0);
}

.hc-login-form-panel {
	flex: 1 1 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 32px;
	background-color: var(--bg-color);
}

/* sections are shown/hidden by login.js based on the url hash; without this
   they all render stacked on first paint until that script runs, which
   makes the whole split row snap taller then shorter right after load */
.hc-login-form-panel section {
	display: none;
}

.hc-login-form-panel .login-content.page-card {
	background-color: var(--bg-color);
	max-width: 371px;
	width: 100%;
	margin: 0;
}

@media (max-width: 900px) {
	.hc-login-hero {
		display: none;
	}

	.hc-login-form-panel {
		padding: 24px;
	}
}
