@import url('plugins/jquery.alerts.css?v=20260828');

/* ============================================================
   TELA DE LOGIN — layout split screen
   Tokens espelhados de css/inova-tokens.css (redeclarados aqui
   para o login carregar um CSS só). Overrides de marca do
   cliente ficam em css/customizado/custom.css.
   ============================================================ */

:root:where(:not(.ui-gx *)) {
	--brand-cyan: #20B8E8;
	--brand-cyan-deep: #0b7098;
	--brand-orange: #EC6408;

	--accent: #0e86b8;
	--accent-hover: #0b6f97;
	--accent-weak: #e3f4fb;

	--bg: #eef3f7;
	--surface: #ffffff;
	--border: #d5dfe8;
	--text: #15222b;
	--text-2: #50626e;
	--text-3: #82929e;

	--crit: #cf353b;
	--crit-bg: #fbe3e4;
	--crit-line: #f2c1c3;

	--radius: 14px;
	--radius-sm: 10px;
	--shadow: -18px 0 55px rgba(5, 30, 48, .16);
	--ring: 0 0 0 3px var(--accent-weak);

	--font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--font-brand: 'fs_trumanregular', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

	--panel-w: 520px;
}

@font-face {
	font-family: 'fs_trumanregular';
	src: url('../fonts/regular/fs_truman-regular.eot');
	src: url('../fonts/regular/fs_truman-regular.eot?#iefix')
		format('embedded-opentype'),
		url('../fonts/regular/fs_truman-regular.woff') format('woff'),
		url('../fonts/regular/fs_truman-regular.ttf') format('truetype'),
		url('../fonts/regular/fs_truman-regular.svg#fs_trumanregular')
		format('svg');
	font-weight: normal;
	font-style: normal;
	font-display: swap;
}

*:where(:not(.ui-gx *)), *:where(:not(.ui-gx *))::before, *:where(:not(.ui-gx *))::after { box-sizing: border-box; }

html:where(:not(.ui-gx *)), body:where(:not(.ui-gx *)) {
	margin: 0;
	padding: 0;
	min-height: 100%;
}

body:where(:not(.ui-gx *)) {
	background: var(--bg);
	color: var(--text);
	font-family: var(--font);
	font-size: 14px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}

/* ---------- estrutura ---------- */

.login-page:where(:not(.ui-gx *)) {
	display: flex;
	min-height: 100vh;
	min-height: 100svh;
}

/* ---------- painel esquerdo (marca) ---------- */

.login-hero:where(:not(.ui-gx *)) {
	position: relative;
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	padding: clamp(32px, 4.25vw, 72px);
	background-image: url("../img/login/background.jpg");
	background-position: center right;
	background-size: cover;
	background-repeat: no-repeat;
	background-color: var(--brand-cyan-deep);
	overflow: hidden;
}

.login-hero:where(:not(.ui-gx *))::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, rgba(11, 112, 152, .82) 0%, rgba(32, 184, 232, .55) 100%);
}

.login-hero__inner:where(:not(.ui-gx *)) {
	position: relative;
	z-index: 1;
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	justify-content: flex-end;
	gap: 64px;
	width: 100%;
	max-width: 680px;
	color: #fff;
}

.login-hero__content:where(:not(.ui-gx *)) {
	max-width: 610px;
}

.login-hero__eyebrow:where(:not(.ui-gx *)) {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 16px !important;
	font-size: 12px !important;
	font-weight: 700;
	letter-spacing: .14em;
	line-height: 1.3 !important;
	text-transform: uppercase;
	color: rgba(255, 255, 255, .88) !important;
}

.login-hero__eyebrow:where(:not(.ui-gx *))::before {
	content: "";
	width: 26px;
	height: 3px;
	border-radius: 2px;
	background: var(--brand-orange);
	box-shadow: 0 0 18px rgba(236, 100, 8, .45);
}

.login-hero__inner h1:where(:not(.ui-gx *)) {
	font-family: var(--font-brand);
	font-weight: normal;
	font-size: clamp(38px, 3.35vw, 56px);
	line-height: 1.08;
	letter-spacing: -.025em;
	margin: 0 0 20px;
	color: #fff;
	text-shadow: 0 2px 22px rgba(2, 24, 39, .30);
}

.login-hero__description:where(:not(.ui-gx *)) {
	max-width: 570px;
	font-size: clamp(15px, 1.15vw, 18px);
	line-height: 1.7;
	margin: 0;
	color: rgba(255, 255, 255, .86);
	text-shadow: 0 1px 12px rgba(2, 24, 39, .26);
}

.login-hero__list:where(:not(.ui-gx *)) {
	list-style: none;
	margin: 30px 0 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.login-hero__list li:where(:not(.ui-gx *)) {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	font-weight: 600;
	padding: 8px 13px 8px 9px;
	border-radius: 20px;
	background: rgba(7, 38, 57, .42);
	border: 1px solid rgba(255, 255, 255, .23);
	color: #fff;
	backdrop-filter: blur(6px);
}

.login-hero__list li:where(:not(.ui-gx *))::before {
	content: "✓";
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	font-size: 11px;
	font-weight: 800;
	color: #07314b;
	background: #fff;
}

/* ---------- painel direito (formulário) ---------- */

.login-panel:where(:not(.ui-gx *)) {
	flex: 0 0 var(--panel-w);
	width: var(--panel-w);
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	padding: 48px 58px;
	background:
		radial-gradient(circle at 100% 0%, rgba(32, 184, 232, .10), transparent 31%),
		linear-gradient(180deg, #fff 0%, #fbfdff 100%);
	box-shadow: var(--shadow);
	z-index: 1;
	overflow-y: auto;
}

.login-panel__shell:where(:not(.ui-gx *)) {
	width: 100%;
	max-width: 404px;
}

.login-panel__logo:where(:not(.ui-gx *)) {
	display: block;
	width: 190px;
	height: auto;
	margin: 0 auto 34px;
}

.login-panel__heading:where(:not(.ui-gx *)) {
	margin-bottom: 30px;
}

.login-panel__eyebrow:where(:not(.ui-gx *)) {
	display: flex;
	align-items: center;
	gap: 7px;
	margin: 0 0 12px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .105em;
	line-height: 1.4;
	text-transform: uppercase;
	color: var(--accent);
}

.login-panel__eyebrow svg:where(:not(.ui-gx *)) {
	width: 15px;
	height: 15px;
}

.login-panel h1:where(:not(.ui-gx *)) {
	font-family: var(--font-brand);
	font-weight: normal;
	font-size: 32px;
	line-height: 1.15;
	letter-spacing: -.018em;
	margin: 0 0 9px;
	color: var(--text);
}

.login-panel__sub:where(:not(.ui-gx *)) {
	margin: 0;
	font-size: 14px;
	line-height: 1.55;
	color: var(--text-2);
}

/* ---------- alerta de erro geral ---------- */

.alert-erro:where(:not(.ui-gx *)) {
	position: relative;
	margin: -8px 0 22px;
	padding: 13px 15px 13px 42px;
	border-radius: var(--radius-sm);
	background: var(--crit-bg);
	border: 1px solid var(--crit-line);
	color: #8f2226;
	font-size: 13px;
	line-height: 1.45;
}

.alert-erro:where(:not(.ui-gx *))::before {
	content: "!";
	position: absolute;
	top: 13px;
	left: 15px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	font-size: 12px;
	font-weight: 800;
	color: #fff;
	background: var(--crit);
}

.alert-erro b:where(:not(.ui-gx *)) { color: #7a1c20; }

/* ---------- campos ---------- */

.form-group:where(:not(.ui-gx *)) { margin-bottom: 20px; }

.form-group label:where(:not(.ui-gx *)) {
	display: block;
	margin-bottom: 6px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .065em;
	text-transform: uppercase;
	color: var(--text-2);
}

.login-panel input[type=text]:where(:not(.ui-gx *)),
.login-panel input[type=password]:where(:not(.ui-gx *)) {
	display: block;
	width: 100%;
	height: 50px;
	padding: 0 15px;
	font-family: var(--font);
	font-size: 15px;
	color: var(--text);
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	outline: none;
	box-shadow: 0 1px 2px rgba(20, 35, 55, .025);
	transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}

.form-group label.error:where(:not(.ui-gx *)) { color: var(--crit); }

.login-panel input[type=text]:where(:not(.ui-gx *))::placeholder,
.login-panel input[type=password]:where(:not(.ui-gx *))::placeholder { color: var(--text-3); }

.login-panel input[type=text]:focus:where(:not(.ui-gx *)),
.login-panel input[type=password]:focus:where(:not(.ui-gx *)) {
	border-color: var(--accent);
	box-shadow: var(--ring);
	background: #fff;
}

.login-panel input.is-invalid:where(:not(.ui-gx *)),
.login-panel input.error:where(:not(.ui-gx *)) {
	border-color: var(--crit);
	box-shadow: 0 0 0 3px var(--crit-bg);
}

.field-error:where(:not(.ui-gx *)) {
	display: block;
	margin-top: 6px;
	font-size: 12.5px;
	color: var(--crit);
}

.field-error label.error:where(:not(.ui-gx *)) {
	display: inline;
	margin: 0;
	padding: 0;
	font-size: inherit;
	font-weight: normal;
	letter-spacing: normal;
	text-transform: none;
	color: inherit;
}

/* senha + botão de mostrar/ocultar */

.input-wrap:where(:not(.ui-gx *)) { position: relative; }

.input-wrap input[type=text]:where(:not(.ui-gx *)),
.input-wrap input[type=password]:where(:not(.ui-gx *)) { padding-right: 46px; }

.toggle-senha:where(:not(.ui-gx *)) {
	position: absolute;
	top: 50%;
	right: 8px;
	transform: translateY(-50%);
	display: flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	padding: 0;
	border: 0;
	border-radius: var(--radius-sm);
	background: transparent;
	color: var(--text-3);
	cursor: pointer;
	line-height: 0;
}

.toggle-senha:hover:where(:not(.ui-gx *)) { background: var(--accent-weak); color: var(--accent); }
.toggle-senha:focus:where(:not(.ui-gx *)) { outline: none; box-shadow: var(--ring); color: var(--accent); }
.toggle-senha svg:where(:not(.ui-gx *)) { width: 18px; height: 18px; display: block; }
.toggle-senha .icone-oculto:where(:not(.ui-gx *)) { display: none; }
.toggle-senha[aria-pressed="true"] .icone-visivel:where(:not(.ui-gx *)) { display: none; }
.toggle-senha[aria-pressed="true"] .icone-oculto:where(:not(.ui-gx *)) { display: block; }

/* ---------- linha lembrar-me / esqueci a senha ---------- */

.form-row:where(:not(.ui-gx *)) {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin: 2px 0 26px;
}

.check-lembrete:where(:not(.ui-gx *)) {
	display: flex;
	align-items: center;
	gap: 8px;
}

.check-lembrete input[type=checkbox]:where(:not(.ui-gx *)) {
	width: 17px;
	height: 17px;
	margin: 0;
	accent-color: var(--accent);
	cursor: pointer;
}

.check-lembrete label:where(:not(.ui-gx *)) {
	margin: 0;
	font-size: 13px;
	font-weight: normal;
	letter-spacing: normal;
	text-transform: none;
	color: var(--text-2);
	cursor: pointer;
}

.link-senha:where(:not(.ui-gx *)) {
	font-size: 13px;
	font-weight: 600;
	color: var(--accent);
	text-decoration: none;
	white-space: nowrap;
}

.link-senha:hover:where(:not(.ui-gx *)) { text-decoration: underline; }
.link-senha:focus:where(:not(.ui-gx *)) { outline: none; box-shadow: var(--ring); border-radius: 4px; }

/* ---------- botão ---------- */

.btn-entrar:where(:not(.ui-gx *)) {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	width: 100%;
	min-height: 50px;
	padding: 13px 20px;
	font-family: var(--font);
	font-size: 15px;
	font-weight: 600;
	letter-spacing: .03em;
	color: #06344b;
	background: linear-gradient(135deg, var(--brand-cyan) 0%, #13a6d7 100%);
	border: 0;
	border-radius: var(--radius-sm);
	cursor: pointer;
	box-shadow: 0 10px 24px rgba(32, 184, 232, .24);
	transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}

.btn-entrar svg:where(:not(.ui-gx *)) { width: 18px; height: 18px; }
.btn-entrar:hover:where(:not(.ui-gx *)) { filter: brightness(.96); transform: translateY(-1px); box-shadow: 0 13px 28px rgba(32, 184, 232, .32); }
.btn-entrar:focus:where(:not(.ui-gx *)) { outline: none; box-shadow: var(--ring); }

.btn-entrar:disabled:where(:not(.ui-gx *)),
.btn-entrar[disabled]:where(:not(.ui-gx *)) {
	opacity: .6;
	cursor: not-allowed;
	transform: none;
	filter: none;
	box-shadow: none;
}

/* ---------- rodapé ---------- */

.login-footer:where(:not(.ui-gx *)) {
	margin-top: 38px;
	padding-top: 22px;
	border-top: 1px solid var(--border);
	font-size: 11px;
	line-height: 1.55;
	color: var(--text-3);
	text-align: left;
}

.login-footer p:where(:not(.ui-gx *)) { margin: 0; }

.login-footer__copyright:where(:not(.ui-gx *)) {
	display: flex;
	flex-wrap: wrap;
	gap: 3px 5px;
	color: var(--text-2);
}

.login-footer__copyright strong:where(:not(.ui-gx *)) { color: #36505f; }
.login-footer__copyright span:where(:not(.ui-gx *)) { color: var(--text-3); }

.login-footer__company:where(:not(.ui-gx *)) {
	margin-top: 6px !important;
	max-width: 370px;
}

/* ---------- responsivo ---------- */

@media screen and (max-width: 1100px) {
	:root:where(:not(.ui-gx *)) { --panel-w: 460px; }
	.login-hero:where(:not(.ui-gx *)) { padding: 38px; }
	.login-panel:where(:not(.ui-gx *)) { padding: 42px; }
	.login-hero__inner h1:where(:not(.ui-gx *)) { font-size: 38px; }
}

@media screen and (max-width: 900px) {
	.login-hero:where(:not(.ui-gx *)) { display: none; }

	.login-panel:where(:not(.ui-gx *)) {
		flex: 1 1 auto;
		width: 100%;
		padding: 42px 24px;
		background:
			radial-gradient(circle at 100% 0%, rgba(32, 184, 232, .13), transparent 34%),
			linear-gradient(180deg, #f7fbfd 0%, #fff 36%);
	}

	.login-panel__shell:where(:not(.ui-gx *)) { max-width: 420px; }
}

@media screen and (max-width: 400px) {
	.login-panel:where(:not(.ui-gx *)) { justify-content: flex-start; padding: 28px 18px; }
	.login-panel__logo:where(:not(.ui-gx *)) { width: 170px; margin-bottom: 28px; }
	.login-panel h1:where(:not(.ui-gx *)) { font-size: 29px; }
	.form-row:where(:not(.ui-gx *)) { align-items: flex-start; gap: 10px; }
	.check-lembrete label:where(:not(.ui-gx *)), .link-senha:where(:not(.ui-gx *)) { font-size: 12px; }
	.login-footer:where(:not(.ui-gx *)) { margin-top: 32px; }
}

@media screen and (max-width: 350px) {
	.form-row:where(:not(.ui-gx *)) { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
	*:where(:not(.ui-gx *)), *:where(:not(.ui-gx *))::before, *:where(:not(.ui-gx *))::after {
		scroll-behavior: auto !important;
		transition-duration: .01ms !important;
	}
}
