/* Auth layout (always) + neon theme (html.auth-neon) */

/* Shared layout fixes — apply in both themes */
.section-authentication-cover > .row,
.section-authentication-cover > div > .row {
	min-height: 100vh;
}

.auth-cover-left {
	background: url('/assets/images/NexerPilotBackground.jpg') no-repeat center center;
	background-size: cover;
	min-height: 100vh;
}

html.auth-neon .auth-cover-left {
	background-image: url('/assets/images/background3.png');
}

.auth-cover-overlay {
	display: block;
}

html.auth-neon .auth-cover-overlay {
	display: none !important;
}

.auth-cover-right {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 100vh;
	padding: 24px;
}

.auth-cover-right > .card {
	width: 100%;
	max-width: 420px;
	height: auto !important;
}

.auth-cover-right .card-body {
	flex: none !important;
	height: auto !important;
}

.auth-cover-right form.row {
	min-height: 0 !important;
	height: auto !important;
}

.auth-theme-toggle {
	position: absolute;
	top: 16px;
	right: 16px;
	z-index: 20;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	border-radius: 999px;
	border: 1px solid rgba(0, 0, 0, 0.12);
	background: rgba(255, 255, 255, 0.92);
	color: #495057;
	font-size: 12px;
	font-weight: 500;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.auth-theme-toggle:hover {
	background: #fff;
	color: #212529;
}

.auth-theme-toggle i {
	font-size: 16px;
}

.section-authentication-cover {
	position: relative;
}

/* ——— Neon / dark theme ——— */
html.auth-neon {
	--auth-bg: #0b0e14;
	--auth-border: rgba(255, 255, 255, 0.1);
	--auth-text: #eef2f7;
	--auth-muted: #9aa6b5;
	--auth-input-bg: #161b24;
	--auth-input-border: rgba(255, 255, 255, 0.16);
	--auth-accent: #f99a00;
	--auth-accent-hover: #037de2;
}

html.auth-neon body {
	background: var(--auth-bg);
	color: var(--auth-text);
}

html.auth-neon .auth-cover-right {
	background: var(--auth-bg);
	border-left: 1px solid var(--auth-border);
}

html.auth-neon .auth-cover-right > .card {
	background: transparent !important;
	border: none !important;
	box-shadow: none !important;
}

html.auth-neon .auth-cover-right .card-body {
	padding: 1.5rem !important;
}

html.auth-neon .auth-cover-right h3,
html.auth-neon .auth-cover-right h5 {
	color: var(--auth-text);
}

html.auth-neon .auth-cover-right p,
html.auth-neon .auth-cover-right .form-label,
html.auth-neon .auth-cover-right .form-check-label,
html.auth-neon .auth-cover-right .form-text,
html.auth-neon .auth-cover-right .text-muted,
html.auth-neon .auth-cover-right small {
	color: var(--auth-muted) !important;
}

html.auth-neon .auth-cover-right a:not(.btn) {
	color: var(--auth-accent);
	text-decoration: none;
}

html.auth-neon .auth-cover-right a:not(.btn):hover {
	color: var(--auth-accent-hover);
}

html.auth-neon .auth-cover-right .form-control {
	background-color: var(--auth-input-bg);
	border-color: var(--auth-input-border);
	color: var(--auth-text);
}

html.auth-neon .auth-cover-right .form-control::placeholder {
	color: #e8eef5 !important;
	opacity: 1 !important;
	-webkit-text-fill-color: #e8eef5 !important;
}

html.auth-neon .auth-cover-right .form-control::-webkit-input-placeholder {
	color: #e8eef5 !important;
	opacity: 1 !important;
	-webkit-text-fill-color: #e8eef5 !important;
}

html.auth-neon .auth-cover-right .form-control::-moz-placeholder {
	color: #e8eef5 !important;
	opacity: 1 !important;
}

html.auth-neon .auth-cover-right .form-control:-ms-input-placeholder {
	color: #e8eef5 !important;
	opacity: 1 !important;
}

html.auth-neon .auth-cover-right .form-control:focus {
	background-color: #1a202b;
	border-color: rgba(249, 154, 0, 0.55);
	color: var(--auth-text);
	box-shadow: 0 0 0 0.2rem rgba(249, 154, 0, 0.15);
}

html.auth-neon .auth-cover-right .input-group-text {
	background-color: var(--auth-input-bg) !important;
	border-color: var(--auth-input-border);
	color: var(--auth-muted);
}

html.auth-neon .auth-cover-right .input-group .form-control {
	border-right: 0;
}

html.auth-neon .auth-cover-right .input-group .input-group-text {
	border-left: 0;
}

html.auth-neon .auth-cover-right .form-check-input {
	background-color: var(--auth-input-bg);
	border-color: var(--auth-input-border);
}

html.auth-neon .auth-cover-right .form-check-input:checked {
	background-color: var(--auth-accent);
	border-color: var(--auth-accent);
}

html.auth-neon .auth-cover-right .form-check-input:focus {
	box-shadow: 0 0 0 0.2rem rgba(249, 154, 0, 0.2);
}

/* Buttons — neon outline tubes (same idea as admin)
   Rest = orange border; hover = blue flicker */
@keyframes neon-border-ignite {
	0% { opacity: 0.3; filter: brightness(0.55); }
	8% { opacity: 1; filter: brightness(1.25); }
	14% { opacity: 0.2; filter: brightness(0.45); }
	22% { opacity: 1; filter: brightness(1.3); }
	30% { opacity: 0.35; filter: brightness(0.55); }
	42% { opacity: 1; filter: brightness(1.2); }
	55% { opacity: 0.6; filter: brightness(0.75); }
	70% { opacity: 1; filter: brightness(1.15); }
	85% { opacity: 0.85; filter: brightness(1.05); }
	100% { opacity: 1; filter: brightness(1.1); }
}

html.auth-neon .auth-cover-right .btn-primary,
html.auth-neon .auth-cover-right .btn-outline-primary {
	background-color: transparent !important;
	border: 1px solid #ff5a1f !important;
	color: #ff8a4a !important;
	box-shadow:
		0 0 0 1px rgba(255, 90, 31, 0.45),
		0 0 12px rgba(255, 90, 31, 0.45),
		inset 0 0 10px rgba(255, 90, 31, 0.06) !important;
	transition: none;
}

html.auth-neon .auth-cover-right .btn-primary:focus,
html.auth-neon .auth-cover-right .btn-primary:active,
html.auth-neon .auth-cover-right .btn-outline-primary:focus,
html.auth-neon .auth-cover-right .btn-outline-primary:active {
	background-color: rgba(255, 90, 31, 0.1) !important;
	border-color: #ff5a1f !important;
	color: #ffb27a !important;
	box-shadow:
		0 0 0 1px rgba(255, 90, 31, 0.75),
		0 0 16px rgba(255, 90, 31, 0.55),
		inset 0 0 12px rgba(255, 90, 31, 0.08) !important;
	animation: none;
}

html.auth-neon .auth-cover-right .btn-primary:hover,
html.auth-neon .auth-cover-right .btn-primary:hover:focus,
html.auth-neon .auth-cover-right .btn-primary:hover:active,
html.auth-neon .auth-cover-right .btn-outline-primary:hover,
html.auth-neon .auth-cover-right .btn-outline-primary:hover:focus,
html.auth-neon .auth-cover-right .btn-outline-primary:hover:active {
	background-color: rgba(61, 184, 255, 0.08) !important;
	border-color: #3db8ff !important;
	color: #d4f0ff !important;
	box-shadow:
		0 0 0 1px rgba(61, 184, 255, 0.95),
		0 0 14px rgba(61, 184, 255, 0.7),
		0 0 24px rgba(61, 184, 255, 0.35),
		inset 0 0 12px rgba(61, 184, 255, 0.08) !important;
	animation: neon-border-ignite 0.95s ease-out forwards;
}

@media (prefers-reduced-motion: reduce) {
	html.auth-neon .auth-cover-right .btn-primary:hover,
	html.auth-neon .auth-cover-right .btn-primary:hover:focus,
	html.auth-neon .auth-cover-right .btn-primary:hover:active,
	html.auth-neon .auth-cover-right .btn-outline-primary:hover,
	html.auth-neon .auth-cover-right .btn-outline-primary:hover:focus,
	html.auth-neon .auth-cover-right .btn-outline-primary:hover:active {
		animation: none;
	}
}

html.auth-neon .auth-cover-right .btn-light {
	background: rgba(255, 255, 255, 0.06);
	border-color: var(--auth-border);
	color: var(--auth-text);
}

html.auth-neon .auth-cover-right .btn-light:hover {
	background: rgba(255, 255, 255, 0.1);
	border-color: rgba(255, 255, 255, 0.16);
	color: #fff;
}

html.auth-neon .auth-cover-right .login-separater {
	margin-top: 1.5rem !important;
	margin-bottom: 0 !important;
}

html.auth-neon .auth-cover-right .login-separater span {
	background: var(--auth-bg);
	color: var(--auth-muted);
	top: 20px;
}

html.auth-neon .auth-cover-right .login-separater hr {
	border-top-color: var(--auth-border);
	opacity: 1;
}

html.auth-neon .auth-cover-right .alert-success {
	background: rgba(25, 90, 55, 0.4);
	border-color: rgba(70, 180, 110, 0.35);
	color: #c5ecd4;
}

html.auth-neon .auth-cover-right .alert-danger,
html.auth-neon .auth-cover-right .alert-warning {
	background: rgba(90, 30, 25, 0.4);
	border-color: rgba(220, 100, 70, 0.35);
	color: #f0cfc4;
}

html.auth-neon .auth-cover-right .invalid-feedback {
	color: #e89a7a;
}

html.auth-neon .auth-theme-toggle {
	border-color: rgba(255, 255, 255, 0.18);
	background: rgba(22, 27, 36, 0.92);
	color: #c8d2de;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

html.auth-neon .auth-theme-toggle:hover {
	background: #1a202b;
	color: #fff;
}

@media (max-width: 1199.98px) {
	html.auth-neon .auth-cover-right {
		border-left: none;
		background:
			linear-gradient(180deg, rgba(11, 14, 20, 0.9), rgba(11, 14, 20, 0.95)),
			url('/assets/images/background3.png') no-repeat center center;
		background-size: cover;
	}

	html.auth-neon .auth-cover-right .login-separater span {
		background: transparent;
	}
}
