:root {
	--primary: #2563eb;
	--primary-hover: #1d4ed8;
	--primary-soft: rgba(37, 99, 235, 0.08);
	--bg-gradient: linear-gradient(135deg, #1e3a8a 0%, #2563eb 50%, #3b82f6 100%);
	--text-main: #1e293b;
	--text-muted: #64748b;
	--border-color: #cbd5e1;
	--radius: 0.75rem;
}

body {
	font-family: 'Inter', system-ui, -apple-system, sans-serif;
	color: var(--text-main);
	margin: 0;
	padding: 0;
	overflow-x: hidden;
}

.split-container {
	width: 100vw;
}

.info-section {
	background: var(--bg-gradient);
	min-height: 100vh;
	animation: none;
	/* Removed animation for stability */
}

.icon-circle {
	width: 60px;
	height: 60px;
	background: rgba(255, 255, 255, 0.15);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	backdrop-filter: blur(8px);
}

.icon-circle i {
	width: 28px;
	height: 28px;
	stroke-width: 1.5;
	color: white;
}

.info-content {
	max-width: 550px;
}

/* Outlined Floating Labels - Fixed Overlap */
.form-floating-outlined {
	position: relative;
	margin-bottom: 1.25rem;
}

.form-floating-outlined .form-control {
	height: 60px;
	padding: 1.25rem 1rem 0.5rem 1rem;
	border: 1px solid var(--border-color);
	border-radius: 8px;
	background: transparent;
	font-size: 1rem;
	transition: border-color 0.2s, box-shadow 0.2s;
}

/* Ensure placeholder is hidden when not focused to avoid overlap if needed, 
   but since we use " " as placeholder, we control via :placeholder-shown */
.form-floating-outlined .form-control::placeholder {
	color: transparent;
}

.form-floating-outlined .form-control:focus {
	border-color: var(--primary);
	box-shadow: 0 0 0 4px var(--primary-soft);
	outline: none;
}

.form-floating-outlined label {
	position: absolute;
	top: 50%;
	left: 1rem;
	transform: translateY(-50%);
	background: transparent;
	padding: 0 0.2rem;
	color: var(--text-muted);
	font-weight: 400;
	pointer-events: none;
	transition: transform 0.2s, top 0.2s, font-size 0.2s, color 0.2s, background-color 0.2s;
	z-index: 10;
}

/* Floating effect - Triggered by focus or having content */
.form-floating-outlined .form-control:focus~label,
.form-floating-outlined .form-control:not(:placeholder-shown)~label {
	top: 0;
	transform: translateY(-50%) scale(0.85);
	background-color: white;
	/* Cover the border */
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--primary);
	left: 0.8rem;
}

.btn-toggle-view {
	position: absolute;
	right: 1rem;
	top: 50%;
	transform: translateY(-50%);
	background: none;
	border: none;
	color: var(--text-muted);
	cursor: pointer;
	z-index: 15;
	padding: 5px;
}

/* Access Button Style - Re-enabled visual state */
.btn-access {
	background: var(--primary) !important;
	color: white !important;
	border: none !important;
	border-radius: 8px !important;
	transition: all 0.2s;
}

.btn-access:hover {
	background: var(--primary-hover) !important;
	transform: translateY(-1px);
}

.btn-access:active {
	transform: scale(0.98);
}

.form-section {
	background: white;
}

.login-footer {
	position: absolute;
	bottom: 0;
	left: 0;
	background: rgba(255, 255, 255, 0.05);
	backdrop-filter: blur(4px);
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	z-index: 20;
}

.info-section .login-footer {
	background: transparent;
	border-top: none;
}

.footer-brand {
	filter: brightness(0) invert(1);
	opacity: 0.3;
	transition: opacity 0.3s;
}

.footer-brand:hover {
	opacity: 0.7;
}

.form-section .footer-brand {
	filter: none;
}

.footer-divider {
	width: 1px;
	height: 24px;
	background: rgba(0, 0, 0, 0.1);
}

.info-section .footer-divider {
	background: rgba(255, 255, 255, 0.1);
}

.extremely-small {
	font-size: 0.7rem;
}

.letter-spacing-1 {
	letter-spacing: 1.5px;
}

/* Captcha adjustments */
.captcha-box {
	border-radius: 8px;
	background: #f8fafc;
}

.captcha-img {
	width: 40px;
	height: 40px;
	object-fit: cover;
}

.captcha-icon img {
	border-radius: 6px;
	transition: transform 0.2s;
}

.captcha-icon.selected img {
	border: 3px solid var(--primary) !important;
	transform: scale(1.05);
}

@media (max-width: 767.98px) {
	.info-section {
		min-height: auto;
		padding: 4rem 2rem !important;
	}

	.order-mobile-1 {
		order: 1;
	}

	.order-mobile-2 {
		order: 2;
	}
}

.login-inner-body {
	background: transparent !important;
}

.logo-column {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
}

.logo-item:not(:last-child) {
	margin-bottom: 2rem;
}

.logo-item img {
	max-height: 100px;
	width: auto;
	object-fit: contain;
	transition: transform 0.3s ease;
}

.logo-item img:hover {
	transform: scale(1.05);
}

.credentials-box {
	background: var(--primary-soft);
	border: 1px solid var(--border-color);
}

.nav-pills .nav-link {
	color: var(--text-muted);
	transition: all 0.2s ease;
}

.nav-pills .nav-link.active {
	background-color: var(--primary) !important;
	box-shadow: 0 4px 6px -1px var(--primary-soft);
}

.form-label {
	font-weight: 500;
	color: var(--text-main);
	font-size: 0.9rem;
}

.form-control {
	border: 1px solid var(--border-color);
	padding: 0.6rem 1rem;
	border-radius: 0.5rem;
	transition: all 0.2s ease;
}

.form-control:focus {
	border-color: var(--primary);
	box-shadow: 0 0 0 4px var(--primary-soft);
}

.input-group-text {
	background-color: white;
	border: 1px solid var(--border-color);
	border-left: none;
	cursor: pointer;
}

.btn-primary-siap {
	background: var(--primary) !important;
	border: none !important;
	padding: 0.75rem;
	border-radius: 0.5rem !important;
	transition: all 0.3s ease !important;
}

.btn-primary-siap:hover {
	background: var(--primary-hover) !important;
	transform: translateY(-1px);
	box-shadow: 0 4px 12px var(--primary-soft);
}

.link-senha-siap {
	color: var(--primary) !important;
	font-size: 0.9rem;
	transition: opacity 0.2s;
}

.link-senha-siap:hover {
	opacity: 0.8;
}

/* Captcha Styling */
.captcha-texto {
	background: #f8fafc;
	color: var(--text-main);
	border: 1px solid var(--border-color);
}

.captcha-box {
	background: #f8fafc;
	border: 1px solid var(--border-color);
}

.captcha-icon {
	transition: all 0.3s ease;
}

.captcha-icon img {
	border: 2px solid transparent;
}

.captcha-icon img:hover {
	transform: translateY(-3px);
}

.captcha-icon.selected img {
	border-color: var(--primary) !important;
	box-shadow: 0 0 0 3px var(--primary-soft);
}

.letter-spacing-1 {
	letter-spacing: 1px;
}

@media (max-width: 768px) {
	.logo-column {
		border-right: none !important;
		border-bottom: 2px dashed var(--border-color);
		padding-bottom: 2rem;
		margin-bottom: 2rem;
	}
}

@media (max-width: 767.98px) {
	.info-section {
		min-height: 40vh;
		padding: 3rem 1.5rem !important;
	}
}