/* ACM - the sign-in page.  LOCKED (owner's instruction, 28 Nov 2026).
   ------------------------------------------------------------------------
   Everything on https://erp.antares.co.zm/login that this app styles:
   the menu bar (logo in white, link hover, phone menu button), the sign-in
   panel and card, and v16's login button. sign_in_lock.json holds this
   file's fingerprint; the app-src git hook refuses a commit that changes it
   without updating that file in the same commit, which needs the owner's
   approval. Portal pages are styled in acm_portal.css, never here.
   ------------------------------------------------------------------------ */
:root {
	--acm-ink: #1b1030;
	--acm-brand: #3d106a;
	--acm-brand-2: #6a2fa3;
	--acm-night: #1a0633;
	--acm-mist: #f6f3fb;
	--acm-line: #e6e0ef;
	--acm-muted: #6b5d80;
	--acm-gold: #f2b23a;
}

/* ---------- menu bar: the logo in white, links with a gold hover ---------- */
.navbar .navbar-brand img {
	filter: brightness(0) invert(1);
	max-height: 30px;
}
.navbar .navbar-nav .nav-link {
	font-weight: 500;
	border-radius: 8px;
	transition: background .15s, color .15s;
}
.navbar .navbar-nav > .nav-item > .nav-link:hover {
	background: rgba(255, 255, 255, .1);
	color: var(--acm-gold) !important;
}

/* the phone menu button on the dark bar */
.navbar .navbar-toggler {
	border-color: rgba(255, 255, 255, .35);
}
.navbar .navbar-toggler-icon {
	filter: brightness(0) invert(1);
}

/* ---------- the sign-in page ---------- */
body.acm-signin {
	background: var(--acm-mist);
}
body.acm-signin .page-content-wrapper main.container {
	max-width: 1080px;
	margin-top: 36px !important;
	margin-bottom: 44px !important;
}
.acm-login-shell {
	display: grid;
	grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
	background: #fff;
	border-radius: 22px;
	overflow: hidden;
	box-shadow: 0 30px 70px -34px rgba(26, 6, 51, .5), 0 0 0 1px rgba(61, 16, 106, .06);
}
.acm-login-shell > section {
	grid-column: 2;
	align-self: center;
	padding: 40px 44px 34px;
}
.acm-login-shell > .acm-hero {
	grid-column: 1;
	grid-row: 1 / span 20;
}
/* the card sits inside the shell: no second frame */
.acm-login-shell .login-content.page-card {
	box-shadow: none !important;
	border: 0 !important;
	padding: 0 !important;
	margin: 0 !important;
	max-width: none !important;
	background: transparent;
}
.acm-login-shell .page-card-head {
	text-align: left;
	padding: 0 !important;
	margin-bottom: 22px !important;
}
.acm-login-shell .page-card-head .app-logo,
.acm-login-shell .page-card-head img {
	display: none;
}
.acm-login-shell .for-signup .page-card-head h4,
.acm-login-shell .for-forgot .page-card-head h4,
.acm-login-shell .for-login-with-email-link .page-card-head h4 {
	color: var(--acm-ink);
	font-size: 24px;
	font-weight: 750;
	letter-spacing: -.02em;
}
.acm-card-title h2 {
	margin: 0;
	color: var(--acm-ink);
	font-size: 27px;
	font-weight: 780;
	letter-spacing: -.025em;
}
.acm-card-title p {
	margin: 6px 0 0;
	color: var(--acm-muted);
	font-size: 14px;
}
.acm-login-shell .form-control {
	height: 44px;
	border-radius: 11px !important;
	background: #fbfaff;
	border: 1px solid var(--acm-line) !important;
	font-size: 14px;
}
.acm-login-shell .form-control:focus {
	background: #fff;
	border-color: var(--acm-brand) !important;
	box-shadow: 0 0 0 4px rgba(61, 16, 106, .12) !important;
}
.acm-login-shell .btn-primary,
.acm-login-shell .btn-login {
	height: 44px;
	border-radius: 11px;
	background: var(--acm-brand);
	border-color: var(--acm-brand);
	font-weight: 650;
	font-size: 15px;
}
.acm-login-shell .btn-primary:hover,
.acm-login-shell .btn-login:hover {
	background: var(--acm-night);
	border-color: var(--acm-night);
}
.acm-login-shell .btn-default,
.acm-login-shell .btn-login-option {
	border-radius: 11px;
	background: var(--acm-mist);
	border: 1px solid var(--acm-line);
	color: var(--acm-ink);
	font-weight: 550;
}
.acm-login-shell a {
	color: var(--acm-brand);
	font-weight: 550;
}
.acm-login-shell .sign-up-message {
	margin-top: 18px;
	color: var(--acm-muted);
}

/* the brand panel */
.acm-hero {
	position: relative;
	overflow: hidden;
	min-height: 560px;
	color: #fff;
	background:
		radial-gradient(120% 80% at 0% 0%, rgba(106, 47, 163, .55) 0%, transparent 55%),
		linear-gradient(155deg, var(--acm-night) 0%, var(--acm-brand) 58%, #4e1f82 100%);
}
.acm-hero-in {
	position: relative;
	z-index: 2;
	padding: 44px 46px 40px;
}
.acm-hero-logo {
	height: 34px;
	width: auto;
	filter: brightness(0) invert(1);
	margin-bottom: 42px;
}
.acm-eyebrow {
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 11.5px;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--acm-gold);
	margin-bottom: 14px;
}
.acm-hero .acm-headline {
	margin: 0 0 14px;
	color: #fff;
	font-size: 34px;
	line-height: 1.12;
	font-weight: 800;
	letter-spacing: -.03em;
}
.acm-headline em {
	font-style: normal;
	color: var(--acm-gold);
}
.acm-sub {
	margin: 0 0 30px;
	max-width: 44ch;
	color: rgba(255, 255, 255, .8);
	font-size: 15px;
	line-height: 1.55;
}
.acm-features {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 18px 22px;
}
.acm-features li {
	display: flex;
	gap: 12px;
	align-items: flex-start;
}
.acm-ico {
	flex: 0 0 34px;
	height: 34px;
	display: grid;
	place-items: center;
	border-radius: 10px;
	background: rgba(255, 255, 255, .09);
	border: 1px solid rgba(255, 255, 255, .16);
	color: var(--acm-gold);
}
.acm-features b {
	display: block;
	font-size: 14px;
	font-weight: 650;
	color: #fff;
}
.acm-features small {
	display: block;
	margin-top: 2px;
	font-size: 12.5px;
	line-height: 1.4;
	color: rgba(255, 255, 255, .66);
}
.acm-strip {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 2;
	display: flex;
	height: 5px;
}
.acm-strip i {
	flex: 1;
}
.acm-strip i:nth-child(1) { background: #3e8ede; }
.acm-strip i:nth-child(2) { background: #e8772e; }
.acm-strip i:nth-child(3) { background: #12866b; }
.acm-strip i:nth-child(4) { background: #f2b23a; }
.acm-strip i:nth-child(5) { background: #d9483b; }
.acm-strip i:nth-child(6) { background: #6b3f9c; }

/* the drifting words behind the panel */
.acm-words {
	position: absolute;
	inset: -10% -20%;
	z-index: 1;
	display: flex;
	flex-direction: column;
	justify-content: space-around;
	transform: rotate(-8deg);
	pointer-events: none;
	opacity: .55;
}
.acm-words-row {
	display: flex;
	gap: 34px;
	white-space: nowrap;
	animation: acm-drift 70s linear infinite;
}
.acm-words-row.rev {
	animation-direction: reverse;
	animation-duration: 90s;
}
.acm-words-row span {
	font-size: 46px;
	font-weight: 800;
	letter-spacing: -.03em;
	color: rgba(255, 255, 255, .055);
}
.acm-words-row span.o {
	color: transparent;
	-webkit-text-stroke: 1px rgba(255, 255, 255, .12);
}
@keyframes acm-drift {
	from { transform: translateX(0); }
	to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
	.acm-words-row { animation: none; }
}

/* narrow screens: the panel becomes a band above the card */
@media (max-width: 900px) {
	body.acm-signin .page-content-wrapper main.container {
		margin-top: 16px !important;
		padding: 0 12px;
	}
	.acm-login-shell {
		grid-template-columns: minmax(0, 1fr);
		border-radius: 18px;
	}
	.acm-login-shell > .acm-hero,
	.acm-login-shell > section {
		grid-column: 1;
	}
	.acm-login-shell > .acm-hero {
		grid-row: auto;
		min-height: 0;
	}
	.acm-hero-in {
		padding: 26px 24px 28px;
	}
	.acm-hero-logo {
		height: 26px;
		margin-bottom: 20px;
	}
	.acm-headline {
		font-size: 25px;
	}
	.acm-sub {
		margin-bottom: 0;
		font-size: 14px;
	}
	.acm-features {
		display: none;
	}
	.acm-login-shell > section {
		padding: 28px 24px 26px;
	}
}


/* The company colour on v16's login button.
   ------------------------------------------------------------------------
   v16 rebuilt the login page on .es-button, whose solid variant colours
   itself from design tokens rather than from .btn-primary. Those tokens
   ship near-black, so the button on the first page anyone sees came out
   black instead of the company purple.

   The tokens are set on the button's own selector, not on :root. They
   do not inherit: with the value on :root every ancestor of the button
   picked it up and the button itself still computed #171717, falling
   back to its own initial value. Nothing was overriding it - it simply
   never arrived.

   `.es-button[data-variant="solid"]` matches the theme's own selector
   for specificity, and this file loads after the theme, so it wins the
   tie. Setting the tokens rather than background-color also carries the
   hover and active states, which a background override would have left
   grey. The stock ramp lightens on hover and again on active, so this
   one does the same.

   None of this exists on v15, so the block is inert there.
   ------------------------------------------------------------------------ */

.es-button[data-variant="solid"] {
    --bt-solid-bg: #3D106A;
    --bt-solid-bg-hover: #4E1788;
    --bt-solid-bg-active: #5F1EA3;
}

