/*
 * Layout novo da tela de login (index_areaAdmin.jsp).
 * Não é usado pelos clientes White Label (index_areaAdmin_OEM.jsp).
 */
:root {
	--lg-azul: #073eae;
	--lg-azul-escuro: #052f85;
	--lg-painel: #e3e5ea;
	--lg-borda: #c9cdd6;
	--lg-texto: #2b2f38;
	--lg-texto-suave: #6b7080;
	--lg-branco: #ffffff;
	--lg-fonte: 'Lexend', 'Roboto', Arial, sans-serif;
	touch-action: pan-x pan-y;
}

html, body#fundo-login {
	height: 100%;
	margin: 0;
	padding: 0;
}

body#fundo-login {
	background-color: #11141b !important;
	font-family: var(--lg-fonte) !important;
	font-weight: 300 !important;
	color: var(--lg-texto);
	overflow: hidden !important;
	/* index.jsp troca para display:flex depois de decidir se o cliente é White Label */
	display: table-column;
}

body#fundo-login .ui-widget-overlay,
body#fundo-login .ui-widget {
	z-index: 10000 !important;
}

#areaAdmin {
	position: relative;
	display: flex;
	width: 100%;
	height: 100vh;
	overflow: hidden;
}

/* ---------- PAINEL ESQUERDO ---------- */

#painelLogin {
	position: relative;
	z-index: 2;
	width: 29%;
	min-width: 420px;
	max-width: 560px;
	height: 100%;
	background: var(--lg-painel);
	border-radius: 0 24px 24px 0;
	overflow-y: auto;
	display: flex;
	box-shadow: 8px 0 30px rgba(0, 0, 0, .25);
}

.lg-conteudo {
	width: 100%;
	max-width: 470px;
	margin: auto;
	padding: 40px 42px;
	box-sizing: border-box;
}

.lg-logos {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.lg-logo-ezpoint {
	width: 290px;
	max-width: 100%;
}

.lg-logo-rwtech {
	display: flex;
	align-items: center;
	gap: 6px;
	align-self: center;
	margin: 17px 0 0 160px;
	color: #8a8f99 !important;
	font-size: 13px;
	text-decoration: none !important;
	transition: opacity .2s;
}

.lg-logo-rwtech:hover {
	opacity: .7;
}

.lg-logo-rwtech img {
	height: 22px;
}

.lg-subtitulo {
	margin: 17px 38px;
	text-align: center;
	color: var(--lg-texto-suave);
	font-size: 14px;
	line-height: 1.35;
	margin-top: 25px;
}

/* abas Login / Bater Ponto */
.lg-abas {
	display: flex;
/* 	margin-bottom: 20px; */
	border: 1px solid var(--lg-borda);
	border-radius: 4px;
	overflow: hidden;
	background: #eef0f4;
	margin-top: 20px;
}

.lg-aba {
	flex: 1;
	height: 50px;
	border: none;
	background: transparent;
	color: var(--lg-texto);
	font-family: var(--lg-fonte);
	font-size: 17px;
	font-weight: 400;
	cursor: pointer;
	box-shadow: none !important;
	transition: background .2s, color .2s;
}

.lg-aba:hover {
	background: #e2e6ee;
}

.lg-aba.ativa {
	background: var(--lg-azul);
	color: var(--lg-branco);
}

/* campos */
.lg-label {
	display: block;
	margin: 14px 0 8px;
	color: var(--lg-texto);
	font-family: var(--lg-fonte);
	font-size: 16px;
	font-weight: 400;
}

#fundo-login .lg-input {
	display: block;
	width: 100% !important;
	height: 50px !important;
	margin: 0 !important;
	padding: 0 14px;
	box-sizing: border-box;
	border: 1px solid var(--lg-borda);
	border-radius: 4px !important;
	background: #eef0f4 !important;
	box-shadow: none !important;
	color: var(--lg-texto);
	font-family: var(--lg-fonte);
	font-size: 16px;
	outline: none;
	transition: border-color .2s, background .2s;
}

#fundo-login .lg-input:focus {
	border-color: var(--lg-azul);
	background: var(--lg-branco) !important;
}

.lg-linha {
	display: flex;
	gap: 18px;
}

.lg-coluna {
	flex: 1;
	min-width: 0;
}

/* botões */
#fundo-login .lg-btn-primario {
	display: block;
	width: 100% !important;
	height: 50px;
	margin-top: 30px;
	border: none;
	border-radius: 2px;
	background: var(--lg-azul) !important;
	background-image: none !important;
	box-shadow: none !important;
	color: var(--lg-branco) !important;
	font-family: var(--lg-fonte);
	font-size: 20px;
	font-weight: 400;
	cursor: pointer;
	transition: background .2s;
}

#fundo-login .lg-btn-primario:hover {
	background: var(--lg-azul-escuro) !important;
}

.lg-link-centro {
	margin-top: 22px;
	text-align: center;
}

.lg-link-centro a {
	color: var(--lg-azul-escuro) !important;
	font-size: 17px;
	text-decoration: underline !important;
	cursor: pointer;
}

/* bater ponto */
.lg-relogio {
	color: var(--lg-azul);
	font-size: 44px;
	font-weight: 400;
	line-height: 1;
	margin: 20px 0 6px;
	font-variant-numeric: tabular-nums;
	text-align: center;
}

.lg-teclado {
	display: grid;
	grid-template-columns: repeat(5, 1fr) 2fr;
	gap: 6px;
	margin-top: 24px;
}

.lg-teclado button {
	height: 62px;
	border: 1px solid var(--lg-azul);
	border-radius: 2px;
	background: #eef0f4;
	box-shadow: none !important;
	color: var(--lg-texto);
	font-family: var(--lg-fonte);
	font-size: 20px;
	cursor: pointer;
	transition: background .15s;
}

.lg-teclado button:hover {
	background: #dce3f3;
}

.lg-teclado button:active {
	background: #c6d2ee;
}

.lg-teclado img {
	width: 28px;
}

.lg-dispositivo {
	margin: 18px 0 0;
	text-align: center;
	color: var(--lg-texto-suave);
	font-size: 13px;
	word-break: break-all;
}

#recuperar-senha-form,
#esqueci-senha-sucesso {
	text-align: center;
}

#recuperar-senha-form form {
	text-align: left;
}

#esqueci-senha-sucesso img {
	margin-top: 30px;
}

/* ---------- CARROSSEL (DIREITA) ---------- */

#painelCarrossel {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	/* passa por baixo do canto arredondado do painel de login */
	left: calc(min(max(29%, 420px), 560px) - 30px);
	z-index: 1;
	overflow: hidden;
	background: linear-gradient(135deg, var(--lg-azul) 0%, #061a47 100%);
	color: var(--lg-branco);
}

#carrosselSlides .lg-slide {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	opacity: 0;
	transition: opacity 1s ease;
}

#carrosselSlides .lg-slide.ativo {
	opacity: 1;
}

/* escurece a esquerda para o texto ficar legível sobre qualquer imagem */
#painelCarrossel::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(0, 0, 0, .85) 0%, rgba(0, 0, 0, .55) 35%, rgba(0, 0, 0, 0) 70%);
	pointer-events: none;
}

.lg-carrossel-conteudo {
	position: absolute;
	z-index: 2;
	top: 50%;
	left: 130px;
	max-width: 560px;
	transform: translateY(-50%);
	transition: opacity .5s ease;
}

.lg-carrossel-conteudo.trocando {
	opacity: 0;
}

.lg-carrossel-logo {
	height: 48px;
	/* logo cinza -> branco */
	filter: brightness(0) invert(1);
}

#carrosselTitulo {
	margin: 28px 0 0;
	color: var(--lg-branco);
	font-family: Arial, 'Helvetica Neue', sans-serif;
	font-size: 40px;
	font-weight: 400;
	line-height: 1.2;
	overflow-wrap: anywhere;
}

#carrosselTexto {
	margin: 28px 0 0;
	max-width: 400px;
	color: var(--lg-branco);
	font-size: 17px;
	line-height: 1.9;
	white-space: pre-line;
	overflow-wrap: anywhere;
}

.lg-btn-contorno {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 180px;
	max-width: 100%;
	height: 50px;
	margin-top: 60px;
	border: 1px solid var(--lg-branco);
	border-radius: 31px;
	color: var(--lg-branco) !important;
	font-family: Arial, 'Helvetica Neue', sans-serif;
	font-size: 20px;
	text-decoration: none !important;
	transition: background .2s, color .2s;
}

.lg-btn-contorno:hover {
	background: var(--lg-branco);
	color: var(--lg-texto) !important;
}

.lg-indicadores {
	position: absolute;
	z-index: 2;
	left: 130px;
	bottom: 40px;
	display: flex;
	gap: 10px;
}

.lg-indicadores button {
	width: 10px;
	height: 10px;
	padding: 0;
	border: none;
	border-radius: 50%;
	background: rgba(255, 255, 255, .45);
	box-shadow: none !important;
	cursor: pointer;
	transition: width .3s, background .3s;
}

.lg-indicadores button.ativo {
	width: 28px;
	border-radius: 5px;
	background: var(--lg-branco);
}

/* ---------- RESPONSIVO ---------- */

@media (max-width: 1280px) {
	.lg-carrossel-conteudo,
	.lg-indicadores {
		left: 80px;
	}

	.lg-carrossel-conteudo {
		max-width: min(480px, calc(100% - 120px));
	}

	#carrosselTitulo {
		font-size: 32px;
	}
}

@media (max-height: 820px) {
	.lg-conteudo {
		padding: 24px 36px;
	}

	.lg-logo-ezpoint {
		width: 230px;
	}

	.lg-subtitulo {
		margin: 17px 0 16px;
		font-size: 11px;
	}

	.lg-aba,
	#fundo-login .lg-input,
	.lg-teclado button {
/* 		height: 48px !important; */
		height: 35px !important;
	}

	.lg-label {
		margin: 10px 0 6px;
	}

	#fundo-login .lg-btn-primario {
		height: 45px;
		margin-top: 20px;
	}

	.lg-relogio {
		font-size: 36px;
	}

	.lg-teclado {
		margin-top: 16px;
	}
}

/* tablet e celular: só o painel de login, ocupando a tela toda */
@media (max-width: 900px) {
	body#fundo-login {
		overflow-y: auto !important;
	}

	#areaAdmin {
		height: auto;
		min-height: 100vh;
	}

	#painelLogin {
		width: 100%;
		min-width: 0;
		max-width: none;
		border-radius: 0;
		box-shadow: none;
	}

	#painelCarrossel {
		display: none;
	}
}

@media (max-width: 480px) {
	.lg-conteudo {
		padding: 24px 16px;
	}

	.lg-logo-rwtech {
		margin-left: 120px;
	}

	.lg-teclado {
		gap: 4px;
	}

	.lg-teclado button {
		font-size: 18px;
	}
}

/* ---------- AVISO "NAVEGADOR CHROME RECOMENDADO" (index.jsp) ---------- */
/* O index.jsp define o aviso com estilo inline; aqui ele diminui junto com a largura da tela. */

#fundo-login #navegadorRecomendado {
	right: clamp(2px, 0.4vw, 5px) !important;
	bottom: clamp(2px, 0.4vw, 5px) !important;
	padding: clamp(2px, 0.4vw, 5px) !important;
	line-height: 1.6 !important;
	white-space: nowrap;
}

#fundo-login #navegadorRecomendado img {
	width: clamp(11px, 1.25vw, 10px) !important;
	height: clamp(11px, 1.25vw, 10px) !important;
	margin: 0 clamp(3px, 0.8vw, 10px) !important;
	vertical-align: middle;
}

#fundo-login #navegadorRecomendado strong {
	/* 13px em telas largas, até 10px nas pequenas */
	font-size: clamp(10px, 1vw, 10px) !important;
	margin: 0 clamp(3px, 0.8vw, 10px) 0 0 !important;
	vertical-align: middle;
}

/* ---------- MOSTRAR/OCULTAR SENHA (js/login/mostrarSenha.js) ---------- */

.lg-campo-senha {
	position: relative;
}

#fundo-login .lg-campo-senha .lg-input {
	padding-right: 46px;
}

.lg-btn-olho {
	position: absolute;
	top: 50%;
	right: 12px;
	transform: translateY(-50%);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 4px;
	border: none;
	background: transparent;
	box-shadow: none !important;
	color: var(--lg-texto);
	opacity: .6;
	cursor: pointer;
	transition: opacity .2s;
}

.lg-btn-olho:hover,
.lg-btn-olho:focus-visible {
	opacity: 1;
}

.lg-btn-olho svg {
	width: 20px;
	height: 20px;
}
