/* ==========================================================================
   SMRT Portal — Focused Login (Step 3)
   Split-screen: brand panel (left) + login card (right).
   Scoped to body.smrt-login-screen so nothing else is affected.
   ========================================================================== */

/* Hide default chrome on the login screen for a focused experience */
body.smrt-login-screen #masthead,
body.smrt-login-screen .site-header,
body.smrt-login-screen #colophon,
body.smrt-login-screen .site-footer,
body.smrt-login-screen .masthead {
	display: none !important;
}

/* Full-viewport split container.
   The brand panel is injected into #page (a sibling of #content), so instead of
   relying on flex siblings we fix the brand panel to the left half and offset
   the content (form) to the right half. Bulletproof against theme nesting. */
body.smrt-login-screen {
	background: var(--smrt-bg);
}
body.smrt-login-screen #page {
	margin-left: 0;
	min-height: 100vh;
}
body.smrt-login-screen #content.site-content {
	display: block;
	min-height: 100vh;
	max-width: none;
	margin: 0;
	margin-left: 46vw;              /* clear the fixed brand panel */
	padding: 0;
}

/* ---- Brand panel (left, fixed) ------------------------------------------- */
.smrt-login-brand {
	position: fixed;
	top: 0;
	left: 0;
	width: 46vw;
	height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 56px;
	overflow: hidden;
	background:
		radial-gradient(120% 120% at 0% 0%, rgba(141, 55, 254, 0.22), transparent 55%),
		radial-gradient(120% 120% at 100% 100%, rgba(209, 3, 246, 0.22), transparent 55%),
		var(--smrt-surface-1);
	border-right: 1px solid var(--smrt-border);
	z-index: 1;
}
.smrt-login-brand__inner {
	position: relative;
	z-index: 2;
	max-width: 420px;
}
.smrt-login-brand__logo img {
	max-height: 44px;
	width: auto;
	margin-bottom: 40px;
	display: block;
}
.smrt-login-brand__headline {
	font-size: 40px !important;
	line-height: 1.1;
	font-weight: 800;
	margin: 0 0 16px !important;
	color: var(--smrt-text) !important;
	letter-spacing: -0.02em;
}
.smrt-login-brand__subtext {
	font-size: 17px;
	line-height: 1.6;
	color: var(--smrt-text-muted) !important;
	margin: 0;
}
/* Soft animated glow accent */
.smrt-login-brand__glow {
	position: absolute;
	width: 520px;
	height: 520px;
	right: -160px;
	top: 50%;
	transform: translateY(-50%);
	background: var(--smrt-gradient);
	filter: blur(120px);
	opacity: 0.28;
	border-radius: 50%;
	z-index: 1;
}

/* ---- Form side (right) --------------------------------------------------- */
body.smrt-login-screen #pmpro_login.pmpro_section {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 56px;
	margin: 0;
}
body.smrt-login-screen .pmpro_login_wrap.pmpro_card {
	width: 100%;
	max-width: 400px;
	background: transparent;
	border: none;
	border-radius: 0;
}
body.smrt-login-screen .pmpro_card_content {
	padding: 0;
}

/* Inline Login Messages (Errors, Alerts, Notices) */
body.smrt-login-screen .pmpro_message {
	background: transparent !important;
	border: none !important;
	box-shadow: none !important;
	border-radius: 0 !important;
	padding: 0 0 0 26px !important;
	margin: 6px 0 16px 0 !important;
	color: #f87171 !important;
	font-size: 14px !important;
	line-height: 1.5 !important;
	display: block !important;
	position: relative !important;
	width: 100% !important;
	max-width: 400px !important;
	word-break: normal !important;
	overflow-wrap: break-word !important;
	text-align: left !important;
	box-sizing: border-box !important;
}

/* Exclamation circle SVG icon */
body.smrt-login-screen .pmpro_message::before {
	content: "";
	display: block;
	position: absolute;
	left: 0;
	top: 2px;
	width: 18px;
	height: 18px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f87171' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'%3E%3C/circle%3E%3Cline x1='12' y1='8' x2='12' y2='12'%3E%3C/line%3E%3Cline x1='12' y1='16' x2='12.01' y2='16'%3E%3C/line%3E%3C/svg%3E") no-repeat center center / contain;
}

body.smrt-login-screen .pmpro_message strong {
	font-weight: 600;
	color: inherit;
}

body.smrt-login-screen .pmpro_message a {
	color: #ffffff !important;
	text-decoration: underline !important;
	text-underline-offset: 3px;
	transition: opacity 0.2s ease;
}

body.smrt-login-screen .pmpro_message a:hover {
	opacity: 0.8;
}

/* Success status (e.g. logged out) */
body.smrt-login-screen .pmpro_message.pmpro_success {
	color: #34d399 !important;
}
body.smrt-login-screen .pmpro_message.pmpro_success::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2334d399' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 11.08V12a10 10 0 1 1-5.93-9.14'%3E%3C/path%3E%3Cpolyline points='22 4 12 14.01 9 11.01'%3E%3C/polyline%3E%3C/svg%3E");
}

/* Alert status */
body.smrt-login-screen .pmpro_message.pmpro_alert {
	color: #fbbf24 !important;
}
body.smrt-login-screen .pmpro_message.pmpro_alert::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fbbf24' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'%3E%3C/circle%3E%3Cline x1='12' y1='16' x2='12' y2='12'%3E%3C/line%3E%3Cline x1='12' y1='8' x2='12.01' y2='8'%3E%3C/line%3E%3C/svg%3E");
}

/* Mobile-only logo above the form (hidden on desktop where the panel shows it) */
body.smrt-login-screen .pmpro_login_wrap.pmpro_card::before {
	content: "";
	display: none;
}

/* Form heading */
body.smrt-login-screen #loginform::before {
	content: "Sign in";
	display: block;
	font-size: 26px;
	font-weight: 700;
	color: var(--smrt-text);
	margin-bottom: 6px;
}
body.smrt-login-screen #loginform::after {
	/* spacing handled below */
}

/* Fields */
body.smrt-login-screen #loginform p {
	margin: 0 0 18px;
}
body.smrt-login-screen #loginform label {
	display: block;
	font-size: 14px;
	font-weight: 500;
	color: var(--smrt-text-muted);
	margin-bottom: 8px;
}
body.smrt-login-screen #loginform input[type="text"],
body.smrt-login-screen #loginform input[type="password"] {
	width: 100%;
	padding: 12px 14px;
	font-size: 15px;
}
body.smrt-login-screen #loginform .login-remember label {
	display: flex;
	align-items: center;
	gap: 8px;
	font-weight: 400;
	color: var(--smrt-text-muted);
	margin: 0;
}
body.smrt-login-screen #loginform .login-remember input {
	width: auto;
	margin: 0;
}
body.smrt-login-screen #loginform .login-submit {
	margin-bottom: 0 !important;
}
body.smrt-login-screen #loginform .login-submit input[type="submit"],
body.smrt-login-screen #pmpro-magic-login #pmpro-magic-login-button,
body.smrt-login-screen #pmpro-magic-login .pmpro_btn {
	background: #ffffff !important;
	background-image: none !important;
	color: #000000 !important;
	width: 100% !important;
	border: none !important;
	height: 50px !important;
	min-height: 50px !important;
	max-height: none !important;
	padding: 0 20px !important;
	border-radius: 8px !important;
	font-size: 15px !important;
	font-weight: 600 !important;
	cursor: pointer !important;
	transition: opacity 0.2s ease, transform 0.1s ease !important;
	box-shadow: none !important;
	opacity: 1 !important;
	filter: none !important;
	transform: none !important;
	text-shadow: none !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	text-align: center !important;
	line-height: normal !important;
	box-sizing: border-box !important;
}

body.smrt-login-screen #loginform .login-submit input[type="submit"]:hover,
body.smrt-login-screen #pmpro-magic-login #pmpro-magic-login-button:hover,
body.smrt-login-screen #pmpro-magic-login .pmpro_btn:hover {
	background: #ffffff !important;
	background-image: none !important;
	color: #000000 !important;
	opacity: 0.9 !important;
	filter: none !important;
	transform: none !important;
	box-shadow: none !important;
}

body.smrt-login-screen #loginform .login-submit input[type="submit"]:active,
body.smrt-login-screen #pmpro-magic-login #pmpro-magic-login-button:active,
body.smrt-login-screen #pmpro-magic-login .pmpro_btn:active {
	background: #ffffff !important;
	background-image: none !important;
	color: #000000 !important;
	opacity: 0.75 !important;
	transform: scale(0.99) !important;
	filter: none !important;
	box-shadow: none !important;
}

/* Subtle separator between login options */
body.smrt-login-screen .pmpro-login-or-separator {
	display: block !important;
	position: relative !important;
	margin: 20px 0 !important;
	width: 100% !important;
	height: 1px !important;
	background-color: rgba(255, 255, 255, 0.15) !important;
	border: none !important;
}
body.smrt-login-screen .pmpro-login-or-separator::before {
	display: none !important;
	content: none !important;
}
body.smrt-login-screen .pmpro-login-or-separator::after {
	display: none !important;
	content: none !important;
}

/* PMPro "show password" toggle: place inside the field, strip gradient.
   Anchor to the input row: the .login-password paragraph stacks label + input,
   so align the toggle to the input's vertical band (below the label). */
body.smrt-login-screen #loginform .login-password {
	position: relative;
}
body.smrt-login-screen .pmpro_form_field-password-toggle {
	position: absolute;
	right: 10px;
	top: 30px;                 /* clears the label; sits over the input */
	height: 46px;              /* match input height for centering */
	display: flex;
	align-items: center;
}
body.smrt-login-screen .pmpro_form_field-password-toggle .pmpro_btn {
	background: transparent !important;
	border: none !important;
	box-shadow: none !important;
	padding: 6px !important;
	color: var(--smrt-text-muted) !important;
	transform: none !important;
}
body.smrt-login-screen .pmpro_form_field-password-toggle .pmpro_btn:hover {
	color: var(--smrt-accent) !important;
	filter: none !important;
}
body.smrt-login-screen .pmpro_form_field-password-toggle .pmpro_icon svg {
	stroke: currentColor !important;
}
/* Hide the visible "Show Password" text label; keep the eye icon only */
body.smrt-login-screen .pmpro_form_field-password-toggle-state {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}
body.smrt-login-screen .pmpro_form_field-password-toggle .pmpro_icon-eye svg {
	stroke: currentColor !important;
	display: block;
}
/* leave room for the toggle so text never sits under it */
body.smrt-login-screen #loginform .login-password input[type="password"] {
	padding-right: 44px;
}

/* Lost password / nav actions */
body.smrt-login-screen .pmpro_card_actions,
body.smrt-login-screen .pmpro_actions_nav {
	background: transparent !important;
	border: none !important;
	padding: 20px 0 0 !important;
	text-align: center;
}
body.smrt-login-screen .pmpro_actions_nav a {
	color: var(--smrt-text-muted);
	font-size: 14px;
}
body.smrt-login-screen .pmpro_actions_nav a:hover {
	color: var(--smrt-accent);
}

/* ---- Responsive: stack to a single centered card ------------------------- */
@media (max-width: 860px) {
	body.smrt-login-screen #content.site-content {
		margin-left: 0;
	}
	.smrt-login-brand {
		position: static;
		width: auto;
		height: auto;
		flex: 0 0 auto;
		border-right: none;
		border-bottom: 1px solid var(--smrt-border);
		padding: 40px 28px;
		text-align: center;
	}
	.smrt-login-brand__inner {
		margin: 0 auto;
	}
	.smrt-login-brand__logo img {
		margin: 0 auto 20px;
	}
	.smrt-login-brand__headline {
		font-size: 28px !important;
	}
	.smrt-login-brand__subtext {
		font-size: 15px;
	}
	body.smrt-login-screen #pmpro_login.pmpro_section {
		min-height: 0;
		padding: 32px 24px 48px;
	}
}
