/* BusinessLogin — modern SaaS wizard */
:root {
	--bl-primary: #2563eb;
	--bl-primary-dark: #1d4ed8;
	--bl-success: #16a34a;
	--bl-success-soft: #ecfdf5;
	--bl-border: #e2e8f0;
	--bl-text: #0f172a;
	--bl-muted: #64748b;
	--bl-bg: #f1f5f9;
	--bl-card: #ffffff;
	--bl-radius: 14px;
	--bl-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
}

.business-login-page {
	min-height: 100vh;
	background: linear-gradient(160deg, #f8fafc 0%, #eef2ff 45%, #f1f5f9 100%);
	font-family: Tahoma, 'Segoe UI', sans-serif;
	color: var(--bl-text);
	padding-top: 0 !important;
	overflow-x: hidden;
}

.business-login-shell { min-height: 100vh; display: flex; flex-direction: column; }
.business-login-main { flex: 1; padding: 20px 16px 32px; }
.bl-container { max-width: 960px; margin: 0 auto; width: 100%; }

.bl-hero {
	background: var(--bl-card);
	border: 1px solid var(--bl-border);
	border-radius: var(--bl-radius);
	box-shadow: var(--bl-shadow);
	padding: 18px 22px;
	margin-bottom: 20px;
}

.bl-hero__title { font-size: 1.35rem; font-weight: 800; margin: 0; }
.bl-hero__sub { color: var(--bl-muted); font-size: 0.9rem; margin: 6px 0 0; }
.home-link { color: var(--bl-primary); font-weight: 600; text-decoration: none; }
.home-link:hover { text-decoration: underline; }

.bl-wizard-card {
	background: var(--bl-card);
	border: 1px solid var(--bl-border);
	border-radius: 18px;
	box-shadow: var(--bl-shadow);
	padding: 24px;
}

/* Stepper */
.bl-stepper {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 28px;
	padding: 0;
	list-style: none;
}

.bl-stepper__item {
	flex: 1 1 120px;
	min-width: 0;
	position: relative;
}

.bl-stepper__btn {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	padding: 10px 12px;
	border: 1px solid var(--bl-border);
	border-radius: 12px;
	background: #f8fafc;
	font-size: 0.78rem;
	color: var(--bl-muted);
	transition: all 0.2s ease;
	cursor: default;
}

.bl-stepper__num {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 0.82rem;
	background: #e2e8f0;
	color: #475569;
	flex-shrink: 0;
	transition: all 0.2s ease;
}

.bl-stepper__item.is-active .bl-stepper__btn {
	border-color: var(--bl-primary);
	background: #eff6ff;
	color: var(--bl-primary-dark);
}

.bl-stepper__item.is-active .bl-stepper__num {
	background: var(--bl-primary);
	color: #fff;
}

.bl-stepper__item.is-done .bl-stepper__btn {
	border-color: #86efac;
	background: var(--bl-success-soft);
	color: #166534;
}

.bl-stepper__item.is-done .bl-stepper__num {
	background: var(--bl-success);
	color: #fff;
}

.bl-stepper__item.is-done .bl-stepper__num::after {
	content: '✓';
	font-size: 0.75rem;
}

.bl-stepper__item.is-done .bl-stepper__num span { display: none; }

/* Panes */
.wizard-pane { display: none; animation: blFadeIn 0.35s ease; }
.wizard-pane.active { display: block; }

@keyframes blFadeIn {
	from { opacity: 0; transform: translateY(8px); }
	to { opacity: 1; transform: translateY(0); }
}

.bl-pane-title { font-size: 1.2rem; font-weight: 800; margin: 0 0 8px; }
.bl-pane-desc { color: var(--bl-muted); font-size: 0.92rem; margin: 0 0 20px; }

.single-form-panel { max-width: 400px; margin: 0 auto; width: 100%; }

/* OTP */
.bl-otp-wrap {
	display: flex;
	justify-content: center;
	gap: 12px;
	direction: ltr;
	margin: 20px 0;
}

.bl-otp-digit {
	width: 56px;
	height: 64px;
	text-align: center;
	font-size: 1.5rem;
	font-weight: 700;
	border: 2px solid var(--bl-border);
	border-radius: 12px;
	background: #fff;
	transition: border-color 0.15s, box-shadow 0.15s;
}

.bl-otp-digit:focus {
	outline: none;
	border-color: var(--bl-primary);
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.bl-otp-meta {
	text-align: center;
	margin-top: 12px;
}

.bl-otp-timer { color: var(--bl-muted); font-size: 0.88rem; }
.bl-otp-resend {
	margin-top: 10px;
	background: none;
	border: none;
	color: var(--bl-primary);
	font-weight: 600;
	cursor: pointer;
	font-size: 0.9rem;
}

.bl-otp-resend:disabled {
	color: #94a3b8;
	cursor: not-allowed;
}

.bl-field-error {
	color: #dc2626;
	font-size: 0.85rem;
	text-align: center;
	margin-top: 8px;
	display: none;
}

.bl-field-error.is-visible { display: block; }

/* Software cards */
.bl-software-grid { margin-bottom: 20px; }

.bl-software-card {
	border: 2px solid var(--bl-border);
	border-radius: 16px;
	padding: 18px;
	height: 100%;
	cursor: pointer;
	transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
	background: #fff;
	position: relative;
}

.bl-software-card:hover {
	border-color: #93c5fd;
	box-shadow: 0 8px 20px rgba(37, 99, 235, 0.1);
}

.bl-software-card.active {
	border-color: var(--bl-primary);
	box-shadow: 0 10px 28px rgba(37, 99, 235, 0.18);
	transform: translateY(-2px);
}

.bl-software-card__check {
	position: absolute;
	top: 12px;
	left: 12px;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	border: 2px solid var(--bl-border);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 14px;
	color: transparent;
	transition: all 0.2s;
}

.bl-software-card.active .bl-software-card__check {
	background: var(--bl-primary);
	border-color: var(--bl-primary);
	color: #fff;
}

.bl-software-card.active .bl-software-card__check::after {
	content: '✓';
}

.bl-software-card__icon {
	width: 64px;
	height: 64px;
	object-fit: contain;
	border-radius: 12px;
	background: #f8fafc;
	padding: 8px;
	margin-bottom: 12px;
}

.bl-software-card__name { font-weight: 800; font-size: 1rem; margin: 0 0 6px; }
.bl-software-card__desc { color: var(--bl-muted); font-size: 0.86rem; margin: 0 0 10px; }
.bl-software-card__features {
	margin: 0;
	padding: 0 18px 0 0;
	font-size: 0.82rem;
	color: #475569;
}

.bl-software-card__features li { margin-bottom: 4px; }

/* License cards (dashboard) */
.bl-license-card {
	border: 2px solid var(--bl-border);
	border-radius: 16px;
	padding: 18px;
	height: 100%;
	background: #fff;
	transition: border-color 0.2s, box-shadow 0.2s;
	cursor: pointer;
}

.bl-license-card:hover {
	border-color: #93c5fd;
	box-shadow: var(--bl-shadow);
}

.bl-license-card.is-selected {
	border-color: var(--bl-primary);
	box-shadow: 0 8px 24px rgba(37, 99, 235, 0.15);
}

.bl-license-card__select {
	position: absolute;
	top: 14px;
	left: 14px;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	border: 2px solid var(--bl-border);
}

.bl-license-card { position: relative; }

/* FY preview */
.bl-fy-preview-wrap {
	margin-top: 20px;
}

.bl-fy-name-field {
	margin-top: 16px;
}

.bl-fy-preview {
	background: linear-gradient(135deg, #eff6ff, #f0fdf4);
	border: 1px solid #bfdbfe;
	border-radius: 16px;
	padding: 20px;
	text-align: center;
}

.bl-fy-preview__label { font-size: 0.88rem; color: var(--bl-muted); margin-bottom: 8px; }
.bl-fy-preview__range { font-size: 1.15rem; font-weight: 800; }
.bl-fy-preview__days {
	margin-top: 10px;
	font-size: 0.95rem;
	color: var(--bl-success);
	font-weight: 700;
}

/* Currency */
.bl-currency-mode-grid { margin-bottom: 16px; }

.bl-select-card {
	border: 2px solid var(--bl-border);
	border-radius: 14px;
	padding: 16px;
	text-align: center;
	cursor: pointer;
	transition: all 0.2s;
	background: #fff;
}

.bl-select-card:hover { border-color: #93c5fd; }
.bl-select-card.active {
	border-color: var(--bl-primary);
	background: #eff6ff;
	box-shadow: 0 6px 16px rgba(37, 99, 235, 0.12);
}

.bl-select-card.is-disabled {
	opacity: 0.45;
	pointer-events: none;
}

.bl-currency-tiles {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
	gap: 10px;
}

.bl-currency-tile {
	border: 2px solid var(--bl-border);
	border-radius: 12px;
	padding: 12px;
	cursor: pointer;
	text-align: center;
	transition: all 0.2s;
	background: #fff;
	position: relative;
}

.bl-currency-tile:hover { border-color: #93c5fd; }
.bl-currency-tile.is-selected {
	border-color: var(--bl-success);
	background: var(--bl-success-soft);
}

.bl-currency-tile__code { font-weight: 800; font-size: 1rem; }
.bl-currency-tile__title { font-size: 0.8rem; color: var(--bl-muted); margin-top: 4px; }

.bl-currency-tile__tick {
	position: absolute;
	top: 8px;
	left: 8px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: var(--bl-success);
	color: #fff;
	font-size: 11px;
	display: none;
	align-items: center;
	justify-content: center;
}

.bl-currency-tile.is-selected .bl-currency-tile__tick { display: flex; }

.bl-currency-banner {
	border-radius: 12px;
	border: 1px solid #fde68a;
	background: #fffbeb;
	color: #92400e;
	padding: 12px 14px;
	font-size: 0.88rem;
}

.bl-section-title {
	font-size: 0.95rem;
	font-weight: 700;
	margin: 20px 0 12px;
	padding-top: 16px;
	border-top: 1px solid var(--bl-border);
}

.bl-section-title:first-child { border-top: none; padding-top: 0; margin-top: 0; }

/* Buttons */
.wizard-actions {
	display: flex;
	gap: 12px;
	margin-top: 28px;
	flex-wrap: wrap;
}

.wizard-actions.single-action { justify-content: center; }
.wizard-actions.two-actions { justify-content: space-between; }

.bl-btn {
	padding: 12px 22px;
	border-radius: 10px;
	font-weight: 700;
	font-size: 0.92rem;
	border: none;
	cursor: pointer;
	transition: transform 0.1s, box-shadow 0.15s;
}

.bl-btn--primary { background: var(--bl-primary); color: #fff; }
.bl-btn--primary:hover { background: var(--bl-primary-dark); }
.bl-btn--success { background: var(--bl-success); color: #fff; }
.bl-btn--success:hover { background: #15803d; }

.license-card.bl-license-card,
.bl-license-card {
	border: 2px solid var(--bl-border);
	border-radius: 16px;
	padding: 18px;
	height: 100%;
	background: #fff;
}
.bl-btn--ghost {
	background: #fff;
	color: #475569;
	border: 1px solid var(--bl-border);
}

.bl-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.hidden { display: none !important; }
.soft-muted { color: var(--bl-muted); font-size: 0.87rem; }

.loader-overlay {
	position: fixed;
	inset: 0;
	background: rgba(255, 255, 255, 0.75);
	z-index: 9999;
	display: none;
	align-items: center;
	justify-content: center;
}

.loader-box {
	background: #fff;
	border: 1px solid var(--bl-border);
	border-radius: 12px;
	padding: 16px 22px;
	box-shadow: var(--bl-shadow);
}

.business-login-page .bl-layout-menu,
.business-login-page .bl-layout-footer { display: none !important; }
.business-login-page #back-to-top { display: none !important; }

#businessType:disabled {
	background: #f1f5f9;
	cursor: not-allowed;
}

.dash-tab-btn {
	border: 1px solid var(--bl-primary);
	background: #fff;
	color: var(--bl-primary);
	border-radius: 10px;
	padding: 8px 16px;
	font-size: 0.86rem;
	font-weight: 600;
}

.dash-tab-btn.active {
	background: var(--bl-primary);
	color: #fff;
}

@media (max-width: 768px) {
	.bl-stepper__label { display: none; }
	.bl-stepper__item { flex: 0 0 auto; }
	.bl-otp-digit { width: 48px; height: 56px; font-size: 1.25rem; }
	.wizard-actions.two-actions { flex-direction: column; }
	.wizard-actions.two-actions .bl-btn { width: 100%; }
	.bl-wizard-card { padding: 16px; }
}
