﻿/* Red login button states must remain opaque and readable in every interaction state. */
.bpl-submit.bpl-submit:hover,
.bpl-submit.bpl-submit:focus-visible {
	background: var(--red-hover);
	color: #fff;
	box-shadow: 0 0 0 3px var(--red-glow-soft), 0 4px 14px var(--red-glow);
	filter: none;
	opacity: 1;
	transform: none;
}

.bpl-submit.bpl-submit:active {
	background: var(--red);
	color: #fff;
	box-shadow: 0 0 0 2px var(--red-glow-soft), 0 2px 8px var(--red-glow);
	transform: translateY(0);
}

.bpl-submit.bpl-submit:focus-visible {
	outline: 2px solid var(--red);
	outline-offset: 2px;
}

.bpl-submit.bpl-submit:disabled {
	background: #e5a3a9;
	color: #fff;
	box-shadow: none;
	cursor: not-allowed;
	opacity: 1;
}

html {
	overflow-x: hidden;
}

body.bpl-login {
	--form-area-width: 48%;
	--branding-area-width: 52%;
	min-height: 100vh;
	min-height: 100svh;
	margin: 0;
	overflow-x: hidden;
	background: #f5f6f8;
	color: var(--bpl-text);
}

.bpl-login-backdrop {
	position: fixed;
	inset: 0;
	z-index: 0;
	background: #f5f6f8;
	background-image: var(--login-background-image);
	background-position: left center;
	background-repeat: no-repeat;
	background-size: cover;
	pointer-events: none;
}

.bpl-login-shell {
	position: relative;
	z-index: 1;
	min-height: 100vh;
	min-height: 100svh;
}

.bpl-form-panel {
	position: absolute;
	top: 0;
	left: var(--branding-area-width);
	bottom: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: var(--form-area-width);
	right: auto;
	min-height: 100vh;
	min-height: 100svh;
	padding: 24px;
}

.bpl-form-wrap {
	position: relative;
	z-index: 2;
	width: 100%;
	max-width: 500px;
	margin: 0;
	padding: 32px;
	border-radius: 20px;
	background: rgba(255, 255, 255, .92);
	box-shadow: 0 18px 48px rgba(9, 13, 18, .18);
	transform: translateY(-2vh);
}

.bpl-form-wrap h1 {
	margin: 0;
	font-size: 44px;
	line-height: 1.1;
	font-weight: 800;
	letter-spacing: -1px;
}

.bpl-form-wrap h1 .accent {
	color: var(--bpl-red);
}

.bpl-subtitle {
	margin: 12px 0 36px;
	color: var(--bpl-text-muted);
	font-size: 16px;
}

.bpl-flashes {
	display: grid;
	gap: 10px;
	margin: -16px 0 18px;
}

.bpl-alert {
	padding: 12px 14px;
	border-left: 3px solid var(--bpl-red);
	border-radius: 10px;
	background: #FDECEE;
	color: var(--bpl-red);
	font-size: 14px;
}

.bpl-alert.success {
	border-color: #26834b;
	background: #e9f7ef;
	color: #17663a;
}

.bpl-visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.bpl-field {
	position: relative;
	margin-bottom: 16px;
}

.bpl-field-icon {
	position: absolute;
	left: 19px;
	top: 50%;
	transform: translateY(-50%);
	width: 18px;
	height: 18px;
	opacity: 0.9;
}

.bpl-field input[type=text],
.bpl-field input[type=password] {
	width: 100%;
	height: 60px;
	border: 1.5px solid var(--bpl-border);
	border-radius: var(--bpl-radius-input);
	background: var(--bpl-input-bg);
	padding: 0 56px 0 58px;
	color: var(--bpl-text);
	font: 400 16px Poppins, 'Segoe UI', sans-serif;
	transition: 160ms ease;
}

.bpl-field input::placeholder {
	color: var(--bpl-placeholder);
}

.bpl-field input:focus {
	outline: 0;
	border-color: var(--bpl-border-focus);
	box-shadow: 0 0 0 4px rgba(224,27,36,.1);
}

.bpl-toggle {
	position: absolute;
	right: 16px;
	top: 14px;
	width: 32px;
	height: 32px;
	border: 0;
	background: transparent;
	color: var(--bpl-charcoal);
	font-size: 20px;
	cursor: pointer;
}

.bpl-toggle:focus-visible {
	outline: 3px solid rgba(224,27,36,.3);
	border-radius: 6px;
}

.bpl-options {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin: 20px 0 32px;
	font-size: 14px;
	gap: 12px;
}

.bpl-check {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	font-weight: 500;
	cursor: pointer;
	position: relative;
}

.bpl-check input {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: .01;
}

.bpl-check-box {
	display: grid;
	place-items: center;
	width: 22px;
	height: 22px;
	border: 1.5px solid var(--bpl-border);
	border-radius: 5px;
	background: #fff;
	color: #fff;
	font-size: 15px;
}

.bpl-check input:checked + .bpl-check-box {
	border-color: var(--bpl-red);
	background: var(--bpl-red);
}

.bpl-check input:checked + .bpl-check-box:after {
	content: '✓';
}

.bpl-check input:focus-visible + .bpl-check-box {
	box-shadow: 0 0 0 4px rgba(224,27,36,.18);
}

.bpl-forgot {
	color: var(--bpl-red-dark);
	font-weight: 600;
	text-decoration: none;
}

.bpl-forgot:hover {
	text-decoration: underline;
}

.bpl-submit {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	width: 100%;
	height: 64px;
	border: 0;
	border-radius: var(--bpl-radius-btn);
	background: var(--bpl-red);
	box-shadow: var(--bpl-shadow-btn);
	color: #fff;
	font: 700 17px Poppins, 'Segoe UI', sans-serif;
	cursor: pointer;
	transition: 160ms ease;
}

.bpl-submit:hover {
	background: var(--bpl-red-dark);
	transform: translateY(-1px);
	box-shadow: 0 8px 22px rgba(224,27,36,.34);
}

.bpl-submit:active {
	background: var(--bpl-red-darker);
	transform: translateY(0);
}

.bpl-submit:disabled {
	cursor: wait;
	opacity: .85;
}

.login-arrow {
	font-size: 24px;
	line-height: 1;
}

.bpl-submit.is-loading .login-arrow {
	width: 18px;
	height: 18px;
	border: 2px solid rgba(255,255,255,.5);
	border-top-color: #fff;
	border-radius: 50%;
	animation: bpl-spin .7s linear infinite;
}

@keyframes bpl-spin {
	to {
		transform: rotate(360deg);
	}
}

@media (min-width: 576px) and (max-width: 991px) {
	body.bpl-login {
		--form-area-width: 100%;
		--branding-area-width: 0%;
	}

	.bpl-form-panel {
		left: 0;
		padding: 24px;
	}

	.bpl-form-wrap {
		max-width: 460px;
		padding: 28px;
	}
}

@media (min-width: 992px) and (max-width: 1399px) {
	body.bpl-login {
		--form-area-width: 50%;
		--branding-area-width: 50%;
	}

	.bpl-form-panel {
		padding: 20px;
	}

	.bpl-form-wrap {
		max-width: 440px;
	}
}

@media (max-width: 575px) {
	body.bpl-login {
		--form-area-width: 100%;
		--branding-area-width: 0%;
	}

	.bpl-login-backdrop {
		position: relative;
		inset: auto;
		width: 100%;
		height: min(35vh, 300px);
		min-height: 160px;
		background-position: left center;
	}

	.bpl-login-shell {
		display: block;
		min-height: 0;
		padding: 0 16px 24px;
	}

	.bpl-form-panel {
		position: relative;
		top: auto;
		right: auto;
		bottom: auto;
		left: auto;
		display: block;
		width: 100%;
		min-height: 0;
		padding: 0;
	}

	.bpl-form-wrap {
		width: 100%;
		max-width: none;
		margin: 0 auto;
		padding: 24px;
		border-radius: 20px;
		transform: none;
	}

	.bpl-form-wrap h1 {
		font-size: clamp(28px, 8vw, 40px);
	}

	.bpl-field input[type=text],
	.bpl-field input[type=password] {
		height: 52px;
		font-size: 16px;
	}

	.bpl-submit {
		height: 52px;
	}

	.bpl-toggle {
		width: 44px;
		height: 44px;
		top: 4px;
	}

	.bpl-options {
		flex-wrap: wrap;
	}
}

@media (max-height: 520px) and (min-width: 576px) {
	.bpl-form-wrap {
		padding: 20px;
	}

	.bpl-form-wrap h1 {
		font-size: 32px;
	}

	.bpl-field {
		margin-bottom: 12px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.bpl-submit, .bpl-field input {
		transition: none;
	}
	.bpl-submit:hover {
		transform: none;
	}
	.bpl-submit.is-loading .login-arrow {
		animation: none;
	}
}

@font-face {
	font-family: Poppins;
	src: url('../fonts/poppins/Poppins-Regular.ttf') format('truetype');
	font-style: normal;
	font-weight: 400;
	font-display: swap;
}
@font-face {
	font-family: Poppins;
	src: url('../fonts/poppins/Poppins-Medium.ttf') format('truetype');
	font-style: normal;
	font-weight: 500;
	font-display: swap;
}
@font-face {
	font-family: Poppins;
	src: url('../fonts/poppins/Poppins-SemiBold.ttf') format('truetype');
	font-style: normal;
	font-weight: 600;
	font-display: swap;
}
@font-face {
	font-family: Poppins;
	src: url('../fonts/poppins/Poppins-Bold.ttf') format('truetype');
	font-style: normal;
	font-weight: 700;
	font-display: swap;
}
@font-face {
	font-family: Poppins;
	src: url('../fonts/poppins/Poppins-ExtraBold.ttf') format('truetype');
	font-style: normal;
	font-weight: 800;
	font-display: swap;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; font-family: Poppins, 'Segoe UI', system-ui, sans-serif; }
