/* Login estilo PainelB — split layout */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
	--login-brand: #2c89a4;
	--login-brand-dark: #1a6678;
	--login-brand-darker: #124f5e;
	--login-brand-light: #45b5cc;
}

body.login-page {
	margin: 0;
	min-height: 100vh;
	font-family: 'Inter', sans-serif;
	background: #f0f4f8;
	color: #334155;
	overflow-x: hidden;
}

body.login-page #global-loader {
	display: none !important;
}

.login-shell {
	display: flex;
	min-height: 100vh;
}

.login-hero {
	flex: 0 0 42%;
	max-width: 42%;
	background: linear-gradient(145deg, var(--login-brand-darker) 0%, var(--login-brand) 52%, var(--login-brand-light) 100%);
	padding: 48px 56px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	position: relative;
	overflow: hidden;
}

.login-hero::before {
	content: '';
	position: absolute;
	inset: 0;
	background:
		radial-gradient(circle at 20% 20%, rgba(255,255,255,0.12), transparent 40%),
		radial-gradient(circle at 80% 80%, rgba(255,255,255,0.08), transparent 35%);
	pointer-events: none;
}

.login-brand {
	display: flex;
	align-items: center;
	gap: 12px;
	position: relative;
	z-index: 1;
}

.login-brand img {
	height: 42px;
	width: auto;
}

.login-brand span {
	font-size: 1.15rem;
	font-weight: 700;
	color: #fff;
}

.login-hero-content {
	position: relative;
	z-index: 1;
	max-width: 480px;
}

.login-hero-content h1 {
	font-size: clamp(1.8rem, 3vw, 2.4rem);
	font-weight: 800;
	line-height: 1.2;
	color: #fff;
	margin: 0 0 16px;
}

.login-hero-content p {
	font-size: 1rem;
	line-height: 1.6;
	color: rgba(255,255,255,0.82);
	margin: 0 0 28px;
}

.login-features {
	list-style: none;
	padding: 0;
	margin: 0;
}

.login-features li {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 14px;
	font-size: 0.95rem;
	color: rgba(255,255,255,0.9);
}

.login-features li i {
	width: 34px;
	height: 34px;
	border-radius: 10px;
	background: rgba(255,255,255,0.14);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 0.9rem;
}

.login-hero-footer {
	position: relative;
	z-index: 1;
	font-size: 0.8rem;
	color: rgba(255,255,255,0.55);
}

.login-panel {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 40px 24px;
	position: relative;
	background: #f0f4f8;
}

.login-panel-inner {
	width: 100%;
	max-width: 460px;
}

.login-heading {
	margin-bottom: 28px;
}

.login-heading h2 {
	font-size: 1.75rem;
	font-weight: 800;
	margin: 0 0 8px;
	color: #0f172a;
}

.login-heading p {
	margin: 0;
	color: #64748b;
	font-size: 0.95rem;
}

.login-card {
	background: #ffffff;
	border-radius: 20px;
	padding: 32px 28px 28px;
	box-shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
	border: 1px solid #e2e8f0;
	color: #1e293b;
}

.login-field {
	margin-bottom: 18px;
}

.login-field label {
	display: block;
	font-size: 0.88rem;
	font-weight: 600;
	color: #334155;
	margin-bottom: 8px;
}

.login-field-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 8px;
}

.login-field-head label {
	margin-bottom: 0;
}

.login-field-head a,
.login-link-btn {
	font-size: 0.82rem;
	color: var(--login-brand);
	text-decoration: none;
	font-weight: 600;
	border: none;
	background: transparent;
	padding: 0;
	cursor: pointer;
	font-family: inherit;
}

.login-field-head a:hover,
.login-link-btn:hover {
	text-decoration: underline;
	color: var(--login-brand-dark);
}

.login-input-wrap {
	position: relative;
}

.login-input-wrap i.input-icon {
	position: absolute;
	left: 14px;
	top: 50%;
	transform: translateY(-50%);
	color: #94a3b8;
	font-size: 0.95rem;
	pointer-events: none;
}

.login-input-wrap input {
	width: 100%;
	box-sizing: border-box;
	border: 1.5px solid #e2e8f0;
	border-radius: 12px;
	padding: 13px 44px 13px 42px;
	font-size: 0.95rem;
	color: #0f172a;
	background: #f8fafc;
	transition: border-color 0.2s, box-shadow 0.2s;
}

.login-input-wrap input:focus {
	outline: none;
	border-color: var(--login-brand);
	box-shadow: 0 0 0 3px rgba(44, 137, 164, 0.15);
	background: #fff;
}

.login-toggle-pass {
	position: absolute;
	right: 12px;
	top: 50%;
	transform: translateY(-50%);
	border: none;
	background: transparent;
	color: #94a3b8;
	cursor: pointer;
	padding: 4px;
	font-size: 1rem;
}

.login-toggle-pass:hover {
	color: var(--login-brand);
}

.login-remember {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 4px 0 20px;
	font-size: 0.88rem;
	color: #475569;
}

.login-remember input {
	width: 16px;
	height: 16px;
	accent-color: var(--login-brand);
	margin: 0;
}

.login-captcha-box {
	border: 1.5px solid #e2e8f0;
	border-radius: 14px;
	padding: 16px;
	margin-bottom: 18px;
	background: #f8fafc;
}

.login-captcha-title {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 0.88rem;
	font-weight: 700;
	color: #334155;
	margin-bottom: 4px;
}

.login-captcha-title i {
	color: var(--login-brand);
}

.login-captcha-hint {
	font-size: 0.78rem;
	color: #64748b;
	margin: 0 0 12px;
}

.login-captcha-row {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 12px;
}

.login-captcha-code {
	flex: 1;
	min-height: 52px;
	border-radius: 10px;
	background:
		repeating-linear-gradient(-12deg, rgba(44, 137, 164, 0.06) 0 8px, transparent 8px 16px),
		linear-gradient(135deg, #e8f6fa 0%, #d9eef5 100%);
	border: 1px dashed #8ec6d6;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	user-select: none;
	letter-spacing: 0.35em;
	font-weight: 800;
	font-size: 1.35rem;
	color: var(--login-brand-dark);
	font-family: 'Courier New', monospace;
}

.login-captcha-code span {
	display: inline-block;
	transform: rotate(var(--rot, 0deg)) translateY(var(--y, 0px));
}

.login-captcha-refresh {
	width: 44px;
	height: 44px;
	border-radius: 10px;
	border: 1.5px solid #e2e8f0;
	background: #fff;
	color: var(--login-brand);
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 1.1rem;
	transition: all 0.2s;
	flex-shrink: 0;
}

.login-captcha-refresh:hover {
	border-color: var(--login-brand);
	background: #eef8fb;
}

.login-captcha-copy {
	font-size: 0.72rem;
	color: #94a3b8;
	margin: -6px 0 10px;
}

.login-captcha-input {
	width: 100%;
	box-sizing: border-box;
	border: 1.5px solid #e2e8f0;
	border-radius: 12px;
	padding: 12px 14px;
	font-size: 0.95rem;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	background: #fff;
}

.login-captcha-input:focus {
	outline: none;
	border-color: var(--login-brand);
	box-shadow: 0 0 0 3px rgba(44, 137, 164, 0.15);
}

.btn-login-submit {
	width: 100%;
	border: none;
	border-radius: 12px;
	padding: 14px 18px;
	font-size: 0.95rem;
	font-weight: 700;
	color: #fff;
	background: linear-gradient(135deg, var(--login-brand) 0%, var(--login-brand-dark) 100%);
	box-shadow: 0 8px 20px rgba(44, 137, 164, 0.35);
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	transition: transform 0.2s, box-shadow 0.2s;
}

.btn-login-submit:hover {
	transform: translateY(-1px);
	box-shadow: 0 12px 24px rgba(44, 137, 164, 0.45);
}

.login-card-footer {
	text-align: center;
	margin-top: 18px;
	font-size: 0.86rem;
	color: #64748b;
}

.login-card-footer a {
	color: var(--login-brand);
	font-weight: 600;
	text-decoration: none;
}

.login-card-footer a:hover {
	text-decoration: underline;
}

.login-ip-footer {
	position: absolute;
	right: 24px;
	bottom: 16px;
	font-size: 0.75rem;
	color: #94a3b8;
}

#modalRecuperarSenha.show {
	display: block;
}

.login-alert {
	border-radius: 12px;
	padding: 12px 14px;
	margin-bottom: 18px;
	font-size: 0.88rem;
	display: flex;
	align-items: flex-start;
	gap: 8px;
}

.login-alert-danger {
	background: #fef2f2;
	color: #b91c1c;
	border: 1px solid #fecaca;
}

.login-alert-success {
	background: #ecfdf5;
	color: #047857;
	border: 1px solid #a7f3d0;
}

.login-modal-header {
	background: linear-gradient(135deg, var(--login-brand) 0%, var(--login-brand-dark) 100%);
	color: #fff;
	border: none;
}

.login-modal-btn {
	background: var(--login-brand);
	border-color: var(--login-brand);
}

.login-modal-btn:hover {
	background: var(--login-brand-dark);
	border-color: var(--login-brand-dark);
}

@media (max-width: 992px) {
	.login-shell {
		flex-direction: column;
	}

	.login-hero {
		flex: none;
		max-width: 100%;
		padding: 32px 24px;
	}

	.login-hero-content h1 {
		font-size: 1.6rem;
	}

	.login-features {
		display: none;
	}

	.login-panel {
		padding: 24px 16px 56px;
	}

	.login-ip-footer {
		left: 16px;
		right: 16px;
		text-align: center;
	}
}
