/**
 * Solaris-style auth (dark + blue #2563eb primary)
 */
:root {
	--auth-primary: #2563eb;
	--auth-primary-hover: #1d4ed8;
	--auth-primary-rgb: 37, 99, 235;
	--auth-bg: #000000;
	--auth-surface: rgba(31, 31, 31, 0.34);
	--auth-border: rgba(255, 255, 255, 0.1);
	--auth-text: #ffffff;
	--auth-text-muted: rgba(255, 255, 255, 0.5);
	--auth-text-faint: rgba(255, 255, 255, 0.4);
}

html.auth-solaris-html,
html.auth-solaris-html body {
	height: 100%;
	margin: 0;
	background: var(--auth-bg);
	color: var(--auth-text);
	overflow-x: hidden;
}

.auth-solaris {
	position: relative;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	background: var(--auth-bg);
}

.auth-solaris-canvas {
	position: fixed;
	inset: 0;
	width: 100vw;
	height: 100vh;
	z-index: 0;
	pointer-events: none;
	overflow: hidden;
}

.auth-solaris-canvas > div {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.auth-solaris-canvas canvas {
	display: block;
	width: 100% !important;
	height: 100% !important;
}

.auth-solaris-canvas__reverse {
	opacity: 0;
	transition: opacity 0.35s ease;
}

.auth-solaris-canvas__reverse.is-active {
	opacity: 1;
}

.auth-solaris-canvas__forward.is-hidden {
	opacity: 0;
	transition: opacity 0.35s ease;
}

.auth-solaris-vignette {
	position: fixed;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	background: radial-gradient(circle at center, rgba(0, 0, 0, 0.55) 0%, transparent 80%);
}

.auth-solaris-vignette-top {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	height: 25vh;
	z-index: 1;
	pointer-events: none;
	background: linear-gradient(to bottom, rgba(0, 0, 0, 0.85), transparent);
}

/* Mini navbar */
.auth-mini-nav {
	position: fixed;
	top: 1.5rem;
	left: 50%;
	transform: translateX(-50%);
	z-index: 30;
	width: calc(100% - 2rem);
	max-width: 100%;
	padding: 0.75rem 1.5rem;
	border-radius: 9999px;
	border: 1px solid #333;
	background: var(--auth-surface);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	transition: border-radius 0.3s ease;
}

.auth-mini-nav.is-open {
	border-radius: 0.75rem;
}

.auth-mini-nav__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}

.auth-mini-nav__logo {
	display: flex;
	align-items: center;
	flex-shrink: 0;
}

.auth-mini-nav__logo img {
	max-height: 28px;
	width: auto;
	object-fit: contain;
}

.auth-mini-nav__logo-dots {
	position: relative;
	width: 20px;
	height: 20px;
}

.auth-mini-nav__logo-dots span {
	position: absolute;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #e5e7eb;
	opacity: 0.8;
}

.auth-mini-nav__logo-dots span:nth-child(1) { top: 0; left: 50%; transform: translateX(-50%); }
.auth-mini-nav__logo-dots span:nth-child(2) { left: 0; top: 50%; transform: translateY(-50%); }
.auth-mini-nav__logo-dots span:nth-child(3) { right: 0; top: 50%; transform: translateY(-50%); }
.auth-mini-nav__logo-dots span:nth-child(4) { bottom: 0; left: 50%; transform: translateX(-50%); }

.auth-mini-nav__links {
	display: none;
	align-items: center;
	gap: 1.25rem;
	font-size: 0.875rem;
}

@media (min-width: 576px) {
	.auth-mini-nav {
		width: auto;
	}
	.auth-mini-nav__links {
		display: flex;
	}
}

.auth-mini-nav__link {
	position: relative;
	display: inline-flex;
	height: 1.25rem;
	overflow: hidden;
	color: #d1d5db;
	text-decoration: none;
	transition: color 0.2s;
}

.auth-mini-nav__link:hover {
	color: #fff;
}

.auth-mini-nav__link span {
	display: block;
	transition: transform 0.4s ease;
}

.auth-mini-nav__link:hover span {
	transform: translateY(-100%);
}

.auth-mini-nav__link span + span {
	position: absolute;
	left: 0;
	top: 100%;
	color: #fff;
}

.auth-mini-nav__actions {
	display: none;
	align-items: center;
	gap: 0.5rem;
}

@media (min-width: 576px) {
	.auth-mini-nav__actions {
		display: flex;
	}
}

.auth-btn-ghost {
	padding: 0.5rem 1rem;
	font-size: 0.75rem;
	border: 1px solid #333;
	background: rgba(31, 31, 31, 0.62);
	color: #d1d5db;
	border-radius: 9999px;
	text-decoration: none;
	transition: border-color 0.2s, color 0.2s;
}

.auth-btn-ghost:hover {
	border-color: rgba(255, 255, 255, 0.5);
	color: #fff;
}

.auth-btn-glow-wrap {
	position: relative;
}

.auth-btn-glow-wrap::before {
	content: "";
	position: absolute;
	inset: -8px;
	border-radius: 9999px;
	background: #f3f4f6;
	opacity: 0.35;
	filter: blur(12px);
	pointer-events: none;
	transition: opacity 0.3s, filter 0.3s;
}

.auth-btn-glow-wrap:hover::before {
	opacity: 0.55;
	filter: blur(16px);
}

.auth-btn-signup {
	position: relative;
	z-index: 1;
	padding: 0.5rem 1rem;
	font-size: 0.75rem;
	font-weight: 600;
	color: #000;
	background: linear-gradient(to bottom right, #f3f4f6, #d1d5db);
	border: none;
	border-radius: 9999px;
	text-decoration: none;
	transition: background 0.2s;
}

.auth-btn-signup:hover {
	background: linear-gradient(to bottom right, #e5e7eb, #9ca3af);
	color: #000;
}

.auth-mini-nav__toggle {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2rem;
	height: 2rem;
	padding: 0;
	border: 0;
	background: transparent;
	color: #d1d5db;
}

@media (min-width: 576px) {
	.auth-mini-nav__toggle {
		display: none;
	}
}

.auth-mini-nav__mobile {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100%;
	overflow: hidden;
	max-height: 0;
	opacity: 0;
	padding-top: 0;
	pointer-events: none;
	transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
}

.auth-mini-nav.is-open .auth-mini-nav__mobile {
	max-height: 600px;
	opacity: 1;
	padding-top: 1rem;
	pointer-events: auto;
}

@media (min-width: 576px) {
	.auth-mini-nav__mobile {
		display: none !important;
	}
}

.auth-mini-nav__mobile a {
	color: #d1d5db;
	text-decoration: none;
	padding: 0.35rem 0;
}

.auth-mini-nav__mobile a:hover {
	color: #fff;
}

.auth-mini-nav__mobile-actions {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 0.75rem;
	width: 100%;
	margin-top: 1rem;
}

/* Content */
.auth-solaris-content {
	position: relative;
	z-index: 10;
	flex: 1;
	display: flex;
	flex-direction: column;
	padding: 6.5rem 1rem 2.5rem;
}

@media (max-width: 575.98px) {
	.auth-solaris-content {
		padding: 6rem 0.75rem 1.5rem;
	}
}

.auth-solaris-form-wrap {
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	width: 100%;
}

.auth-solaris-form-panel {
	width: 100%;
	max-width: 26rem;
	padding: 2.25rem 2rem 1.75rem;
	border-radius: 1.5rem;
	background: rgba(15, 15, 20, 0.78);
	border: 1px solid rgba(255, 255, 255, 0.08);
	backdrop-filter: blur(18px);
	-webkit-backdrop-filter: blur(18px);
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
	animation: authFadeIn 0.45s ease-out;
}

.auth-solaris-form-panel--wide {
	max-width: 36rem;
	padding: 2.25rem 2.25rem 1.75rem;
}

@media (max-width: 575.98px) {
	.auth-solaris-form-panel {
		padding: 1.75rem 1.25rem 1.25rem;
		border-radius: 1.25rem;
	}
}

@keyframes authFadeIn {
	from {
		opacity: 0;
		transform: translateX(-24px);
	}
	to {
		opacity: 1;
		transform: translateX(0);
	}
}

.auth-solaris-heading {
	text-align: center;
	margin-bottom: 1.75rem;
}

.auth-solaris-heading h1 {
	font-size: clamp(1.75rem, 4vw, 2.25rem);
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -0.02em;
	color: var(--auth-text);
	margin: 0 0 0.35rem;
}

.auth-solaris-heading .auth-solaris-lead {
	font-size: 1rem;
	font-weight: 400;
	color: rgba(255, 255, 255, 0.75);
	margin: 0 0 0.15rem;
}

.auth-solaris-heading .auth-solaris-sub {
	font-size: 0.875rem;
	font-weight: 400;
	color: var(--auth-text-muted);
	margin: 0.25rem 0 0;
	line-height: 1.4;
}

/* Forms — consistent typography */
.auth-solaris {
	font-size: 0.9rem;
	line-height: 1.5;
}

.auth-solaris .form-label {
	color: rgba(255, 255, 255, 0.75);
	font-size: 0.8rem;
	font-weight: 500;
	margin-bottom: 0.35rem;
}

.auth-solaris .form-control,
.auth-solaris .form-select {
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.12);
	color: var(--auth-text);
	border-radius: 9999px;
	padding: 0.7rem 1.1rem;
	font-size: 0.9rem;
	line-height: 1.4;
}

.auth-solaris .small,
.auth-solaris small {
	font-size: 0.8rem;
}

.auth-solaris .btn {
	font-size: 0.9rem;
}

.auth-solaris .form-control::placeholder {
	color: rgba(255, 255, 255, 0.35);
}

.auth-solaris .form-control:focus,
.auth-solaris .form-select:focus {
	background: rgba(255, 255, 255, 0.08);
	border-color: rgba(var(--auth-primary-rgb), 0.6);
	color: var(--auth-text);
	box-shadow: 0 0 0 3px rgba(var(--auth-primary-rgb), 0.2);
}

.auth-solaris .input-group {
	flex-wrap: nowrap;
	align-items: stretch;
	border-radius: 9999px;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.12);
	overflow: hidden;
	padding: 0;
}

.auth-solaris .input-group:focus-within {
	border-color: rgba(var(--auth-primary-rgb), 0.6);
	box-shadow: 0 0 0 3px rgba(var(--auth-primary-rgb), 0.2);
}

.auth-solaris .input-group > .form-control,
.auth-solaris .input-group > .form-select {
	background: transparent !important;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	padding: 0.75rem 1rem;
	color: var(--auth-text);
	min-width: 0;
	flex: 1 1 auto;
}

.auth-solaris .input-group > .form-control:focus,
.auth-solaris .input-group > .form-select:focus {
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
}

.auth-solaris .input-group > .btn {
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	color: var(--auth-text-muted) !important;
	padding: 0.5rem 1.1rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-shadow: none !important;
}

.auth-solaris .input-group > .btn:hover {
	color: var(--auth-text) !important;
	background: rgba(255, 255, 255, 0.04) !important;
}

.auth-solaris .input-group > .form-select:first-child {
	border-right: 1px solid var(--auth-border) !important;
	max-width: 7.5rem;
}

.auth-solaris .form-check-label {
	color: var(--auth-text-muted);
	font-size: 0.875rem;
}

.auth-solaris .form-check-input {
	background-color: rgba(255, 255, 255, 0.08);
	border-color: var(--auth-border);
}

.auth-solaris .form-check-input:checked {
	background-color: var(--auth-primary);
	border-color: var(--auth-primary);
}

.auth-solaris .btn-primary {
	background: var(--auth-primary);
	border-color: var(--auth-primary);
	color: #fff;
	border-radius: 9999px;
	font-weight: 600;
	padding: 0.75rem 1.25rem;
}

.auth-solaris .btn-primary:hover,
.auth-solaris .btn-primary:focus {
	background: var(--auth-primary-hover);
	border-color: var(--auth-primary-hover);
	color: #fff;
}

.auth-solaris .btn-outline-light,
.auth-solaris .btn-light {
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid var(--auth-border);
	color: var(--auth-text);
	border-radius: 9999px;
}

.auth-solaris .alert-danger {
	background: rgba(239, 68, 68, 0.15);
	border: 1px solid rgba(239, 68, 68, 0.35);
	color: #fecaca;
	border-radius: 12px;
}

.auth-solaris .alert-success {
	background: rgba(34, 197, 94, 0.12);
	border: 1px solid rgba(34, 197, 94, 0.35);
	color: #bbf7d0;
	border-radius: 12px;
}

.auth-solaris .text-muted,
.auth-solaris .text-muted a {
	color: var(--auth-text-muted) !important;
}

.auth-solaris a.link-primary,
.auth-solaris a.fw-semibold:not(.auth-btn-ghost):not(.auth-btn-signup) {
	color: rgba(255, 255, 255, 0.85);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.auth-solaris a.link-primary:hover,
.auth-solaris a.fw-semibold:not(.auth-btn-ghost):not(.auth-btn-signup):hover {
	color: var(--auth-primary);
}

.auth-solaris .auth-divider {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin: 1rem 0;
}

.auth-solaris .auth-divider::before,
.auth-solaris .auth-divider::after {
	content: "";
	flex: 1;
	height: 1px;
	background: rgba(255, 255, 255, 0.1);
}

.auth-solaris .auth-divider span {
	font-size: 0.875rem;
	color: rgba(255, 255, 255, 0.4);
}

.auth-email-row {
	position: relative;
}

.auth-email-row .form-control {
	text-align: center;
	padding-right: 3rem;
}

.auth-email-submit {
	position: absolute;
	right: 6px;
	top: 50%;
	transform: translateY(-50%);
	width: 2.25rem;
	height: 2.25rem;
	padding: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
	overflow: hidden;
	transition: background 0.2s ease;
	line-height: 1;
}

.auth-email-submit:hover {
	background: var(--auth-primary);
	color: #fff;
}

.auth-email-submit .auth-arrow {
	display: inline-block;
	font-size: 1rem;
	line-height: 1;
	transition: transform 0.25s ease;
	transform: translateX(0);
}

.auth-email-submit:hover .auth-arrow {
	transform: translateX(3px);
}

.auth-social-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	width: 100%;
	padding: 0.7rem 1rem;
	border-radius: 9999px;
	border: 1px solid var(--auth-border);
	background: rgba(255, 255, 255, 0.05);
	color: var(--auth-text);
	text-decoration: none;
	font-size: 0.9rem;
	transition: background 0.2s;
}

.auth-social-btn > .fs-5 {
	font-size: 1.05rem !important;
	font-weight: 600;
}

.auth-social-btn:hover {
	background: rgba(255, 255, 255, 0.1);
	color: var(--auth-text);
}

/* OTP */
.auth-otp-shell {
	border: 1px solid var(--auth-border);
	border-radius: 9999px;
	padding: 1rem 1.25rem;
	background: transparent;
}

.auth-otp-inputs {
	display: flex;
	align-items: center;
	justify-content: center;
}

.auth-otp-cell {
	display: flex;
	align-items: center;
}

.auth-otp-cell input {
	width: 2rem;
	text-align: center;
	font-size: 1.25rem;
	background: transparent;
	border: 0;
	color: var(--auth-text);
	caret-color: transparent;
	outline: none;
	box-shadow: none;
	padding: 0;
}

.auth-otp-cell input:focus {
	outline: none;
}

.auth-otp-sep {
	color: rgba(255, 255, 255, 0.2);
	font-size: 1.25rem;
	margin: 0 2px;
	user-select: none;
}

.auth-otp-placeholder {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	pointer-events: none;
	color: rgba(255, 255, 255, 0.35);
	font-size: 1.25rem;
}

.auth-otp-cell-wrap {
	position: relative;
}

.auth-otp-cell-wrap.has-value .auth-otp-placeholder {
	display: none;
}

.auth-solaris-legal {
	font-size: 0.7rem;
	color: var(--auth-text-faint);
	text-align: center;
	margin-top: 2.5rem;
	line-height: 1.5;
}

.auth-solaris-legal a {
	color: var(--auth-text-faint);
	text-decoration: underline;
}

.auth-solaris-legal a:hover {
	color: rgba(255, 255, 255, 0.6);
}

.auth-solaris-footer-copy {
	text-align: center;
	font-size: 0.75rem;
	color: var(--auth-text-faint);
	margin-top: 1.5rem;
}

.auth-success-icon {
	width: 4rem;
	height: 4rem;
	margin: 0 auto 1.5rem;
	border-radius: 50%;
	background: linear-gradient(to bottom right, #fff, rgba(255, 255, 255, 0.7));
	display: flex;
	align-items: center;
	justify-content: center;
	color: #000;
}

.auth-solaris .progress {
	background: rgba(255, 255, 255, 0.1);
}

.auth-solaris .progress-bar.bg-primary,
.auth-solaris .progress-bar.bg-info {
	background-color: var(--auth-primary) !important;
}

#bottomright-Toast.bg-primary {
	background-color: var(--auth-primary) !important;
}

.auth-field-phone .input-group {
	flex-wrap: nowrap;
}

.auth-field-phone .auth-phone-code-select {
	width: auto;
	min-width: 5.75rem;
	max-width: 9rem;
	border-radius: 9999px 0 0 9999px !important;
}

.auth-field-phone .input-group > .form-control {
	min-width: 0;
	border-radius: 0 9999px 9999px 0 !important;
}

.auth-solaris .g-recaptcha {
	display: flex;
	justify-content: center;
}

.auth-solaris .g-recaptcha > div {
	filter: invert(0.92) hue-rotate(180deg);
	border-radius: 8px;
}
