/* Auth page — structure inspired by registration landing; form + game mosaic bg */

body.bet559-auth-body,
body.bet559-auth-page {
	margin: 0 !important;
	padding: 0 !important;
	min-height: 100vh;
	min-height: 100dvh;
	background: #000 !important;
	overflow-x: hidden;
	font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
}

body.bet559-auth-page .site-header,
body.bet559-auth-page .main-navigation,
body.bet559-auth-page .bet559-mobile-bar,
body.bet559-auth-page #wpadminbar,
body.bet559-auth-page .site-footer,
body.bet559-auth-page .bet559-footer-wrap {
	display: none !important;
}

.bet559-auth-bg {
	position: fixed;
	inset: 0;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 8px;
	padding: 8px;
	z-index: 0;
	pointer-events: none;
	overflow: hidden;
}

.bet559-auth-bg__col {
	overflow: hidden;
	mask-image: linear-gradient(180deg, transparent, #000 8%, #000 92%, transparent);
}

.bet559-auth-bg__track {
	display: flex;
	flex-direction: column;
	gap: 8px;
	will-change: transform;
	animation: bet559-auth-scroll-up 48s linear infinite;
}

.bet559-auth-bg__col--2 .bet559-auth-bg__track,
.bet559-auth-bg__col--4 .bet559-auth-bg__track {
	animation-name: bet559-auth-scroll-down;
	animation-duration: 56s;
}

.bet559-auth-bg__col--3 .bet559-auth-bg__track {
	animation-duration: 64s;
}

.bet559-auth-bg__track img {
	width: 100%;
	aspect-ratio: 1;
	object-fit: cover;
	border-radius: 10px;
	display: block;
	opacity: 0.72;
}

.bet559-auth-bg__veil {
	position: absolute;
	inset: 0;
	background:
		radial-gradient(ellipse at center, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0.78) 70%, rgba(0, 0, 0, 0.92) 100%),
		linear-gradient(180deg, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.55));
}

@keyframes bet559-auth-scroll-up {
	from { transform: translateY(0); }
	to { transform: translateY(-50%); }
}

@keyframes bet559-auth-scroll-down {
	from { transform: translateY(-50%); }
	to { transform: translateY(0); }
}

.bet559-auth-shell {
	position: relative;
	z-index: 2;
	min-height: 100vh;
	min-height: 100dvh;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 18px;
	padding: 20px 16px 24px;
}

.bet559-auth-header {
	width: 100%;
	max-width: 500px;
	display: flex;
	justify-content: center;
	z-index: 3;
}

.bet559-auth-logo {
	display: flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	color: #fff;
}

.bet559-auth-logo__img {
	height: clamp(96px, 22vw, 180px);
	width: auto;
	max-width: min(280px, 80vw);
	object-fit: contain;
	filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.55));
}

.bet559-auth-logo__text {
	font-size: clamp(28px, 8vw, 48px);
	font-weight: 800;
	letter-spacing: 0.02em;
}

.bet559-auth-modal {
	background: rgba(255, 255, 255, 0.96);
	border-radius: 20px;
	padding: 28px 28px 24px;
	max-width: 440px;
	width: 100%;
	box-shadow: 0 20px 48px rgba(0, 0, 0, 0.5);
	backdrop-filter: blur(10px);
	animation: bet559-auth-slide 0.55s ease-out;
}

@keyframes bet559-auth-slide {
	from { opacity: 0; transform: translateY(36px); }
	to { opacity: 1; transform: translateY(0); }
}

.bet559-auth-title {
	margin: 0 0 6px;
	font-size: 1.45rem;
	color: #111827;
	text-align: center;
}

.bet559-auth-lead {
	margin: 0 0 18px;
	text-align: center;
	color: #4b5563;
	font-size: 0.95rem;
}

.bet559-auth-label {
	display: block;
	font-size: 0.82rem;
	font-weight: 600;
	color: #374151;
	margin: 0 0 6px;
}

.bet559-auth-input {
	width: 100%;
	box-sizing: border-box;
	padding: 12px 14px;
	border: 1px solid #d1d5db;
	border-radius: 12px;
	font-size: 1rem;
	margin-bottom: 14px;
	background: #fff;
	color: #111;
}

.bet559-auth-input:focus {
	outline: 2px solid #22664b;
	border-color: #22664b;
}

.bet559-auth-submit {
	width: 100%;
	padding: 14px 16px;
	border: 0;
	border-radius: 12px;
	font-size: 1rem;
	font-weight: 700;
	color: #fff;
	cursor: pointer;
	background: linear-gradient(135deg, #22664b, #1a5539);
	box-shadow: 0 4px 15px rgba(34, 102, 75, 0.4);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bet559-auth-submit:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 24px rgba(34, 102, 75, 0.5);
}

.bet559-auth-switch {
	margin: 16px 0 0;
	text-align: center;
	font-size: 0.9rem;
	color: #4b5563;
}

.bet559-auth-switch a {
	color: #1a5539;
	font-weight: 700;
	text-decoration: none;
}

.bet559-auth-flash {
	margin: 0 0 14px;
	padding: 10px 12px;
	border-radius: 10px;
	font-size: 0.9rem;
}

.bet559-auth-flash--error {
	background: #fef2f2;
	color: #b91c1c;
}

.bet559-auth-flash--ok {
	background: #ecfdf5;
	color: #047857;
}

.bet559-auth-footer {
	width: 100%;
	max-width: 500px;
	text-align: center;
	color: rgba(255, 255, 255, 0.85);
	z-index: 3;
}

.bet559-auth-age {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.18);
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 10px;
	font-weight: 800;
	color: #fff;
}

.bet559-auth-copy {
	margin: 0;
	font-size: 12px;
	line-height: 1.45;
}

.bet559-auth-copy a {
	color: #fbbf24;
	text-decoration: none;
}

@media (max-width: 768px) {
	.bet559-auth-bg {
		grid-template-columns: repeat(3, 1fr);
	}
	.bet559-auth-bg__col--4 {
		display: none;
	}
	.bet559-auth-modal {
		padding: 20px 16px 18px;
		border-radius: 16px;
	}
	.bet559-auth-shell {
		gap: 12px;
		padding: 14px 14px 18px;
	}
}

@media (max-width: 480px) {
	.bet559-auth-bg {
		grid-template-columns: repeat(2, 1fr);
		gap: 6px;
		padding: 6px;
	}
	.bet559-auth-bg__col--3 {
		display: none;
	}
}
