/*
 * Alcura HIS Module Showcase login.
 * Scoped to the custom /login shell so portal pages stay untouched.
 */

body[data-path="login"] {
	background: #ffffff !important;
	min-height: 100vh;
}

/* Prod nginx caches *.bundle.css for 1 year. Older branding_web still does
   `.for-login { background: login-bg.svg !important; min-height: 100vh }`. */
body[data-path="login"] .for-login,
body[data-path="login"] .for-signup,
body[data-path="login"] .for-forgot,
body[data-path="login"] .for-login-with-email-link,
body[data-path="login"] .for-email-login {
	background: none !important;
	min-height: 0 !important;
	height: auto !important;
}

body[data-path="login"] .navbar,
body[data-path="login"] .web-footer,
body[data-path="login"] footer.web-footer,
body[data-path="login"] .page-breadcrumbs,
body[data-path="login"] .page-header-wrapper,
body[data-path="login"] .btn-login-with-frappe-cloud {
	display: none !important;
}

body[data-path="login"] .page-content-wrapper {
	min-height: 100vh !important;
	padding: 0 !important;
	margin: 0 !important;
}

.alcura-login-main {
	min-height: 100vh;
	padding: 0 !important;
	max-width: none !important;
}

.alcura-login-shell {
	display: grid;
	grid-template-columns: minmax(380px, 42%) 1fr;
	min-height: 100vh;
	background: #ffffff;
}

.alcura-login-pane {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 48px 32px;
	background: #ffffff;
}

.alcura-login-pane-inner {
	display: flex;
	flex-direction: column;
	width: 100%;
	max-width: 400px;
}

.alcura-login-form-block {
	display: flex;
	flex-direction: column;
}

.alcura-login-lockup {
	display: block;
	height: 44px;
	width: auto;
	max-width: 220px;
	margin-bottom: 36px;
	object-fit: contain;
	object-position: left center;
}

.alcura-login-heading {
	margin: 0 0 22px;
}

.alcura-login-heading h1 {
	margin: 0 0 6px;
	font-size: 28px;
	line-height: 1.2;
	font-weight: 700;
	color: #111827;
	letter-spacing: -0.02em;
}

.alcura-login-heading p {
	margin: 0;
	font-size: 15px;
	color: #6b7280;
}

.alcura-login-shell .page-card,
.alcura-login-shell .login-content.page-card {
	max-width: none !important;
	width: auto !important;
	margin: 0 !important;
	padding: 0 !important;
	border: none !important;
	box-shadow: none !important;
	background: transparent !important;
	border-radius: 0 !important;
	display: block !important;
	min-height: 0 !important;
	gap: 0 !important;
}

.alcura-login-shell img.app-logo {
	display: none;
}

.alcura-login-shell form {
	max-width: none !important;
	margin: 0 !important;
}

.alcura-login-shell .form-label {
	display: block;
	margin-bottom: 6px;
	font-size: 13px;
	font-weight: 600;
	color: #374151;
}

/* Prod Frappe login.bundle sets
   `.for-login .page-card .page-card-body input[type=text] { height:28px; padding:6px 8px }`
   at (0,4,1). A bare `.alcura-login-shell .form-control` loses, so the Desk 28px
   fields + envelope/lock icons stay visible. Match that chain and !important. */
body[data-path="login"] .alcura-login-shell .page-card .page-card-body input[type="text"],
body[data-path="login"] .alcura-login-shell .page-card .page-card-body input[type="email"],
body[data-path="login"] .alcura-login-shell .page-card .page-card-body input[type="password"],
body[data-path="login"] .alcura-login-shell .page-card .page-card-body .email-field input,
body[data-path="login"] .alcura-login-shell .page-card .page-card-body .password-field input,
body[data-path="login"] .alcura-login-shell .form-control {
	box-sizing: border-box !important;
	height: 44px !important;
	min-height: 44px !important;
	padding: 10px 14px !important;
	margin-bottom: 0 !important;
	border: 1px solid #e5e7eb !important;
	border-radius: 10px !important;
	background: #f9fafb !important;
	background-color: #f9fafb !important;
	box-shadow: none !important;
	color: #111827 !important;
	font-size: 15px !important;
	font-weight: 400 !important;
	line-height: 1.4 !important;
	letter-spacing: 0 !important;
}

body[data-path="login"] .alcura-login-shell .page-card .page-card-body .password-field input {
	padding-right: 52px !important;
}

body[data-path="login"] .alcura-login-shell .page-card .page-card-body input[type="text"]:focus,
body[data-path="login"] .alcura-login-shell .page-card .page-card-body input[type="email"]:focus,
body[data-path="login"] .alcura-login-shell .page-card .page-card-body input[type="password"]:focus,
body[data-path="login"] .alcura-login-shell .form-control:focus {
	border-color: #066839 !important;
	background: #ffffff !important;
	background-color: #ffffff !important;
	box-shadow: 0 0 0 3px rgba(6, 104, 57, 0.12) !important;
	outline: none !important;
}

body[data-path="login"] .alcura-login-shell .page-card-body.invalid .form-control,
body[data-path="login"] .alcura-login-shell .page-card .page-card-body.invalid input[type="text"],
body[data-path="login"] .alcura-login-shell .page-card .page-card-body.invalid input[type="email"],
body[data-path="login"] .alcura-login-shell .page-card .page-card-body.invalid input[type="password"] {
	border-color: #ef4444 !important;
}

body[data-path="login"] .alcura-login-shell .field-icon {
	display: none !important;
}

body[data-path="login"] .alcura-login-shell .toggle-password {
	right: 12px !important;
	top: 50% !important;
	transform: translateY(-50%) !important;
	font-size: 13px !important;
	line-height: 1 !important;
	color: #6b7280 !important;
}

.alcura-login-shell .btn-primary,
.alcura-login-shell .btn-login {
	height: 44px;
	border-radius: 10px !important;
	font-size: 15px !important;
	font-weight: 600 !important;
	background: #066839 !important;
	border-color: #066839 !important;
	color: #ffffff !important;
	margin-top: 4px !important;
}

.alcura-login-shell .btn-primary:hover {
	background: #044e2a !important;
	border-color: #044e2a !important;
}

.alcura-login-shell .forgot-password-message {
	text-align: center !important;
	margin: 14px 0 0 !important;
}

.alcura-login-shell .forgot-password-message a,
.alcura-login-shell .sign-up-message a,
.alcura-login-help a {
	color: #066839 !important;
	font-weight: 600;
}

.alcura-login-shell .login-button-wrapper {
	padding: 0;
	min-width: 100%;
}

body[data-path="login"] .alcura-login-shell a.btn.btn-login-option {
	display: grid !important;
	place-items: center !important;
	align-content: center !important;
	height: 44px !important;
	padding: 0 12px !important;
	margin-top: 0 !important;
	line-height: 1.2 !important;
	background: #f3f4f6 !important;
	border: none !important;
	box-shadow: none !important;
	color: #374151 !important;
	border-radius: 10px !important;
	font-size: 14px !important;
	font-weight: 600 !important;
}

.alcura-login-shell .social-logins {
	margin-top: 8px;
	margin-bottom: 0;
}

.alcura-login-shell .social-login-buttons,
.alcura-login-shell .login-with-email-link {
	margin-top: 0;
	margin-bottom: 0;
}

.alcura-login-shell .login-button-wrapper {
	margin-bottom: 0 !important;
	padding: 0 !important;
}

.alcura-login-help {
	margin-top: 48px;
	padding-top: 0;
	font-size: 13px;
	line-height: 1.4;
	color: #6b7280;
	text-align: center;
}

.alcura-login-copy {
	margin-top: 8px;
	font-size: 12px;
	line-height: 1.4;
	color: #9ca3af;
}

.alcura-login-partners {
	margin-top: 24px;
	padding: 0;
	text-align: center;
}

.alcura-login-partners-label {
	margin: 0 0 12px;
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0;
	text-transform: none;
	color: #9ca3af;
}

.alcura-login-partners ul {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	margin: 0;
	padding: 0;
	list-style: none;
	gap: 8px;
}

.alcura-login-partners li {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 1 1 0;
	min-width: 0;
}

.alcura-login-partners img {
	display: block;
	height: 40px;
	width: auto;
	max-width: 100%;
	object-fit: contain;
	filter: grayscale(1);
}

/* ------------------------------------------------------------------ */
/* Marketing showcase                                                  */
/* ------------------------------------------------------------------ */

.alcura-login-showcase {
	position: relative;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 36px 40px 28px;
	color: #ecfdf5;
	background:
		radial-gradient(1200px 500px at 80% -10%, rgba(16, 185, 129, 0.22), transparent 55%),
		linear-gradient(160deg, #033822 0%, #066839 48%, #04301f 100%);
}

.alcura-login-showcase::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
	background-size: 32px 32px;
	mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.5), transparent 85%);
	pointer-events: none;
}

.alcura-showcase-glow {
	position: absolute;
	width: 280px;
	height: 280px;
	right: -40px;
	bottom: 80px;
	border-radius: 50%;
	background: rgba(16, 185, 129, 0.18);
	filter: blur(40px);
	pointer-events: none;
}

.alcura-showcase-ecg {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 18%;
	height: 64px;
	width: 100%;
	opacity: 0.9;
	pointer-events: none;
}

.alcura-showcase-copy,
.alcura-showcase-pillars,
.alcura-care-path,
.alcura-showcase-stage,
.alcura-trust,
.alcura-modules {
	position: relative;
	z-index: 1;
}

.alcura-showcase-eyebrow {
	margin: 0 0 8px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: #6ee7b7;
}

.alcura-showcase-copy h2 {
	margin: 0 0 10px;
	max-width: 18ch;
	font-size: clamp(28px, 3.2vw, 42px);
	line-height: 1.15;
	font-weight: 700;
	letter-spacing: -0.03em;
	color: #ffffff;
}

.alcura-showcase-lead {
	margin: 0 0 20px;
	max-width: 46ch;
	font-size: 15px;
	line-height: 1.5;
	color: rgba(236, 253, 245, 0.82);
}

.alcura-showcase-pillars {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 10px;
	margin-bottom: 16px;
}

.alcura-pillar {
	padding: 12px 12px 10px;
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.12);
	backdrop-filter: blur(8px);
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.alcura-pillar-kicker {
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #6ee7b7;
}

.alcura-pillar strong {
	font-size: 13px;
	color: #ffffff;
}

.alcura-pillar span:last-child {
	font-size: 11px;
	color: rgba(236, 253, 245, 0.7);
}

.alcura-care-path {
	display: flex;
	flex-wrap: wrap;
	gap: 0;
	list-style: none;
	margin: 0 0 18px;
	padding: 0;
	font-size: 12px;
	font-weight: 600;
	color: #d1fae5;
}

.alcura-care-path li {
	display: flex;
	align-items: center;
}

.alcura-care-path li:not(:last-child)::after {
	content: "→";
	margin: 0 8px;
	color: rgba(110, 231, 183, 0.7);
	font-weight: 400;
}

.alcura-showcase-stage {
	position: relative;
	margin: 4px 0 18px;
	min-height: 280px;
}

.alcura-dash {
	display: grid;
	grid-template-columns: 92px 1fr;
	background: #f8fafc;
	color: #0f172a;
	border-radius: 16px;
	overflow: hidden;
	transform: perspective(1200px) rotateY(-8deg) rotateX(4deg);
	box-shadow:
		0 24px 60px rgba(0, 0, 0, 0.28),
		0 0 0 1px rgba(255, 255, 255, 0.12);
}

.alcura-dash-side {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 14px 10px;
	background: #044e2a;
	color: rgba(236, 253, 245, 0.85);
	font-size: 10px;
	font-weight: 600;
}

.alcura-dash-brand {
	font-size: 11px;
	color: #ffffff;
	margin-bottom: 6px;
}

.alcura-dash-side .is-live {
	margin-top: auto;
	color: #6ee7b7;
}

.alcura-dash-main {
	padding: 12px 14px 14px;
}

.alcura-dash-head {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	margin-bottom: 10px;
}

.alcura-dash-head strong {
	font-size: 13px;
}

.alcura-dash-head em {
	font-style: normal;
	font-size: 10px;
	color: #059669;
	font-weight: 600;
}

.alcura-kpis {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 8px;
	margin-bottom: 10px;
}

.alcura-kpi {
	background: #ffffff;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	padding: 8px 9px;
}

.alcura-kpi span {
	display: block;
	font-size: 10px;
	color: #6b7280;
	font-weight: 600;
}

.alcura-kpi b {
	display: block;
	font-size: 18px;
	letter-spacing: -0.03em;
	color: #066839;
}

.alcura-kpi small {
	font-size: 10px;
	color: #9ca3af;
}

.alcura-mod-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 8px;
}

.alcura-mod-grid article {
	background: #ffffff;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	padding: 8px 9px 9px;
}

.alcura-mod-grid i {
	display: block;
	width: 18px;
	height: 3px;
	border-radius: 2px;
	background: #10b981;
	margin-bottom: 6px;
}

.alcura-mod-grid h3 {
	margin: 0;
	font-size: 11px;
	font-weight: 600;
	color: #6b7280;
}

.alcura-mod-grid b {
	display: block;
	font-size: 16px;
	color: #111827;
	letter-spacing: -0.02em;
}

.alcura-mod-grid p {
	margin: 0;
	font-size: 10px;
	color: #9ca3af;
}

.alcura-float {
	position: absolute;
	width: 230px;
	padding: 12px 14px;
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.96);
	color: #111827;
	box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}

.alcura-float-label {
	display: inline-block;
	margin-bottom: 6px;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #066839;
}

.alcura-float-ai {
	right: -8px;
	top: -12px;
}

.alcura-float-ai p {
	margin: 0 0 6px;
	font-size: 12px;
	line-height: 1.4;
	color: #1f2937;
}

.alcura-float-ai small {
	font-size: 10px;
	color: #6b7280;
}

.alcura-float-work {
	left: 72px;
	bottom: -18px;
}

.alcura-float-work ul {
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 12px;
	color: #374151;
}

.alcura-float-work li + li {
	margin-top: 4px;
}

.alcura-float-work b {
	color: #066839;
	margin-right: 4px;
}

.alcura-trust {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 12px;
}

.alcura-trust span {
	padding: 5px 10px;
	border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, 0.18);
	background: rgba(0, 0, 0, 0.15);
	font-size: 11px;
	font-weight: 600;
	color: #d1fae5;
}

.alcura-modules {
	font-size: 11px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: rgba(209, 250, 229, 0.7);
}

@media (max-width: 1100px) {
	.alcura-showcase-pillars,
	.alcura-kpis,
	.alcura-mod-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.alcura-float {
		display: none;
	}

	.alcura-dash {
		transform: none;
	}
}

@media (max-width: 900px) {
	.alcura-login-shell {
		grid-template-columns: 1fr;
	}

	.alcura-login-showcase {
		display: none;
	}

	.alcura-login-pane {
		min-height: 100vh;
	}
}
