/* tela de login (login.php) */
:root {
	--lg-escuro: #1f2735;
	--lg-claro: #f4f6fa;
	--lg-branco: #ffffff;
	--lg-texto: #1b2333;
	--lg-texto-2: #4e5869;
	--lg-texto-3: #7a8496;
	--lg-borda: #d9dee7;
	--lg-verde: #8cc63f;
	--lg-verde-hover: #7db535;
	--lg-verde-texto: #3f7a0e;
	--lg-verde-claro: #b5e07a;
	--lg-vermelho: #b42318;
	--lg-vermelho-fundo: #fde8e6;
	--lg-vermelho-borda: #f2b8b2;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	color: var(--lg-texto);
	background: var(--lg-claro);
	-webkit-font-smoothing: antialiased;
}
.lg { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); min-height: 100vh; }

/* painel escuro */
.lg-painel {
	position: relative;
	overflow: hidden;
	background: var(--lg-escuro);
	color: #fff;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 64px clamp(32px, 6vw, 96px) 40px;
}
.lg-painel::before, .lg-painel::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.lg-painel::before { width: 620px; height: 620px; top: -230px; right: -190px; background: radial-gradient(circle, rgba(140, 198, 63, .30), rgba(140, 198, 63, 0) 65%); }
.lg-painel::after { width: 560px; height: 560px; bottom: -260px; left: -180px; background: radial-gradient(circle, rgba(120, 140, 170, .28), rgba(120, 140, 170, 0) 65%); }
.lg-painel-conteudo { position: relative; z-index: 1; max-width: 640px; }
.lg-rotulo { margin: 0 0 14px; font-size: 13px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--lg-verde-claro); }
.lg-painel h1 { margin: 0 0 18px; font-size: clamp(32px, 3.4vw, 46px); line-height: 1.12; font-weight: 800; letter-spacing: -.02em; }
.lg-apoio { margin: 0 0 40px; font-size: 17px; line-height: 1.6; color: #b8c0cd; }
.lg-destaques { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 22px; }
.lg-destaques li { display: flex; align-items: center; gap: 18px; }
.lg-destaque-icone { flex: none; width: 40px; height: 40px; border-radius: 10px; background: rgba(140, 198, 63, .14); color: var(--lg-verde-claro); display: flex; align-items: center; justify-content: center; font-size: 16px; }
.lg-destaques strong { display: block; font-size: 16px; margin-bottom: 2px; }
.lg-destaques span { color: #aab3c2; font-size: 14px; }
.lg-rodape { position: absolute; z-index: 1; left: clamp(32px, 6vw, 96px); bottom: 32px; margin: 0; font-size: 13px; color: #8b95a6; }

/* lado do formulário */
.lg-lado { display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.lg-cartao { width: 100%; max-width: 480px; background: var(--lg-branco); border: 1px solid #e6e9ef; border-radius: 24px; padding: 40px 38px 30px; box-shadow: 0 24px 60px rgba(31, 39, 53, .08), 0 2px 6px rgba(31, 39, 53, .04); }
.lg-logo { display: inline-flex; margin-bottom: 26px; text-decoration: none; }
.lg-logo img { height: 44px; width: auto; display: block; }
.lg-logo-texto { font-size: 32px; font-weight: 800; color: var(--lg-texto); letter-spacing: -.02em; }
.lg-cartao h2 { margin: 0 0 6px; font-size: 26px; font-weight: 800; letter-spacing: -.01em; }
.lg-sub { margin: 0 0 22px; color: var(--lg-texto-2); font-size: 14.5px; line-height: 1.5; }

.lg-erro { display: flex; align-items: flex-start; gap: 10px; background: var(--lg-vermelho-fundo); border: 1px solid var(--lg-vermelho-borda); color: var(--lg-vermelho); border-radius: 12px; padding: 13px 14px; margin: 0 0 20px; font-size: 14px; font-weight: 600; line-height: 1.4; }
.lg-erro > i { margin-top: 2px; font-size: 16px; }
.lg-erro span { flex: 1; }
.lg-erro-fechar { border: none; background: transparent; color: var(--lg-vermelho); cursor: pointer; padding: 2px 4px; font-size: 16px; border-radius: 6px; line-height: 1; }
.lg-erro-fechar:hover { background: rgba(180, 35, 24, .08); }

.lg-form label, .lg-dialogo label { display: block; font-size: 14px; font-weight: 700; margin: 0 0 7px; color: var(--lg-texto); }
.lg-campo { position: relative; margin-bottom: 18px; }
.lg-campo > i { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--lg-texto-3); font-size: 15px; pointer-events: none; }
.lg-campo input { width: 100%; height: 48px; border: 1px solid var(--lg-borda); border-radius: 12px; padding: 0 46px 0 42px; font-size: 15px; color: var(--lg-texto); background: #fff; font-family: inherit; transition: border-color .15s, box-shadow .15s; }
.lg-campo input::placeholder { color: #8d96a5; }
.lg-campo input:focus { outline: none; border-color: var(--lg-verde-texto); box-shadow: 0 0 0 3px rgba(140, 198, 63, .25); }
.lg-form.com-erro .lg-campo input { border-color: #e48a82; }
.lg-form.com-erro .lg-campo input:focus { border-color: var(--lg-vermelho); box-shadow: 0 0 0 3px rgba(180, 35, 24, .15); }
.lg-olho { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: none; background: transparent; color: var(--lg-texto-2); width: 36px; height: 36px; border-radius: 8px; cursor: pointer; font-size: 16px; }
.lg-olho:hover { background: #f1f3f7; }

.lg-linha { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 2px 0 22px; flex-wrap: wrap; }
.lg-form .lg-check { display: inline-flex; align-items: center; gap: 10px; margin: 0; font-weight: 600; cursor: pointer; }
.lg-check input { width: 20px; height: 20px; margin: 0; accent-color: var(--lg-verde-texto); cursor: pointer; }
.lg-link { border: none; background: none; padding: 0; color: var(--lg-verde-texto); font-weight: 700; font-size: 14px; cursor: pointer; font-family: inherit; }
.lg-link:hover { text-decoration: underline; }

.lg-entrar { width: 100%; height: 50px; border: none; border-radius: 12px; background: var(--lg-verde); color: #17240a; font-size: 16px; font-weight: 700; font-family: inherit; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 10px; box-shadow: 0 10px 24px rgba(140, 198, 63, .28); transition: background .15s, transform .05s; }
.lg-entrar:hover { background: var(--lg-verde-hover); }
.lg-entrar:active { transform: translateY(1px); }
.lg-entrar:disabled { opacity: .6; cursor: default; }

.lg-planos { margin: 24px 0 0; padding-top: 20px; border-top: 1px solid #e9ecf1; text-align: center; color: var(--lg-texto-2); font-size: 14.5px; }
.lg-planos a { color: var(--lg-texto); font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--lg-verde); }
.lg-planos a:hover { color: var(--lg-verde-texto); }

:focus-visible { outline: 3px solid rgba(63, 122, 14, .55); outline-offset: 2px; }
.lg-campo input:focus-visible { outline: none; }

/* recuperar senha */
.lg-dialogo { border: none; border-radius: 18px; padding: 0; width: min(440px, calc(100vw - 32px)); color: var(--lg-texto); box-shadow: 0 24px 60px rgba(0, 0, 0, .25); }
.lg-dialogo::backdrop { background: rgba(31, 39, 53, .55); }
.lg-dialogo form { padding: 26px; }
.lg-dialogo h3 { margin: 0 0 6px; font-size: 20px; font-weight: 800; }
.lg-dialogo .lg-campo { margin-bottom: 10px; }
.lg-dialogo .lg-campo input { padding-right: 14px; }
.lg-recuperar-msg { min-height: 20px; margin: 0 0 14px; font-size: 14px; color: var(--lg-texto-2); }
.lg-recuperar-msg.ok { color: var(--lg-verde-texto); font-weight: 600; }
.lg-recuperar-msg.erro { color: var(--lg-vermelho); font-weight: 600; }
.lg-dialogo-botoes { display: flex; justify-content: flex-end; gap: 10px; }
.lg-botao-claro { height: 44px; padding: 0 18px; border-radius: 12px; border: 1px solid var(--lg-borda); background: #fff; color: var(--lg-texto); font-weight: 700; font-family: inherit; cursor: pointer; }
.lg-entrar-compacto { width: auto; height: 44px; padding: 0 20px; box-shadow: none; font-size: 15px; }

@media (max-width: 960px) {
	.lg { grid-template-columns: minmax(0, 1fr); }
	.lg-painel { display: none; }
	.lg-lado { min-height: 100vh; padding: 24px 16px; }
}
@media (max-width: 480px) {
	.lg-cartao { padding: 28px 20px 22px; border-radius: 18px; }
	.lg-cartao h2 { font-size: 23px; }
	.lg-logo img { height: 38px; }
}
