/* =============================================
   CLIENT LOGIN PAGE — page 57 redesign
   Two-column: value prop (left) + form (right)
   ============================================= */

/* Outer wrapper */
.bsa-login-page {
	padding: 0 !important;
	min-height: 85vh;
	background: #F4F5F7 !important;
	display: flex;
	flex-direction: column;
	justify-content: center;
	position: relative;
	overflow: hidden;
}

/* Fills the space between header and footer; content centred on tall screens */
body.bsa-page-client-login .bsa-login-page {
	min-height: 0;
	box-sizing: border-box;
	flex: 1 0 auto;
}

/* Subtle diagonal accent strip behind the left column */
.bsa-login-page::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 50%;
	height: 100%;
	background: linear-gradient(135deg, rgba(15,31,56,0.04) 0%, transparent 70%);
	pointer-events: none;
}

/* Apply the same alignwide constraint as other bsa-* sections */
.bsa-login-page > .wp-block-group.alignwide {
	max-width: 1280px;
	width: 100%;
	margin-left: auto;
	margin-right: auto;
	padding: 5rem clamp(1rem, 3vw, 2rem);
	box-sizing: border-box;
}

/* Equal-height columns */
.bsa-login-inner .wp-block-columns {
	align-items: stretch !important;
}

.bsa-login-inner .wp-block-column {
	display: flex !important;
	flex-direction: column !important;
}

/* ── Left column — value proposition ── */
.bsa-login-inner .wp-block-column:first-child {
	justify-content: center;
	padding-right: 2rem;
}

/* Benefit list */
.bsa-login-benefits-list {
	list-style: none !important;
	padding: 0 !important;
	margin: 1.75rem 0 0 !important;
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.bsa-login-benefits-list li {
	position: relative;
	padding-left: 1.4rem;
	font-size: var(--bsa-type-body);
	color: #3A5068;
	line-height: 1.65;
}

.bsa-login-benefits-list li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0.58em;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #2C5F8A;
}

/* ── Right column — card ── */
.bsa-login-card {
	max-width: none !important;
	background: #FFFFFF !important;
	border-top: 3px solid #2C5F8A !important;
	border-radius: var(--bsa-radius, 10px);
	padding: 2.75rem 2.5rem 2rem !important;
	box-shadow: 0 8px 40px rgba(15,31,56,0.12) !important;
	flex: 1;
	display: flex;
	flex-direction: column;
}

/* Form field labels */
.bsa-login-card .login label {
	font-size: var(--bsa-type-small);
	font-weight: 700;
	color: #0F1F38;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	display: block;
	margin-bottom: 0.45rem;
}

/* Form inputs */
.bsa-login-card .login input[type="text"],
.bsa-login-card .login input[type="password"] {
	width: 100%;
	border: 1px solid #D4E4F0;
	border-radius: var(--bsa-radius, 10px);
	padding: 0.7rem 0.9rem;
	font-size: var(--bsa-type-body);
	color: #0F1F38;
	background: #FAFCFE;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
	box-sizing: border-box;
}

.bsa-login-card .login input[type="text"]:focus,
.bsa-login-card .login input[type="password"]:focus {
	outline: none;
	border-color: #2C5F8A;
	box-shadow: 0 0 0 3px rgba(44,95,138,0.12);
}

.bsa-login-card .login p {
	margin-bottom: 1.25rem !important;
}

/* Submit button */
.bsa-login-card .login input[type="submit"] {
	width: 100%;
	background: #0F1F38;
	color: #FFFFFF;
	border: none;
	padding: 0.85rem 1.5rem;
	font-family: 'PT Serif', Georgia, 'Times New Roman', serif;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	border-radius: var(--bsa-radius, 10px);
	transition: background 0.15s ease;
	margin-top: 0.5rem;
}

.bsa-login-card .login input[type="submit"]:hover {
	background: #2C5F8A;
}

/* Remember me: an option, not a field label — normal case, regular weight */
.bsa-login-card .login .forgetmenot {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-size: var(--bsa-type-small);
	color: #6B7C8D;
}

.bsa-login-card .login .forgetmenot label {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	margin: 0;
	font-size: var(--bsa-type-small);
	font-weight: 400;
	letter-spacing: 0;
	text-transform: none;
	color: #3A5068;
	cursor: pointer;
}

/* Error notice */
.bsa-form-error p {
	font-size: var(--bsa-type-small);
	color: #c0392b;
	margin: 0 0 1rem;
}

/* Signed-out notice (?loggedout=1 / ?loggedout=timeout) */
.bsa-form-success p {
	font-size: var(--bsa-type-small);
	color: #1a6e2e;
	margin: 0;
}

/* Footnote */
.bsa-login-footnote {
	margin-top: auto !important;
	padding-top: 1.5rem !important;
	font-size: var(--bsa-type-small) !important;
}

/* ── Page-load fade-up animation ── */

/* ── Laptop-height viewports (up to 1000px, e.g. a MacBook Air at 1440×900) —
   a little less padding, still clear of the header's 56px shadow and off
   the footer ── */
@media (max-height: 1000px) {
	.bsa-login-page > .wp-block-group.alignwide {
		padding-top: 4.5rem;
		padding-bottom: 4rem;
	}

	.bsa-login-card {
		padding: 2rem 2rem 1.5rem !important;
	}
}

@media (max-height: 680px) {
	.bsa-login-page > .wp-block-group.alignwide {
		padding-top: 3.5rem;
		padding-bottom: 3rem;
	}
}

/* ── Mobile: stack columns ── */
@media (max-width: 768px) {
	html:has(body.bsa-page-client-login),
	body.bsa-page-client-login,
	body.bsa-page-client-login .wp-site-blocks,
	body.bsa-page-client-login .wp-site-blocks > main,
	body.bsa-page-client-login main > .wp-block-post-content {
		height: auto !important;
		min-height: 0 !important;
		overflow: visible !important;
	}

	body.bsa-page-client-login .wp-site-blocks > main,
	body.bsa-page-client-login main > .wp-block-post-content {
		display: block !important;
	}

	body.bsa-page-client-login .bsa-login-page {
		height: auto !important;
		min-height: 85vh;
		flex: none;
	}

	.bsa-login-inner .wp-block-column:first-child {
		padding-right: 0;
	}
	.bsa-login-card {
		padding: 2rem 1.5rem !important;
	}
}

/* "Forgot your password?" link under the Log In button */
.bsa-login-card .login .bsa-forgot-password {
	margin: 0.25rem 0 0 !important;
	text-align: center;
	font-size: var(--bsa-type-small);
}

.bsa-login-card .login .bsa-forgot-password a {
	color: #2C5F8A;
	text-decoration: none;
}

.bsa-login-card .login .bsa-forgot-password a:hover {
	color: #0F1F38;
	text-decoration: underline;
}
