/* Kijengo branded login. Loaded on website pages via web_include_css. */
body[data-path="login"] {
	background: #e7e6e1;
}

body[data-path="login"] .page-content-wrapper {
	padding-top: 0;
	min-height: 100svh;
	display: flex;
	align-items: center;
}

body[data-path="login"] main.container {
	max-width: 1160px;
	width: 100%;
	padding: 32px 24px;
}

/* The split card */
.kj-shell {
	display: grid;
	grid-template-columns: 1.05fr 1fr;
	min-height: 640px;
	background: #ffffff;
	border-radius: 28px;
	overflow: hidden;
	box-shadow: 0 30px 80px -30px rgba(18, 18, 18, 0.35);
}

/* Left: brand and product */
.kj-hero {
	position: relative;
	background: #121212;
	color: #f5f4f0;
	padding: 44px 48px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	overflow: hidden;
	font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
}

.kj-hero::before {
	content: "";
	position: absolute;
	width: 520px;
	height: 520px;
	right: -180px;
	top: -160px;
	border-radius: 50%;
	border: 1px solid rgba(245, 244, 240, 0.08);
	box-shadow: 0 0 0 70px rgba(245, 244, 240, 0.02);
}

.kj-brand {
	display: flex;
	align-items: center;
	gap: 12px;
	font-weight: 400;
	font-size: 18px;
	letter-spacing: 0.18em;
}

.kj-brand img {
	width: 34px;
	height: 34px;
}

.kj-hero h1 {
	font-size: 44px;
	line-height: 1.08;
	letter-spacing: -0.03em;
	font-weight: 400;
	margin: 0 0 14px;
	color: #f5f4f0;
}

.kj-hero h1 span {
	color: #ff3333;
}

.kj-hero p.kj-lede {
	font-size: 16px;
	line-height: 1.55;
	color: #a9a8a3;
	margin: 0;
	max-width: 36ch;
}

/* Product photo: Kijengo on a phone, anchored to the bottom-left corner */
.kj-hero-text {
	position: relative;
	z-index: 1;
	margin-top: 40px;
}

.kj-photo {
	position: absolute;
	left: 0;
	bottom: 0;
	height: 50%;
	width: auto;
	pointer-events: none;
	user-select: none;
}

.kj-foot {
	position: relative;
	z-index: 1;
	align-self: flex-end;
	margin-top: auto;
	font-size: 12px;
	color: #77766f;
}

/* Right: the sign-in form */
.kj-side {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 48px;
}

.kj-side .page-card {
	border: 0 !important;
	box-shadow: none !important;
	background: transparent !important;
	padding: 0 !important;
	max-width: 380px !important;
	min-height: 0 !important;
}

body[data-path="login"] .page-card-head img.app-logo {
	display: none;
}

body[data-path="login"] .page-card-head h4 {
	font-size: 30px;
	font-weight: 400;
	letter-spacing: -0.03em;
	color: #121212;
}

body[data-path="login"] .form-control {
	height: 46px;
	border-radius: 12px;
	padding-left: 40px;
}

body[data-path="login"] .field-icon {
	top: 15px;
}

body[data-path="login"] .btn-login:not(.btn-login-option) {
	height: 46px;
	border-radius: 12px;
	background: #121212;
	border-color: #121212;
	color: #f5f4f0;
	font-weight: 600;
}

body[data-path="login"] .btn-login:not(.btn-login-option):hover {
	background: #ff3333;
	border-color: #ff3333;
}

body[data-path="login"] .btn-login-option {
	height: 42px;
	border-radius: 12px;
	line-height: 30px;
}

body[data-path="login"] .forgot-password-message a {
	color: #ff3333;
}

/* Tablets and phones: stack, keep the brand band, drop the preview */
@media (max-width: 900px) {
	body[data-path="login"] main.container {
		padding: 0;
	}

	.kj-shell {
		grid-template-columns: 1fr;
		border-radius: 0;
		min-height: 100svh;
		box-shadow: none;
	}

	.kj-hero {
		padding: 28px 24px 32px;
	}

	.kj-hero h1 {
		font-size: 28px;
		margin-top: 22px;
	}

	.kj-photo,
	.kj-foot,
	.kj-hero p.kj-lede {
		display: none;
	}

	.kj-side {
		padding: 32px 24px 48px;
		align-items: flex-start;
	}

	.kj-side .page-card {
		max-width: 100% !important;
	}

	body[data-path="login"] .page-card-head h4 {
		font-size: 24px;
	}
}

/* ---- Kijengo cover on sign in (18 Nov 2026) --------------------------------
   From Continue until the desk is up: the same emblem cover the desk starts
   with, instead of a blank page while the server signs you in. */
.kj-signing-in::after {
	content: "";
	position: fixed;
	inset: 0;
	z-index: 2147483000;
	background: #121212 url("/assets/kijengo/images/kijengo-emblem-white.svg") center / 64px no-repeat;
	animation: kj-cover-in 0.15s ease-out;
}
@keyframes kj-cover-in { from { opacity: 0; } to { opacity: 1; } }

/* The stock sign-in card showed for a moment before the Kijengo design wrapped
   it (18 Nov 2026). Hidden until kijengo_web.js has dressed it; shown anyway
   after 1.5 seconds, so sign in never disappears if the script fails. */
body[data-path="login"]:not(.kj-branded) main {
	opacity: 0;
	animation: kj-reveal 0s linear 1.5s forwards;
}
@keyframes kj-reveal { to { opacity: 1; } }
