@charset "utf-8";
/* Pagina de login do cliente (login.php): login, esqueci a senha, nova senha */

:root{
	--bg: #F3F6F9;
	--surface: #FFFFFF;
	--surface-sunken: #F6F8FA;
	--text: #1E2530;
	--text-muted: #5B6472;
	--border: #DFE5EB;
	--border-strong: #C5CED8;
	--danger: #B42318;
	--danger-bg: #FEF3F2;
	--ok: #067647;
	--ok-bg: #ECFDF3;
	--warn: #B54708;
	--warn-bg: #FFFAEB;
	--radius: 14px;
	--shadow: 0 1px 2px rgba(20,30,45,.05), 0 18px 40px -20px rgba(20,30,45,.28);
}

*,*::before,*::after{ box-sizing:border-box; }
html,body{ height:100%; }
body{
	margin:0;
	background:var(--bg);
	color:var(--text);
	font-family:'Public Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
	font-size:16px;
	line-height:1.55;
	-webkit-font-smoothing:antialiased;
}
a{ color:var(--accent); }
[hidden]{ display:none !important; }

.lg{
	min-height:100vh;
	display:grid;
	grid-template-columns:minmax(0, 5fr) minmax(0, 6fr);
}

/* ---- Painel da instituicao ---- */
.lg-brand{
	position:relative;
	overflow:hidden;
	display:flex;
	flex-direction:column;
	justify-content:space-between;
	gap:32px;
	padding:40px 48px;
	background:var(--accent);
	color:var(--accent-text);
}
.lg-brand::before,
.lg-brand::after{
	content:"";
	position:absolute;
	border-radius:50%;
	pointer-events:none;
	border:1px solid currentColor;
	opacity:.12;
}
.lg-brand::before{ width:520px; height:520px; right:-220px; bottom:-200px; }
.lg-brand::after{ width:340px; height:340px; right:-120px; bottom:-110px; }
.lg-brand > *{ position:relative; }

.lg-back{
	align-self:flex-start;
	display:inline-flex; align-items:center; gap:8px;
	color:inherit;
	text-decoration:none;
	font-weight:500;
	font-size:.95rem;
	opacity:.9;
	padding:6px 0;
}
.lg-back:hover,.lg-back:focus{ opacity:1; text-decoration:underline; color:inherit; }

.lg-brand-body{ max-width:440px; }
.lg-crest{
	display:inline-flex; align-items:center; justify-content:center;
	background:#fff;
	border-radius:16px;
	padding:14px;
	margin-bottom:28px;
	box-shadow:0 10px 30px -12px rgba(0,0,0,.35);
}
.lg-crest img{ display:block; max-width:96px; max-height:96px; width:auto; height:auto; }
.lg-eyebrow{
	margin:0 0 6px;
	font-size:.8rem;
	font-weight:600;
	letter-spacing:.08em;
	text-transform:uppercase;
	opacity:.85;
}
.lg-org{
	margin:0 0 14px;
	font-family:'Source Serif 4', Georgia, serif;
	font-weight:700;
	font-size:2.1rem;
	line-height:1.15;
	text-wrap:balance;
}
.lg-lead{ margin:0; font-size:1.05rem; opacity:.9; max-width:380px; }
.lg-brand-foot{ margin:0; font-size:.85rem; opacity:.8; display:flex; align-items:center; gap:8px; }

/* ---- Painel do formulario ---- */
.lg-panel{
	display:flex;
	flex-direction:column;
	align-items:center;
	justify-content:center;
	gap:20px;
	padding:48px 24px;
}
.lg-card{
	width:100%;
	max-width:420px;
	background:var(--surface);
	border:1px solid var(--border);
	border-radius:var(--radius);
	box-shadow:var(--shadow);
	padding:36px 36px 30px;
}
.lg-title{
	margin:0 0 6px;
	font-family:'Source Serif 4', Georgia, serif;
	font-weight:700;
	font-size:1.65rem;
	line-height:1.2;
	outline:none;
}
.lg-sub{ margin:0 0 26px; color:var(--text-muted); }
.lg-copy{ margin:0; font-size:.82rem; color:var(--text-muted); text-align:center; }

.lg-icon{
	width:52px; height:52px;
	border-radius:50%;
	display:flex; align-items:center; justify-content:center;
	font-size:22px;
	margin-bottom:18px;
}
.lg-icon.is-ok{ background:var(--ok-bg); color:var(--ok); }
.lg-icon.is-warn{ background:var(--warn-bg); color:var(--warn); }

.lg-form{ display:flex; flex-direction:column; gap:18px; }
.lg-field label{
	display:block;
	font-weight:600;
	font-size:.92rem;
	margin-bottom:6px;
}
.lg-label-row{ display:flex; align-items:baseline; justify-content:space-between; gap:12px; }
.lg-label-row label{ margin-bottom:6px; }
.lg-link{ font-size:.88rem; font-weight:500; text-decoration:none; }
.lg-link:hover,.lg-link:focus{ text-decoration:underline; }

.lg-input{ position:relative; }
.lg-input > .fa{
	position:absolute; left:14px; top:50%;
	transform:translateY(-50%);
	color:var(--text-muted);
	font-size:15px;
	width:16px; text-align:center;
	pointer-events:none;
}
.lg-input input{
	width:100%;
	height:48px;
	padding:0 46px 0 42px;
	font:inherit;
	color:var(--text);
	background:var(--surface-sunken);
	border:1px solid var(--border-strong);
	border-radius:10px;
	transition:border-color .15s, box-shadow .15s, background-color .15s;
}
.lg-input input::placeholder{ color:#8A93A0; }
.lg-input input:hover{ border-color:#A9B4C0; }
.lg-input input:focus{
	outline:none;
	background:var(--surface);
	border-color:var(--accent);
	box-shadow:0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent);
}
.lg-eye{
	position:absolute; right:4px; top:50%;
	transform:translateY(-50%);
	width:40px; height:40px;
	border:0; border-radius:8px;
	background:transparent;
	color:var(--text-muted);
	cursor:pointer;
	font-size:16px;
}
.lg-eye:hover{ color:var(--text); background:var(--bg); }
.lg-eye:focus-visible{ outline:2px solid var(--accent); outline-offset:1px; }
.lg-hint{ margin:6px 0 0; font-size:.84rem; color:var(--text-muted); }

.lg-turnstile{ min-height:65px; }

.lg-status{ margin:0; font-size:.92rem; }
.lg-status:empty{ display:none; }
.lg-status.is-error,
.lg-status.is-ok{
	padding:10px 12px;
	border-radius:8px;
	border:1px solid transparent;
}
.lg-status.is-error{ color:var(--danger); background:var(--danger-bg); border-color:#FECDCA; }
.lg-status.is-ok{ color:var(--ok); background:var(--ok-bg); border-color:#ABEFC6; }

.lg-btn{
	display:inline-flex; align-items:center; justify-content:center; gap:10px;
	width:100%;
	min-height:48px;
	padding:10px 20px;
	font:inherit;
	font-weight:600;
	font-size:1rem;
	color:var(--accent-text);
	background:var(--accent);
	border:0;
	border-radius:10px;
	cursor:pointer;
	text-decoration:none;
	transition:filter .15s, transform .05s;
}
.lg-btn:hover,.lg-btn:focus{ filter:brightness(.92); color:var(--accent-text); text-decoration:none; }
.lg-btn:active{ transform:translateY(1px); }
.lg-btn:focus-visible{ outline:3px solid color-mix(in srgb, var(--accent) 40%, transparent); outline-offset:2px; }
.lg-btn[disabled]{ cursor:progress; filter:saturate(.7) brightness(1.05); }

.lg-help{
	margin:22px 0 0;
	padding-top:18px;
	border-top:1px solid var(--border);
	font-size:.86rem;
	color:var(--text-muted);
}
.lg-done .lg-help{ border-top:0; padding-top:0; margin-top:0; }
.lg-alt{ margin:20px 0 0; text-align:center; font-size:.92rem; }
.lg-alt a{ text-decoration:none; font-weight:500; }
.lg-alt a:hover,.lg-alt a:focus{ text-decoration:underline; }

/* ---- Tablet / celular: painel da instituicao vira cabecalho ---- */
@media (max-width: 900px){
	.lg{ grid-template-columns:1fr; grid-template-rows:auto 1fr; }
	.lg-brand{ padding:20px 16px 28px; gap:18px; }
	.lg-brand::before{ width:360px; height:360px; right:-160px; bottom:-220px; }
	.lg-brand::after{ display:none; }
	.lg-brand-body{ display:flex; align-items:center; gap:16px; max-width:none; }
	.lg-crest{ margin:0; padding:8px; border-radius:12px; flex:none; }
	.lg-crest img{ max-width:56px; max-height:56px; }
	.lg-org{ font-size:1.3rem; margin:0; }
	.lg-eyebrow{ font-size:.72rem; margin-bottom:2px; }
	.lg-lead,.lg-brand-foot{ display:none; }
	.lg-panel{ justify-content:flex-start; padding:24px 16px 32px; }
}
@media (max-width: 480px){
	.lg-card{ padding:26px 20px 22px; border-radius:12px; }
	.lg-title{ font-size:1.4rem; }
}

@media (prefers-reduced-motion: reduce){
	*{ transition:none !important; }
}
