/* ==== MAIN ==== */
html, body {
	margin: 0;
	padding: 0;
	font-family: "Segoe UI", Roboto, Arial, sans-serif;
	background-color: #eaf2f800;
	background-image:
		linear-gradient(rgba(245, 249, 255, 0.1), rgba(0, 0, 0, 0.1)),
		url('https://static.uat.ctxglobal.net/cr-ctx-ae-customui/assets/CTX_BG_1.jpg');
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	background-attachment: fixed;
	animation: backgroundMove 40s ease-in-out infinite alternate;
	color: #111;
}

/* ==== MAIN CONTAINER ==== */
.container {
	opacity: 1 !important;
	padding: 70px 15px 0;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
}

/* ==== LAYOUT RESPONSIVE ==== */
@media (min-width: 400px) {
	.row {
		display: flex;
		flex-direction: column;
	}
}

@media (min-width: 966px) {
	.row {
		display: flex;
		flex-direction: row;
	}
}

/* ==== LOGIN PANEL AND SECONDARY PANEL ==== */
.main, .secondary-panel {
	background: rgba(3, 63, 122, 0.80);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border-radius: 16px;
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
	width: 390px;
	margin: 10px;
	padding: 20px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	color: #222;
	z-index: 10;
}

/* ====  ==== */
.half-section {
	display: flex;
	flex-direction: row;
	z-index: 10;
	padding: 10px;
	height: 50%;
	align-items: flex-end;
}


/* ==== OTHERS ==== */
button {
	cursor: pointer;
}

.error {
	color: #ff2626;
	font-weight: 700;
	text-align: center;
}

#poweredBy {
	color: white;
	font-family: "Segoe UI", Roboto, Arial, sans-serif;
}

.center-block {
	display: block;
	margin: 0 auto;
}

.animated {
	animation-duration: 0.5s;
	animation-fill-mode: both;
}

.flipInY {
	animation-name: flipInY;
}

@keyframes flipInY {
	0% {
		transform: perspective(100px) rotateY(2deg);
		opacity: 0;
	}
	40% {
		transform: perspective(100px) rotateY(-2deg);
	}
	70% {
		transform: perspective(100px) rotateY(2deg);
	}
	100% {
		transform: perspective(100px) rotateY(0deg);
		opacity: 1;
	}
}

@keyframes backgroundMove {
	0% {
		background-position: center center;
	}
	100% {
		background-position: center top;
	}
}

/* === Logo Styles === */
.logo-container {
  text-align: center;
  animation: fadeIn 1s ease-in-out;
}

.ctx-logo {
  height: 75px;
  width: auto;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
  transition: transform 0.3s ease;
}

.ctx-logo:hover {
  transform: scale(1.05);
}

/* Optional smooth fade-in animation */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-1px); }
  to { opacity: 0; transform: translateY(0); }
}
