/* ===========================================================================
   /erp_login — Apjakal vendor landing page
   Loads on top of apjakal_internal_theme.css (tokens are inherited).
   This page is force-dark regardless of user theme — it's marketing surface.
   =========================================================================== */

.erp-landing {
	/* force dark palette on the landing surface */
	--bg-base:        #0A0A0F;
	--bg-surface:     #13131A;
	--bg-elevated:    #1C1C26;
	--bg-input:       #1F1F2A;
	--text-hi:        #F4F4F5;
	--text-md:        #A1A1AA;
	--text-lo:        #71717A;
	--border:         #27272A;
	--border-strong:  #3F3F46;

	background: var(--bg-base);
	color: var(--text-hi);
	min-height: 100vh;
	font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	line-height: 1.6;
	overflow-x: hidden;
}

.erp-landing * {
	box-sizing: border-box;
}

.erp-landing img {
	max-width: 100%;
}
.erp-nav-brand img {
	height: 40px !important;
	width: auto !important;
	display: block;
}
.erp-footer img {
	height: 32px !important;
	width: auto !important;
}

/* Hide any inherited Frappe website chrome */
.erp-landing ~ * .navbar,
body:has(.erp-landing) > .navbar,
body:has(.erp-landing) > footer.web-footer,
body:has(.erp-landing) > .web-footer {
	display: none !important;
}

/* =========================================================================
   NAVBAR
   ========================================================================= */
.erp-nav {
	position: fixed;
	top: 0; left: 0; right: 0;
	z-index: 100;
	padding: 18px 0;
	background: transparent;
	transition: background 0.3s ease, backdrop-filter 0.3s ease, padding 0.3s ease;
}
.erp-nav.scrolled {
	background: rgba(10, 10, 15, 0.85);
	backdrop-filter: blur(16px) saturate(160%);
	-webkit-backdrop-filter: blur(16px) saturate(160%);
	border-bottom: 1px solid var(--border);
	padding: 12px 0;
}
.erp-nav-inner {
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 32px;
	display: flex;
	align-items: center;
	gap: 32px;
}
.erp-nav-brand {
	display: flex;
	align-items: center;
	flex-shrink: 0;
}
.erp-nav-brand img {
	display: block;
}
.erp-nav-links {
	display: flex;
	align-items: center;
	gap: 28px;
	margin-left: auto;
}
.erp-nav-links a {
	color: var(--text-md);
	font-size: 14px;
	font-weight: 500;
	text-decoration: none;
	transition: color 0.15s ease;
}
.erp-nav-links a:hover {
	color: var(--text-hi);
}
.erp-nav-cta {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 10px 18px;
	border-radius: var(--radius-pill);
	background: var(--primary);
	color: var(--text-on-primary);
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
	box-shadow: 0 4px 14px rgba(244, 48, 36, 0.25);
}
.erp-nav-cta:hover {
	background: var(--primary-hover);
	color: var(--text-on-primary);
	transform: translateY(-1px);
	box-shadow: 0 6px 20px rgba(244, 48, 36, 0.35);
}
.erp-nav-cta i {
	width: 16px; height: 16px;
}

/* =========================================================================
   HERO
   ========================================================================= */
.erp-hero {
	position: relative;
	padding: 160px 32px 100px;
	overflow: hidden;
}
.erp-hero-bg {
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
}
.erp-hero-grid {
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(rgba(244, 48, 36, 0.04) 1px, transparent 1px),
		linear-gradient(90deg, rgba(244, 48, 36, 0.04) 1px, transparent 1px);
	background-size: 56px 56px;
	mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 30%, transparent 75%);
	-webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 30%, transparent 75%);
}
.erp-hero-glow {
	position: absolute;
	border-radius: 50%;
	filter: blur(80px);
	opacity: 0.45;
}
.erp-glow-1 {
	width: 600px; height: 600px;
	background: radial-gradient(circle, rgba(244, 48, 36, 0.55), transparent 70%);
	top: -150px; right: -150px;
}
.erp-glow-2 {
	width: 500px; height: 500px;
	background: radial-gradient(circle, rgba(59, 130, 246, 0.45), transparent 70%);
	bottom: -200px; left: -100px;
}
.erp-hero-inner {
	position: relative;
	z-index: 1;
	max-width: 1280px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: 1.2fr 0.9fr;
	gap: 64px;
	align-items: center;
}
.erp-eyebrow {
	display: inline-block;
	padding: 6px 14px;
	border-radius: var(--radius-pill);
	background: var(--primary-soft);
	color: #FBA9A2;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.6px;
	text-transform: uppercase;
	border: 1px solid rgba(244, 48, 36, 0.28);
	margin-bottom: 24px;
}

/* Mobile-only Sign In button — shown between eyebrow and hero title on <640px.
   Replaces the nav Sign In button so the mobile flow reads:
       Logo  →  A Trusted IT Solutions Company  →  Sign In  →  Title  →  …  */
.erp-mobile-signin {
	display: none;
}
.erp-hero-title {
	font-size: clamp(36px, 5vw, 60px);
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: -1.5px;
	margin: 0 0 24px;
	color: var(--text-hi);
}
.erp-highlight {
	background: linear-gradient(120deg, var(--primary) 30%, #FF7A6D 100%);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: transparent;
}
.erp-hero-sub {
	font-size: 18px;
	color: var(--text-md);
	max-width: 540px;
	margin: 0 0 36px;
}
.erp-hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-bottom: 36px;
}
.erp-hero-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 22px;
	color: var(--text-lo);
	font-size: 14px;
}
.erp-hero-meta span {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}
.erp-hero-meta i {
	width: 16px; height: 16px;
	color: var(--primary);
}

/* =========================================================================
   BUTTONS (landing-scope)
   ========================================================================= */
.erp-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 22px;
	border-radius: 10px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	border: 1px solid transparent;
	text-decoration: none;
	transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
	font-family: inherit;
}
.erp-btn i {
	width: 18px; height: 18px;
}
.erp-btn-primary {
	background: var(--primary);
	color: var(--text-on-primary);
	box-shadow: 0 6px 20px rgba(244, 48, 36, 0.30);
}
.erp-btn-primary:hover {
	background: var(--primary-hover);
	color: var(--text-on-primary);
	transform: translateY(-1px);
	box-shadow: 0 10px 28px rgba(244, 48, 36, 0.40);
}
.erp-btn-ghost {
	background: rgba(255,255,255,0.04);
	color: var(--text-hi);
	border-color: var(--border);
}
.erp-btn-ghost:hover {
	background: rgba(255,255,255,0.08);
	border-color: var(--border-strong);
	color: var(--text-hi);
}
.erp-btn-block {
	width: 100%;
	justify-content: center;
}

/* =========================================================================
   LOGIN CARD
   ========================================================================= */
.erp-login-card {
	background: rgba(28, 28, 38, 0.65);
	border: 1px solid var(--border);
	border-radius: 18px;
	padding: 36px 32px;
	backdrop-filter: blur(24px) saturate(180%);
	-webkit-backdrop-filter: blur(24px) saturate(180%);
	box-shadow: 0 24px 60px rgba(0,0,0,0.50);
	position: relative;
	overflow: hidden;
}
.erp-login-card::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 18px;
	padding: 1px;
	background: linear-gradient(135deg, rgba(244, 48, 36, 0.4), transparent 50%, rgba(59, 130, 246, 0.3));
	-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
	-webkit-mask-composite: xor;
	mask-composite: exclude;
	pointer-events: none;
}
.erp-login-head h2 {
	margin: 0 0 6px;
	font-size: 24px;
	color: var(--text-hi);
}
.erp-login-head p {
	margin: 0 0 24px;
	color: var(--text-md);
	font-size: 14px;
}
.erp-login-form {
	display: flex;
	flex-direction: column;
	gap: 14px;
}
.erp-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.erp-field span {
	font-size: 13px;
	font-weight: 500;
	color: var(--text-md);
}
.erp-field input {
	background: var(--bg-input);
	border: 1px solid var(--border);
	border-radius: 10px;
	padding: 12px 14px;
	font-size: 15px;
	color: var(--text-hi);
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
	font-family: inherit;
}
.erp-field input:focus {
	outline: none;
	border-color: var(--primary);
	box-shadow: 0 0 0 3px var(--primary-glow);
}
.erp-field input::placeholder {
	color: var(--text-lo);
}
.erp-login-row {
	display: flex;
	justify-content: flex-end;
	font-size: 13px;
}
.erp-login-forgot {
	color: var(--text-md);
	text-decoration: none;
}
.erp-login-forgot:hover {
	color: var(--primary);
}
.erp-btn-spinner {
	width: 16px; height: 16px;
	border: 2px solid rgba(255,255,255,0.4);
	border-top-color: white;
	border-radius: 50%;
	animation: erp-spin 0.8s linear infinite;
}
@keyframes erp-spin {
	to { transform: rotate(360deg); }
}
.erp-login-msg {
	min-height: 18px;
	font-size: 13px;
	color: var(--danger);
}
.erp-login-msg.success {
	color: var(--success);
}
.erp-login-foot {
	margin-top: 20px;
	padding-top: 18px;
	border-top: 1px solid var(--border);
	font-size: 13px;
	color: var(--text-md);
	text-align: center;
}
.erp-login-foot a {
	color: var(--primary);
	text-decoration: none;
	font-weight: 600;
}
.erp-login-foot a:hover {
	color: var(--primary-hover);
}

/* =========================================================================
   PARTNERS STRIP (marquee)
   ========================================================================= */
.erp-partners-strip {
	padding: 48px 0 60px;
	background: var(--bg-surface);
	border-top: 1px solid var(--border);
	border-bottom: 1px solid var(--border);
	overflow: hidden;
	position: relative;
}
.erp-section-eyebrow {
	display: block;
	text-align: center;
	color: var(--text-lo);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	margin-bottom: 24px;
}
.erp-marquee {
	width: 100%;
	overflow: hidden;
	mask-image: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
	-webkit-mask-image: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
}
.erp-marquee-track {
	display: flex;
	gap: 20px;
	animation: erp-marquee 40s linear infinite;
	width: max-content;
}
.erp-partners-strip:hover .erp-marquee-track {
	animation-play-state: paused;
}
@keyframes erp-marquee {
	from { transform: translateX(0); }
	to   { transform: translateX(-50%); }
}
.erp-partner-chip {
	display: inline-flex;
	flex-direction: column;
	gap: 2px;
	padding: 14px 24px;
	border-radius: var(--radius-md);
	background: var(--bg-elevated);
	border: 1px solid var(--border);
	white-space: nowrap;
	flex-shrink: 0;
}
.erp-partner-name {
	color: var(--text-hi);
	font-weight: 600;
	font-size: 15px;
}
.erp-partner-tag {
	color: var(--text-lo);
	font-size: 11px;
	letter-spacing: 0.4px;
	text-transform: uppercase;
}

/* =========================================================================
   SECTIONS
   ========================================================================= */
.erp-section {
	padding: 100px 32px;
	max-width: 1280px;
	margin: 0 auto;
}
.erp-section-alt {
	background: var(--bg-surface);
	max-width: none;
	margin: 0;
	border-top: 1px solid var(--border);
	border-bottom: 1px solid var(--border);
}
.erp-section-alt > * {
	max-width: 1280px;
	margin-left: auto;
	margin-right: auto;
}
.erp-section-head {
	text-align: center;
	margin-bottom: 56px;
}
.erp-section-head h2 {
	margin: 8px 0 12px;
	font-size: clamp(28px, 3.5vw, 40px);
	font-weight: 700;
	letter-spacing: -1px;
	color: var(--text-hi);
}
.erp-section-head p {
	margin: 0 auto;
	max-width: 600px;
	color: var(--text-md);
	font-size: 17px;
}
.erp-grid-4 {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
}
.erp-grid-2 {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 24px;
}

/* =========================================================================
   SERVICE CARDS
   ========================================================================= */
.erp-service {
	padding: 28px 24px;
	background: var(--bg-surface);
	border: 1px solid var(--border);
	border-radius: var(--radius-md);
	transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
	position: relative;
}
.erp-service:hover {
	transform: translateY(-4px);
	border-color: var(--primary);
	background: var(--bg-elevated);
}
.erp-service-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px; height: 44px;
	border-radius: 10px;
	background: var(--primary-soft);
	color: var(--primary);
	margin-bottom: 16px;
}
.erp-service-icon i { width: 22px; height: 22px; }
.erp-service h3 {
	margin: 0 0 8px;
	font-size: 17px;
	color: var(--text-hi);
	font-weight: 600;
}
.erp-service p {
	margin: 0;
	font-size: 14px;
	color: var(--text-md);
	line-height: 1.55;
}

/* =========================================================================
   FLAGSHIP CARDS
   ========================================================================= */
.erp-flagship {
	display: flex;
	gap: 22px;
	padding: 32px;
	background: var(--bg-base);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	transition: transform 0.2s ease, border-color 0.2s ease;
	overflow: hidden;
	position: relative;
}
.erp-flagship::after {
	content: "";
	position: absolute;
	top: -50%; right: -30%;
	width: 320px; height: 320px;
	background: radial-gradient(circle, rgba(244, 48, 36, 0.18), transparent 70%);
	pointer-events: none;
}
.erp-flagship:hover {
	transform: translateY(-3px);
	border-color: var(--primary);
}
.erp-flagship-icon {
	flex-shrink: 0;
	width: 56px; height: 56px;
	border-radius: 14px;
	background: linear-gradient(135deg, var(--primary), #C0241B);
	color: white;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 8px 24px rgba(244, 48, 36, 0.3);
}
.erp-flagship-icon i { width: 28px; height: 28px; }
.erp-flagship-body { flex: 1; position: relative; z-index: 1; }
.erp-flagship-tag {
	display: inline-block;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.6px;
	text-transform: uppercase;
	color: var(--text-lo);
	margin-bottom: 8px;
}
.erp-flagship h3 {
	margin: 0 0 10px;
	font-size: 22px;
	font-weight: 700;
	color: var(--text-hi);
}
.erp-flagship p {
	margin: 0 0 14px;
	color: var(--text-md);
	font-size: 14px;
}
.erp-link {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	color: var(--primary);
	font-weight: 600;
	font-size: 14px;
	text-decoration: none;
}
.erp-link:hover {
	color: var(--primary-hover);
	gap: 8px;
}
.erp-link i { width: 16px; height: 16px; }
.erp-link-disabled {
	color: var(--text-lo);
	cursor: not-allowed;
}

/* =========================================================================
   PRODUCT CHIPS
   ========================================================================= */
.erp-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: center;
	max-width: 980px;
	margin: 0 auto;
}
.erp-chip {
	padding: 10px 18px;
	background: var(--bg-surface);
	border: 1px solid var(--border);
	border-radius: var(--radius-pill);
	font-size: 14px;
	color: var(--text-md);
	transition: all 0.15s ease;
}
.erp-chip:hover {
	border-color: var(--primary);
	color: var(--text-hi);
	background: var(--primary-soft);
}

/* =========================================================================
   PILLARS (vision/values)
   ========================================================================= */
.erp-pillar {
	padding: 36px;
	background: var(--bg-base);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
}
.erp-pillar-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px; height: 52px;
	border-radius: 14px;
	background: var(--primary-soft);
	color: var(--primary);
	margin-bottom: 20px;
}
.erp-pillar-icon i { width: 26px; height: 26px; }
.erp-pillar h3 {
	margin: 0 0 12px;
	font-size: 20px;
	color: var(--text-hi);
}
.erp-pillar p {
	margin: 0;
	font-size: 15px;
	color: var(--text-md);
}

/* =========================================================================
   CONTACT
   ========================================================================= */
.erp-contact-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
}
.erp-contact-card {
	padding: 28px 22px;
	background: var(--bg-surface);
	border: 1px solid var(--border);
	border-radius: var(--radius-md);
	text-align: center;
}
.erp-contact-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px; height: 44px;
	border-radius: 12px;
	background: var(--primary-soft);
	color: var(--primary);
	margin-bottom: 14px;
}
.erp-contact-icon i { width: 22px; height: 22px; }
.erp-contact-card h4 {
	margin: 0 0 12px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.6px;
	text-transform: uppercase;
	color: var(--text-lo);
}
.erp-contact-card p {
	margin: 0;
	color: var(--text-hi);
	font-size: 14px;
	line-height: 1.6;
}
.erp-contact-card a {
	display: block;
	color: var(--text-hi);
	font-size: 14px;
	text-decoration: none;
	margin: 2px 0;
	transition: color 0.15s ease;
}
.erp-contact-card a:hover {
	color: var(--primary);
}

/* =========================================================================
   FOOTER
   ========================================================================= */
.erp-footer {
	padding: 36px 32px;
	border-top: 1px solid var(--border);
	background: var(--bg-base);
}
.erp-footer-inner {
	max-width: 1280px;
	margin: 0 auto;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 24px;
	flex-wrap: wrap;
}
.erp-footer p {
	margin: 8px 0 0;
	color: var(--text-lo);
	font-size: 13px;
}
.erp-footer-meta {
	color: var(--text-lo);
	font-size: 13px;
	display: inline-flex;
	gap: 8px;
}

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 980px) {
	.erp-hero-inner { grid-template-columns: 1fr; gap: 48px; }
	.erp-grid-4 { grid-template-columns: repeat(2, 1fr); }
	.erp-grid-2 { grid-template-columns: 1fr; }
	.erp-contact-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
	/* Mobile nav — only the centered logo, no Sign In button (moved into hero) */
	.erp-nav { padding: 18px 0 14px; }
	.erp-nav.scrolled { padding: 12px 0 10px; }
	.erp-nav-inner {
		flex-direction: column;
		align-items: center;
		gap: 0;
		padding: 0 16px;
	}
	.erp-nav-links { display: none; }
	.erp-nav-cta   { display: none; }
	.erp-nav-brand { justify-content: center; }
	.erp-nav-brand img { height: 56px !important; }   /* bigger on mobile, owns the row */

	/* Hero — top stack (logo · tagline · Sign In) centered as one neat group.
	   Title + sub + action buttons stay left-aligned below (long-form content reads better that way). */
	.erp-hero { padding: 132px 20px 60px; }

	/* Centered tagline pill — block-level so margin auto works */
	.erp-eyebrow {
		display: block;
		width: fit-content;
		margin: 0 auto 18px;
	}

	/* Centered mobile Sign In — block-level flex, sits between tagline and hero title */
	.erp-mobile-signin {
		display: flex;
		align-items: center;
		justify-content: center;
		gap: 8px;
		width: fit-content;
		padding: 12px 28px;
		margin: 0 auto 36px;
		border-radius: var(--radius-pill);
		background: var(--primary);
		color: var(--text-on-primary);
		font-size: 14px;
		font-weight: 600;
		text-decoration: none;
		box-shadow: 0 6px 20px rgba(244, 48, 36, 0.28);
		transition: background 0.15s ease, transform 0.15s ease;
	}
	.erp-mobile-signin:hover {
		background: var(--primary-hover);
		color: var(--text-on-primary);
	}
	.erp-mobile-signin i { width: 16px; height: 16px; }

	.erp-section { padding: 70px 20px; }
	.erp-section-alt { padding-left: 20px; padding-right: 20px; }
	.erp-grid-4 { grid-template-columns: 1fr; }
	.erp-contact-grid { grid-template-columns: 1fr; }
	.erp-flagship { flex-direction: column; }
	.erp-login-card { padding: 28px 22px; }
}

/* =========================================================================
   REDUCED MOTION
   ========================================================================= */
@media (prefers-reduced-motion: reduce) {
	.erp-marquee-track { animation: none; }
	.erp-btn:hover, .erp-service:hover, .erp-flagship:hover, .erp-nav-cta:hover {
		transform: none;
	}
}
