/* Baxtawar login — no hero photo; layout only (buttons/modals use CodyChat theme CSS) */

:root {
	--bx-page: #0c0f14;
	--bx-ink: #eef2f7;
	--bx-muted: #9aa3b2;
	--bx-line: rgba(238, 242, 247, 0.12);
	--bx-font: "Outfit", "Segoe UI", Tahoma, sans-serif;
	--bx-display: "Syne", "Arial Black", Impact, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html, body {
	margin: 0;
	padding: 0;
	min-height: 100%;
	background: var(--bx-page);
	font-family: var(--bx-font);
	line-height: 1.5;
	-webkit-text-size-adjust: 100%;
}

body { overflow-x: hidden; }

img { max-width: 100%; height: auto; border: 0; display: block; }
button { font: inherit; }
a { color: inherit; }

.bx-login {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

/* ===== Hero without photo ===== */
.bx-hero {
	position: relative;
	min-height: 100vh;
	min-height: 100svh;
	display: grid;
	align-content: center;
	isolation: isolate;
	overflow: hidden;
}

.bx-hero-bg {
	position: absolute;
	inset: 0;
	z-index: 0;
	background:
		radial-gradient(90% 70% at 12% 18%, rgba(80, 140, 255, 0.18), transparent 55%),
		radial-gradient(80% 60% at 88% 12%, rgba(255, 120, 90, 0.14), transparent 50%),
		radial-gradient(70% 55% at 70% 90%, rgba(60, 200, 170, 0.12), transparent 45%),
		linear-gradient(165deg, #0a0d13 0%, #121826 48%, #0c1018 100%);
}

.bx-hero-bg::after {
	content: "";
	position: absolute;
	inset: 0;
	opacity: 0.35;
	background-image:
		linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
	background-size: 64px 64px;
	mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%);
}

.bx-top {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 1.1rem 1.25rem;
}

.bx-top-mark {
	width: 40px;
	height: 4px;
	border-radius: 999px;
	background: currentColor;
	opacity: 0.55;
	animation: bxPulse 2.6s ease-in-out infinite;
}

.bx-lang {
	width: 46px;
	height: 46px;
	border-radius: 14px;
	display: grid;
	place-items: center;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid var(--bx-line);
	cursor: pointer;
	padding: 0;
}

.bx-lang img {
	width: 28px;
	height: 20px;
	object-fit: cover;
	border-radius: 3px;
}

.bx-hero-inner {
	position: relative;
	z-index: 1;
	width: min(680px, calc(100% - 2.5rem));
	margin: 0 auto;
	text-align: center;
	padding: 5rem 0 4rem;
}

.bx-brand {
	display: flex;
	justify-content: center;
	margin-bottom: 1.35rem;
}

.bx-logo {
	width: auto;
	height: clamp(58px, 9vw, 84px);
	max-width: min(280px, 75vw);
	object-fit: contain;
	animation: bxRise 700ms ease both;
}

.bx-title {
	margin: 0 0 0.85rem;
	font-family: var(--bx-display);
	font-weight: 800;
	font-size: clamp(2.2rem, 5.5vw, 3.8rem);
	line-height: 1.05;
	letter-spacing: -0.035em;
	color: #fff;
	animation: bxRise 800ms ease both;
	animation-delay: 60ms;
}

.bx-lead {
	margin: 0 auto 1.75rem;
	max-width: 34rem;
	color: var(--bx-muted);
	font-size: clamp(1rem, 2vw, 1.12rem);
	animation: bxRise 900ms ease both;
	animation-delay: 120ms;
}

.bx-cta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	justify-content: center;
	animation: bxRise 1000ms ease both;
	animation-delay: 180ms;
}

.bx-cta .intro_login_btn,
.bx-cta .intro_guest_btn {
	min-width: 160px;
	margin: 0;
}

.bx-register {
	margin: 1.35rem 0 0;
	color: var(--bx-muted);
	font-size: 0.95rem;
	animation: bxRise 1100ms ease both;
	animation-delay: 230ms;
}

.bx-register .bclick {
	margin-inline-start: 0.35rem;
}

/* ===== Online users ===== */
.bx-online {
	padding: 2.75rem 1.25rem 1.5rem;
	background: #0a0d13;
	border-top: 1px solid var(--bx-line);
}

.bx-online-inner {
	width: min(920px, 100%);
	margin: 0 auto;
}

.bx-online-head {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.65rem;
	margin-bottom: 1.25rem;
}

.bx-online-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #3ddc97;
	box-shadow: 0 0 0 4px rgba(61, 220, 151, 0.18);
	animation: bxPulse 1.8s ease-in-out infinite;
}

.bx-online-head h2 {
	margin: 0;
	font-size: 1rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #fff;
}

.bx-online-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 28px;
	height: 24px;
	padding: 0 8px;
	border-radius: 999px;
	font-size: 0.8rem;
	font-weight: 700;
}

.bx-online-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.75rem 0.9rem;
}

.bx-online-item {
	display: flex;
	align-items: center;
	gap: 0.55rem;
	padding: 0.35rem 0.7rem 0.35rem 0.35rem;
	border-radius: 999px;
	border: 1px solid var(--bx-line);
	background: rgba(255, 255, 255, 0.03);
}

.bx-online-item img {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	object-fit: cover;
}

.bx-online-name {
	font-size: 0.86rem;
	font-weight: 600;
	max-width: 110px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* ===== About ===== */
.bx-about {
	padding: 3.5rem 1.25rem;
	background: #090c12;
	border-top: 1px solid var(--bx-line);
}

.bx-about-inner {
	width: min(680px, 100%);
	margin: 0 auto;
	text-align: center;
}

.bx-about h2 {
	margin: 0 0 0.75rem;
	font-family: var(--bx-display);
	font-size: clamp(1.5rem, 3vw, 2rem);
	letter-spacing: -0.02em;
	color: #fff;
}

.bx-about p {
	margin: 0;
	color: var(--bx-muted);
	font-size: 1.02rem;
}

/* Footer spacing on this page */
#main_footer {
	border-top: 1px solid var(--bx-line);
}

#menu_main_footer ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1.1rem;
	justify-content: center;
}

@keyframes bxRise {
	from { opacity: 0; transform: translateY(16px); }
	to { opacity: 1; transform: translateY(0); }
}

@keyframes bxPulse {
	0%, 100% { opacity: 0.55; }
	50% { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
	.bx-logo,
	.bx-title,
	.bx-lead,
	.bx-cta,
	.bx-register,
	.bx-top-mark,
	.bx-online-dot {
		animation: none !important;
	}
}

@media (max-width: 640px) {
	.bx-cta {
		flex-direction: column;
		align-items: stretch;
	}
	.bx-cta .intro_login_btn,
	.bx-cta .intro_guest_btn {
		width: 100%;
	}
	.bx-online-name { max-width: 84px; }
}
