:root {
	--bolight-brand: #96233c;
	--bolight-primary: #285a7d;
	--bolight-primary-hover: #214a68;
	--bolight-primary-active: #183b56;
	--bolight-canvas: #ffffff;
	--bolight-ink: #1f2328;
	--bolight-text-secondary: #4b535b;
	--bolight-border: #d0d6dc;
	--bolight-hero: #183b56;
	--bolight-hero-muted: #a8c9e2;
}

.navbar-brand img,
.app-logo,
.website-logo {
	object-fit: contain;
}

html,
body,
button,
input,
select,
textarea {
	font-family: "Inter Variable", Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
}

body[data-path="login"] {
	position: fixed;
	inset: 0;
	width: 100%;
	height: 100%;
	min-width: 320px;
	margin: 0 !important;
	padding: 0 !important;
	overflow: hidden;
	overscroll-behavior: none;
	background: var(--bolight-canvas);
}

html:has(body[data-path="login"]) {
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	overflow: hidden;
}

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

body[data-path="login"] #page-login {
	position: fixed;
	inset: 0;
	width: 100vw;
	height: 100vh;
	height: 100dvh;
	margin: 0;
	padding: 0;
	overflow: hidden;
}

body[data-path="login"] .page-content-wrapper {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	overflow: hidden;
}

body[data-path="login"] main.bl-auth-layout {
	display: grid;
	grid-template-columns: 46% 54%;
	width: 100%;
	max-width: none;
	height: 100%;
	min-height: 0;
	max-height: 100dvh;
	margin: 0;
	padding: 0;
	background: var(--bolight-canvas);
	color: var(--bolight-ink);
}

.bl-auth-layout__hero {
	position: relative;
	display: flex;
	min-width: 0;
	overflow: hidden;
	flex-direction: column;
	padding: 48px 64px;
	background: var(--bolight-hero);
	color: #ffffff;
}

.bl-auth-layout__hero::before,
.bl-auth-layout__hero::after {
	position: absolute;
	border: 1px solid rgb(255 255 255 / 10%);
	border-radius: 50%;
	content: "";
	pointer-events: none;
}

.bl-auth-layout__hero::before {
	inset-block-start: 96px;
	inset-inline-end: -112px;
	width: 288px;
	height: 288px;
}

.bl-auth-layout__hero::after {
	inset-block-start: 160px;
	inset-inline-end: -48px;
	width: 176px;
	height: 176px;
}

.bl-auth-layout__hero-brand,
.bl-auth-layout__mobile-brand {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	gap: 16px;
}

.bl-auth-layout__symbol,
.bl-auth-layout__symbol img {
	display: block;
	width: 44px;
	height: 44px;
	flex: 0 0 44px;
	object-fit: contain;
}

.bl-auth-layout__hero-brand .bl-auth-layout__symbol img { filter: brightness(0) invert(1); }
.bl-auth-layout__brand-text,
.bl-auth-layout__brand-text strong { display: block; }

.bl-auth-layout__brand-text strong {
	font-size: 16px;
	font-weight: 600;
	line-height: 1.5;
}

.bl-auth-layout__hero-message {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 576px;
	margin-block: auto;
	padding-block: 48px;
}

.bl-auth-layout__hero-message h2 {
	max-width: 12em;
	margin: 0;
	color: #ffffff;
	font-size: clamp(42px, 3.3vw, 48px);
	font-weight: 600;
	line-height: 1.22;
	letter-spacing: -0.025em;
}

.bl-auth-layout__hero-message > p {
	max-width: 32em;
	margin: 24px 0 0;
	color: rgb(255 255 255 / 72%);
	font-size: 16px;
	line-height: 1.7;
}

.bl-auth-layout__capabilities {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	max-width: 512px;
	margin: 36px 0 0;
	padding-block: 20px;
	border-block: 1px solid rgb(255 255 255 / 15%);
}

.bl-auth-layout__capabilities > div {
	min-width: 0;
	padding-inline-start: 20px;
	border-inline-start: 1px solid rgb(255 255 255 / 15%);
}

.bl-auth-layout__capabilities > div:first-child {
	padding-inline-start: 0;
	border-inline-start: 0;
}

.bl-auth-layout__capabilities dt {
	color: rgb(255 255 255 / 68%);
	font-size: 12px;
	font-weight: 500;
	line-height: 1.5;
}

.bl-auth-layout__capabilities dd {
	margin: 4px 0 0;
	color: #ffffff;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.5;
	overflow-wrap: anywhere;
}

.bl-auth-layout__hero-footer {
	position: relative;
	z-index: 1;
	display: flex;
	flex-wrap: wrap;
	gap: 8px 16px;
	color: rgb(255 255 255 / 55%);
	font-size: 12px;
	line-height: 1.5;
}

.bl-auth-layout__hero-footer a { color: inherit; }

.bl-auth-layout__form-column {
	display: flex;
	min-width: 0;
	height: 100%;
	min-height: 0;
	overflow-x: hidden;
	overflow-y: auto;
	overscroll-behavior: contain;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 40px 20px;
	background: var(--bolight-canvas);
}

.bl-auth-layout__mobile-brand,
.bl-auth-layout__mobile-footer { display: none; }

.bl-auth-layout__panel {
	width: min(100%, 432px);
	padding: 40px;
	border: 1px solid var(--bolight-border);
	border-radius: 16px;
	background: var(--bolight-canvas);
	box-shadow: 0 12px 32px rgb(31 35 40 / 9%);
}

.bl-auth-layout__header {
	display: grid;
	gap: 8px;
}

.bl-auth-layout__product {
	color: var(--bolight-primary);
	font-size: 13px;
	font-weight: 600;
	line-height: 1.5;
	letter-spacing: 0.08em;
}

.bl-auth-layout h1 {
	margin: 12px 0 0;
	color: var(--bolight-ink);
	font-size: 24px;
	font-weight: 600;
	line-height: 1.35;
	letter-spacing: -0.015em;
}

.bl-auth-layout__header p {
	margin: 0;
	color: var(--bolight-text-secondary);
	font-size: 14px;
	line-height: 1.65;
}

.bl-auth-layout__content { margin-block-start: 28px; }

body[data-path="login"] .page_content,
body[data-path="login"] .page_content > div,
body[data-path="login"] .page-card {
	width: 100%;
	max-width: none;
	min-height: 0 !important;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
}

body[data-path="login"] .page-card-head,
body[data-path="login"] .for-login .page-card-body,
body[data-path="login"] .for-login .page-card-actions > .btn-login,
body[data-path="login"] .for-login .page-card-actions > .btn-login-with-email-link { display: none !important; }

body[data-path="login"] .page-card-body,
body[data-path="login"] .page-card-actions { padding: 0; }

body[data-path="login"] .social-logins,
body[data-path="login"] .social-login-buttons,
body[data-path="login"] .login-button-wrapper {
	width: 100%;
	margin: 0;
}

body[data-path="login"] .for-login .page-card .page-card-actions .social-logins .social-login-buttons { margin-top: 0; }
body[data-path="login"] .for-login .page-card .page-card-actions .social-logins .login-button-wrapper {
	min-width: 0;
	padding: 0;
	margin: 0;
}

body[data-path="login"] .social-login-buttons .btn-keycloak,
body[data-path="login"] .for-login .page-card .page-card-actions .btn-keycloak {
	display: inline-flex;
	min-height: 44px;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--bolight-primary);
	border-radius: 6px;
	background: var(--bolight-primary);
	color: #ffffff;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.5;
	text-decoration: none;
	box-shadow: none;
}

body[data-path="login"] .social-login-buttons .btn-keycloak:hover,
body[data-path="login"] .social-login-buttons .btn-keycloak:focus-visible,
body[data-path="login"] .for-login .page-card .page-card-actions .btn-keycloak:hover,
body[data-path="login"] .for-login .page-card .page-card-actions .btn-keycloak:focus-visible {
	border-color: var(--bolight-primary-hover);
	background: var(--bolight-primary-hover);
	color: #ffffff;
}

body[data-path="login"] .social-login-buttons .btn-keycloak:active {
	border-color: var(--bolight-primary-active);
	background: var(--bolight-primary-active);
}

body[data-path="login"] .social-login-buttons .btn-keycloak img {
	width: 18px !important;
	height: 18px !important;
	max-width: 18px;
	max-height: 18px;
	margin-inline-end: 8px;
	object-fit: contain;
	filter: brightness(0) invert(1);
}

.bl-auth-layout__help {
	margin-block-start: 28px;
	padding-block-start: 20px;
	border-block-start: 1px solid var(--bolight-border);
	color: var(--bolight-text-secondary);
	font-size: 12px;
	line-height: 1.6;
	overflow-wrap: anywhere;
}

.bl-auth-layout a,
.bl-auth-layout__help a {
	color: var(--bolight-primary);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.bl-regulatory-notice {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 8px 16px;
}

@media (max-width: 1199px) and (min-width: 992px) {
	.bl-auth-layout__hero { padding: 40px 48px; }
	.bl-auth-layout__hero-message h2 { font-size: 40px; }
}

@media (max-width: 991px) {
	body[data-path="login"] main.bl-auth-layout { display: block; }
	.bl-auth-layout__hero { display: none; }
	.bl-auth-layout__form-column {
		justify-content: flex-start;
		height: 100vh;
		height: 100dvh;
		padding: 32px 20px;
	}
	.bl-auth-layout__mobile-brand {
		display: flex;
		width: min(100%, 432px);
		margin-block-end: 28px;
	}
	.bl-auth-layout__mobile-brand .bl-auth-layout__brand-text strong {
		color: var(--bolight-ink);
		font-size: 14px;
	}
	.bl-auth-layout__mobile-footer {
		display: flex;
		width: min(100%, 432px);
		flex-wrap: wrap;
		justify-content: center;
		gap: 8px 16px;
		margin-block-start: 24px;
		color: var(--bolight-text-secondary);
		font-size: 12px;
		line-height: 1.5;
		text-align: center;
	}
}

@media (max-width: 599px) {
	.bl-auth-layout__form-column { padding: 28px 20px; }
	.bl-auth-layout__panel {
		padding: 28px;
		border-radius: 12px;
		box-shadow: none;
	}
}
