/* ===== FUTURISTIC LOGIN THEME ===== */
/* Dark blue theme with cyan neon accents */

:root {
	--bg-dark: #0a1628;
	--bg-card: rgba(10, 22, 40, 0.85);
	--cyan-primary: #00d4ff;
	--cyan-glow: rgba(0, 212, 255, 0.5);
	--cyan-dark: #0099cc;
	--text-light: #ffffff;
	--text-muted: #8899aa;
	--border-subtle: rgba(0, 212, 255, 0.3);
}

html {
	height: 100%;
}

body {
	font-family: "Segoe UI", "Open Sans", Arial, sans-serif;
	font-size: 16px;
	margin: 0;
	padding: 0;
	display: flex;
	justify-content: center;
	align-items: center;
	min-height: 100%;
	background: var(--bg-dark);
}

/* Stable Layout for Login page (using .login-page body class) */
body.login-page {
	align-items: flex-start;
	min-height: 100vh;
	overflow-y: auto;
	overflow-x: hidden;
}

.login-wrapper {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 100vh;
	width: 100%;
	padding: clamp(30px, 6vh, 60px) 20px clamp(40px, 8vh, 80px) 20px;
	z-index: 1;
	position: relative;
	box-sizing: border-box;
}

label {
	font-weight: normal;
	color: var(--text-muted);
}


/* ===== CLOCK ===== */
.clock-container {
	position: fixed;
	top: 50px;
	left: 0;
	right: 0;
	text-align: center;
	color: var(--text-light);
	z-index: 2;
	text-shadow: 0 0 10px var(--cyan-glow);
}

body.login-page .clock-container {
	position: static;
	margin-top: 0;
	margin-bottom: clamp(15px, 3vh, 30px);
}

#clock-time {
	font-size: clamp(1.5rem, 3.5vh, 1.85rem);
	font-weight: 300;
	letter-spacing: 2px;
	color: var(--cyan-primary);
}

#clock-date {
	font-size: clamp(0.75rem, 1.8vh, 0.9rem);
	font-weight: normal;
	color: var(--text-muted);
	margin-bottom: 5px;
	text-transform: uppercase;
	letter-spacing: 3px;
}

/* ===== RUNNING TEXT ===== */
.running-text-container {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	background: rgba(10, 22, 40, 0.9);
	color: var(--text-light);
	padding: 10px 0;
	overflow: hidden;
	z-index: 2;
	border-top: 1px solid var(--border-subtle);
	white-space: nowrap;
}

.running-text {
	display: inline-block;
	font-size: 1.1rem;
	letter-spacing: 1px;
	animation: marquee 20s linear infinite;
	padding-left: 100%;
}

@keyframes marquee {
	0% {
		transform: translate(0, 0);
	}

	100% {
		transform: translate(-100%, 0);
	}
}

li {
	margin-left: 20px;
}

/* ===== INPUT FIELDS ===== */
.login-input,
.login-input:focus {
	border: 0;
	border-bottom: 2px solid var(--cyan-primary);
	outline: none;
	box-shadow: none;
	background: transparent;
	color: var(--text-light);
	transition: all 0.3s ease;
}

.login-input:focus {
	border-bottom-color: var(--cyan-primary);
	box-shadow: 0 2px 10px var(--cyan-glow);
}

.login-input::placeholder {
	color: var(--text-muted);
}

.input-group-text {
	background: none;
	border: 0;
	color: var(--cyan-primary);
}

.form-control {
	border-radius: 0;
	background: transparent;
	color: var(--text-light);
}

/* ===== ALERTS ===== */
.alert ul {
	margin: 0;
	padding: 0;
}

p.small {
	margin-bottom: 0;
}

small.alert {
	padding: 5px;
	padding-left: 10px;
	display: block;
	margin: 0;
	margin-top: 3px;
}

.alert {
	border-radius: 0;
	background: rgba(255, 0, 0, 0.2);
	border: 1px solid #ff4444;
	color: #ff6666;
}

/* ===== BACKGROUND & BACKDROP ===== */
.background-slideshow,
.backdrop {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
}

.background-slideshow {
	padding: 0;
	margin: 0;
	list-style: none;
	z-index: 0;
}

.background-slideshow li {
	width: 100%;
	height: 100%;
	position: absolute;
	top: 0;
	left: 0;
	margin: 0;
	/* Reset global li margin */
	padding: 0;
	background-size: cover;
	background-position: center center;
	background-repeat: no-repeat;
	opacity: 0;
	z-index: 0;
	animation: imageAnimation 18s linear infinite;
}

.background-slideshow li:nth-child(1) {
	background-image: url('../images/bg_login.jpg');
	animation-delay: 0s;
}

.background-slideshow li:nth-child(2) {
	background-image: url('../images/bg_login_2.png');
	animation-delay: 6s;
}

.background-slideshow li:nth-child(3) {
	background-image: url('../images/bg_login_3.png');
	animation-delay: 12s;
}

@keyframes imageAnimation {
	0% {
		opacity: 0;
		animation-timing-function: ease-in;
	}

	8% {
		opacity: 1;
		animation-timing-function: ease-out;
	}

	25% {
		opacity: 1;
	}

	33% {
		opacity: 0;
	}

	100% {
		opacity: 0;
	}
}

.backdrop {
	background: linear-gradient(135deg, rgba(10, 22, 40, 0.9) 0%, rgba(5, 15, 30, 0.95) 100%);
}

/* ===== CARD CONTAINER - CLEAN FRAME ===== */
.card-container {
	max-width: 400px;
	width: 100%;
	z-index: 1;
	position: relative;
	border: 2px solid var(--cyan-primary);
	border-radius: 8px;
	box-shadow:
		0 0 30px var(--cyan-glow),
		inset 0 0 30px rgba(0, 212, 255, 0.05);
	animation: borderGlow 3s ease-in-out infinite;
	overflow: hidden;
}

@keyframes borderGlow {

	0%,
	100% {
		box-shadow: 0 0 20px var(--cyan-glow);
	}

	50% {
		box-shadow: 0 0 40px var(--cyan-glow), 0 0 60px rgba(0, 212, 255, 0.3);
	}
}

.card-container>* {
	background: var(--bg-card);
}

/* ===== CARD HEADER ===== */
.card-header:first-child {
	border-radius: 0;
}

.card-header {
	text-align: center;
	padding: 25px;
	padding-bottom: 10px;
	background: transparent;
	border: 0;
}

.card-header.transparent-header {
	padding: 25px;
	padding-bottom: 15px;
	margin: 0;
	background: var(--bg-card);
}

.card-header img {
	padding: 10px;
	max-width: 100px;
	filter: drop-shadow(0 0 10px var(--cyan-glow));
}

.card-header.transparent-header img {
	width: 100%;
	max-width: 100%;
}

.card-header h3 {
	font-weight: 300;
	font-size: 22px;
	margin: 0;
	margin-top: 15px;
	color: var(--cyan-primary);
	text-transform: uppercase;
	letter-spacing: 3px;
}

/* ===== CARD BODY ===== */
.card-body {
	padding: 25px;
	padding-top: 15px;
	background: var(--bg-card);
}

/* ===== CHECKBOX ===== */
.form-check-input {
	background: transparent;
	border: 2px solid var(--cyan-primary);
}

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

.form-check-label {
	color: var(--text-muted);
}

.checkbox label {
	cursor: pointer;
}

/* ===== BUTTON ===== */
.btn {
	border-radius: 0;
	text-transform: uppercase;
	letter-spacing: 2px;
	font-weight: 600;
	transition: all 0.3s ease;
}

.card-container .btn {
	height: calc(2.75rem + 2px);
	background: transparent;
	border: 2px solid var(--cyan-primary);
	color: var(--cyan-primary);
}

.card-container .btn:hover {
	background: var(--cyan-primary);
	color: var(--bg-dark);
	box-shadow: 0 0 20px var(--cyan-glow);
}

/* Override any btn-dark or btn-secondary */
.card-container .btn-dark,
.card-container .btn-secondary,
.card-container .btn-primary {
	background: transparent !important;
	border: 2px solid var(--cyan-primary) !important;
	color: var(--cyan-primary) !important;
}

.card-container .btn-dark:hover,
.card-container .btn-secondary:hover,
.card-container .btn-primary:hover {
	background: var(--cyan-primary) !important;
	color: var(--bg-dark) !important;
}

/* ===== CARD FOOTER ===== */
.card-footer {
	background: var(--bg-card);
	text-align: center;
	padding: 15px 25px;
	font-size: 90%;
	border-top: 1px solid var(--border-subtle);
}

.card-footer p {
	margin-bottom: 0;
	color: var(--text-muted);
}

.card-footer a {
	color: var(--cyan-primary);
	text-decoration: none;
	transition: all 0.3s ease;
}

.card-footer a:hover {
	color: var(--text-light);
	text-shadow: 0 0 10px var(--cyan-glow);
}

/* ===== COPYRIGHT (if used separately) ===== */
.card-container .copyright {
	background: none;
	color: var(--text-muted);
	text-align: center;
	margin-top: 10px;
	margin-bottom: 15px;
}

/* ===== MISC ===== */
.form-register {
	margin: 0;
	margin-top: 20px;
}

.card-container .alert-last {
	margin: 0;
}

.progress {
	border-radius: 0;
}

.form-inline input:not(:last-child),
.form-inline select:not(:last-child) {
	margin-right: 3px;
}

/* ===== CORNER DECORATIONS ===== */
.card-container::before,
.card-container::after {
	content: '';
	position: absolute;
	width: 40px;
	height: 40px;
	border: 2px solid var(--cyan-primary);
	z-index: 2;
}

.card-container::before {
	top: -5px;
	left: -5px;
	border-right: none;
	border-bottom: none;
}

.card-container::after {
	bottom: -5px;
	right: -5px;
	border-left: none;
	border-top: none;
}

/* ===== RESPONSIVE ===== */
@media screen and (max-width: 600px) {
	.card-container {
		margin: 15px;
		width: auto;
		max-width: none;
	}

	.backdrop {
		/* Keep backdrop on mobile */
	}

	.background {
		background-image: url('../../../images/bg_login_mobile.jpg');
	}

	.card-body {
		padding: 20px;
	}

	.card-header {
		padding: 20px;
		padding-bottom: 10px;
	}

	.card-header.transparent-header {
		padding: 20px;
		padding-bottom: 10px;
	}

	.card-footer {
		padding: 15px 20px;
	}

	input,
	select {
		max-width: 100% !important;
		float: none;
		margin-top: 3px;
	}

	.form-inline input,
	.form-inline select {
		margin-right: 0 !important;
	}
}