/* Bridges Bootstrap component colors onto Bhairav's own charcoal/indigo
 * tokens (see assets/css/site.css) -- same registration flow/markup as
 * balajiweb.closebee.com's/bilzeeweb.closebee.com's own register.html,
 * just re-themed and re-branded for this product. */
:root {
	--bg-dark: #14151a;
	--bg-card: #191b22;
	--border-color: #34384a;
	--text-main: #eef0fa;
	--text-muted: #9a9fc2;
	--primary-indigo: #4338ca;
	--primary-hover: #6366f1;
	--glow-effect: 0 0 20px rgba(67, 56, 202, 0.4);
	--shadow-card: 0 10px 25px -5px rgba(0, 0, 0, 0.6);
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	scroll-behavior: smooth;
}

html { scrollbar-width: none; -ms-overflow-style: none; }
html::-webkit-scrollbar { display: none; }

body {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	background-color: var(--bg-dark);
	color: var(--text-main);
	line-height: 1.6;
	overflow-x: hidden;
	background: radial-gradient(ellipse 1200px 700px at 50% -10%, #1c1e26 0%, var(--bg-dark) 60%);
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

/* PAGE LOADER */
#page-loader {
	position: fixed;
	inset: 0;
	z-index: 9999;
	background-color: var(--bg-dark);
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 1.5rem;
	opacity: 1;
	visibility: visible;
	transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
				visibility 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
#page-loader.fade-out {
	opacity: 0;
	visibility: hidden;
}
.spinner {
	width: 52px;
	height: 52px;
	border: 3.5px solid var(--border-color);
	border-top-color: var(--primary-hover);
	border-right-color: var(--primary-indigo);
	border-radius: 50%;
	animation: spin 0.85s cubic-bezier(0.5, 0.1, 0.5, 0.9) infinite;
	box-shadow: var(--glow-effect);
}
@keyframes spin {
	to { transform: rotate(360deg); }
}
.loader-text {
	color: var(--text-muted);
	font-size: 0.9rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	animation: pulse 1.5s ease-in-out infinite alternate;
}
@keyframes pulse {
	from { opacity: 0.5; }
	to { opacity: 1; color: var(--primary-hover); }
}
#page-content {
	opacity: 0;
	transform: translateY(12px);
	transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1),
				transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
	flex: 1;
	display: flex;
	flex-direction: column;
}
#page-content.loaded {
	opacity: 1;
	transform: translateY(0);
}

/* Header / Navbar */
header {
	position: sticky;
	top: 0;
	z-index: 1000;
	background: rgba(20, 21, 26, 0.92);
	backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--border-color);
	padding: 14px 24px;
}
.nav-container {
	max-width: 1120px;
	margin: 0 auto;
	display: flex;
	justify-content: space-between;
	align-items: center;
}
.brand-plate {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
}
.brand-plate img {
	height: 36px;
	width: auto;
	max-width: 150px;
	object-fit: contain;
	border-radius: 7px;
	display: block;
	background: #fff;
	padding: 4px 10px;
}
.login-btn {
	background: transparent;
	color: var(--primary-hover);
	padding: 0.55rem 1.25rem;
	border-radius: 6px;
	font-size: 0.88rem;
	font-weight: 600;
	text-decoration: none;
	border: 1px solid var(--primary-hover);
	transition: all 0.3s ease;
	display: inline-flex;
	align-items: center;
	gap: 6px;
}
.login-btn:hover {
	background: rgba(67, 56, 202, 0.18);
	color: #ffffff;
	border-color: #ffffff;
	box-shadow: var(--glow-effect);
	transform: translateY(-2px);
}

footer {
	background: #0f1014;
	border-top: 1px solid var(--border-color);
	padding: 2.5rem 5% 2rem;
	text-align: center;
	color: var(--text-muted);
	font-size: 0.85rem;
	margin-top: auto;
}
.footer-logo {
	height: 30px;
	width: auto;
	max-width: 140px;
	object-fit: contain;
	border-radius: 6px;
	margin-bottom: 1rem;
	background: #fff;
	padding: 3px 8px;
}

/* Main Content Wrapper */
.main-wrapper {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 2rem 1rem;
}

/* Registration Card */
.registration-card {
	background-color: var(--bg-card);
	border: 1px solid var(--border-color);
	border-radius: 12px;
	box-shadow: var(--shadow-card);
	width: 100%;
	max-width: 550px;
	overflow: hidden;
}

.card-header-custom {
	background-color: rgba(67, 56, 202, 0.12);
	border-bottom: 1px solid var(--border-color);
	padding: 1.5rem 1rem;
	text-align: center;
}
.card-header-custom h5 {
	color: var(--text-main);
	font-weight: 600;
	font-size: 1.2rem;
	margin: 0;
}
.card-header-custom p {
	color: var(--text-muted);
	font-size: 0.875rem;
	margin-top: 0.25rem;
	margin-bottom: 0;
}

.form-container { padding: 1.5rem; }

.input-group-prepend .input-group-text {
	background-color: var(--bg-dark);
	border: 1px solid var(--border-color);
	color: var(--text-muted);
	font-weight: 500;
	font-size: 0.85rem;
	width: 130px;
}

.form-control {
	background-color: var(--bg-dark) !important;
	border: 1px solid var(--border-color) !important;
	color: var(--text-main) !important;
	font-size: 0.9rem;
	height: calc(2.25rem + 6px);
}
.form-control:focus {
	border-color: var(--primary-indigo) !important;
	box-shadow: 0 0 0 2px rgba(67, 56, 202, 0.3) !important;
}
.form-control::placeholder { color: #5b5f7a; }

.btn-app {
	background-color: var(--primary-indigo) !important;
	border: none !important;
	color: #ffffff !important;
	font-weight: 600;
	padding: 0.75rem;
	border-radius: 6px;
	font-size: 0.95rem;
	transition: background-color 0.2s ease;
}
.btn-app:hover:not(:disabled) { background-color: var(--primary-hover) !important; }
.btn-app:disabled { opacity: 0.5; cursor: not-allowed; }

#error_panel {
	display: none;
	background-color: rgba(239, 68, 68, 0.1);
	border: 1px solid rgba(239, 68, 68, 0.3);
	color: #f87171;
	padding: 0.75rem 1rem;
	border-radius: 6px;
	font-size: 0.85rem;
	margin-bottom: 1rem;
}

#post_reg_panel { display: none; }

.info-display-box {
	background-color: var(--bg-dark);
	border: 1px solid var(--border-color);
	border-radius: 8px;
	padding: 1rem;
	margin-bottom: 1.25rem;
}
.info-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 0.5rem 0;
	border-bottom: 1px solid var(--border-color);
}
.info-item:last-child { border-bottom: none; }
.info-label { color: var(--text-muted); font-size: 0.85rem; font-weight: 500; }
.info-value { color: var(--text-main); font-size: 0.9rem; font-weight: 600; text-align: right; word-break: break-all; }

#processing_loader {
	display: none;
	position: fixed;
	top: 0; left: 0;
	width: 100vw; height: 100vh;
	background: rgba(0, 0, 0, 0.7);
	z-index: 9999;
	justify-content: center;
	align-items: center;
	flex-direction: column;
	color: #ffffff;
}

@media (max-width: 575.98px) {
	.main-wrapper { padding: 1rem 0.5rem; }
	.form-container { padding: 1rem; }
	.input-group { flex-direction: column; align-items: stretch; }
	.input-group-prepend { width: 100%; margin-right: 0; margin-bottom: 0.25rem; }
	.input-group-prepend .input-group-text {
		width: 100%; border: none; background-color: transparent;
		padding-left: 0; font-weight: 600; color: var(--text-main);
	}
	.input-group > .form-control { border-radius: 6px !important; width: 100%; }
}
