/* Páginas de LOGIN (redesenho 2026-08-27 — «a do portal SPAR», dono): painel de marca verde à esquerda + cartão do formulário à direita; no telemóvel/PDA fica
   só o cartão. Partilhado pelas 3 páginas (b2b/backoffice, WMS backoffice, WMS pocket) — só os textos mudam. Inter self-hosted (os ficheiros do backoffice2). */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("../backoffice2/fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("../backoffice2/fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url("../backoffice2/fonts/inter-latin-700-normal.woff2") format("woff2"); }

:root {
	--lg-green: #007954;       /* o verde da casa (backoffice2) */
	--lg-green-d: #006043;
	--lg-green-l: #00a05f;
	--lg-ink: #1f2430;
	--lg-muted: #6b7280;
	--lg-line: #e6e9ee;
	--lg-bg: #eef1f4;
	--lg-danger: #b42318;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; font-family: "Inter", system-ui, "Segoe UI", Roboto, Arial, sans-serif; color: var(--lg-ink); background: var(--lg-bg); }

.lg-wrap { display: flex; min-height: 100vh; }

/* ---------- painel de marca (esquerda) ---------- */
.lg-brand {
	position: relative; flex: 1 1 52%; overflow: hidden; color: #fff;
	background: linear-gradient(150deg, var(--lg-green-l) 0%, var(--lg-green) 55%, var(--lg-green-d) 100%);
	display: flex; flex-direction: column; justify-content: space-between; padding: 54px 60px;
}
.lg-brand::before, .lg-brand::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.lg-brand::before { width: 460px; height: 460px; top: -160px; right: -120px; background: radial-gradient(circle at center, rgba(255,255,255,.18), transparent 65%); }
.lg-brand::after { width: 520px; height: 520px; bottom: -220px; left: -140px; background: radial-gradient(circle at center, rgba(0,0,0,.16), transparent 65%); }
/* árvore SPAR em marca de água (o PNG é verde — passa a branco) */
.lg-tree { position: absolute; right: -70px; bottom: -60px; width: 460px; height: auto; opacity: .1; transform: rotate(-6deg); filter: brightness(0) invert(1); pointer-events: none; user-select: none; }
.lg-brand-top { position: relative; z-index: 1; font-weight: 700; letter-spacing: .5px; }
.lg-brand-top .lg-dot { color: #b7f5d3; }
.lg-brand-mid { position: relative; z-index: 1; }
.lg-brand-mid h1 { font-size: 40px; line-height: 1.12; margin: 0 0 14px; font-weight: 700; letter-spacing: -.5px; }
.lg-brand-mid p { margin: 0; font-size: 16px; max-width: 420px; color: rgba(255,255,255,.86); line-height: 1.55; }
.lg-brand-list { position: relative; z-index: 1; margin: 26px 0 0; padding: 0; list-style: none; }
.lg-brand-list li { display: flex; align-items: center; gap: 11px; margin: 11px 0; font-size: 14.5px; color: rgba(255,255,255,.92); }
.lg-chk { width: 22px; height: 22px; flex: 0 0 22px; border-radius: 50%; background: rgba(255,255,255,.16); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; }
.lg-brand-foot { position: relative; z-index: 1; font-size: 12.5px; color: rgba(255,255,255,.7); }

/* ---------- cartão do formulário (direita) ---------- */
.lg-panel { flex: 1 1 48%; display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.lg-card { width: 100%; max-width: 400px; animation: lg-rise .5s cubic-bezier(.2,.7,.3,1) both; }
@keyframes lg-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
.lg-logo { height: 46px; margin-bottom: 30px; }
.lg-card h2 { margin: 0 0 6px; font-size: 24px; font-weight: 700; letter-spacing: -.3px; }
.lg-sub { margin: 0 0 26px; color: var(--lg-muted); font-size: 14.5px; }

.lg-field { position: relative; margin-bottom: 16px; }
.lg-field .lg-ico { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #9aa3af; display: inline-flex; pointer-events: none; }
.lg-field input {
	width: 100%; height: 50px; padding: 0 46px; border: 1.5px solid var(--lg-line); border-radius: 12px; font-size: 16px; color: var(--lg-ink);
	background: #fff; transition: border-color .15s, box-shadow .15s; outline: none; font-family: inherit;
}
.lg-field input::placeholder { color: #aab1bb; }
.lg-field input:focus { border-color: var(--lg-green); box-shadow: 0 0 0 4px rgba(0,121,84,.13); }
.lg-toggle { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); background: none; border: 0; cursor: pointer; color: #9aa3af; padding: 8px; border-radius: 8px; display: inline-flex; }
.lg-toggle:hover { color: var(--lg-green); background: rgba(0,121,84,.08); }

.lg-alert { display: flex; align-items: flex-start; gap: 9px; background: #fdecec; color: var(--lg-danger); border: 1px solid #f6c9cb; border-radius: 11px; padding: 11px 13px; font-size: 13.5px; line-height: 1.45; margin-bottom: 18px; }
.lg-alert svg { flex: 0 0 18px; margin-top: 1px; }

.lg-btn {
	width: 100%; height: 50px; border: 0; border-radius: 12px; background: linear-gradient(180deg, var(--lg-green-l), var(--lg-green)); color: #fff;
	font-size: 15.5px; font-weight: 700; letter-spacing: .2px; cursor: pointer; margin-top: 6px; font-family: inherit;
	box-shadow: 0 8px 18px -8px rgba(0,121,84,.7); transition: transform .12s, box-shadow .15s, filter .15s;
}
.lg-btn:hover { filter: brightness(1.04); box-shadow: 0 12px 22px -8px rgba(0,121,84,.75); }
.lg-btn:active { transform: translateY(1px); }
a.lg-btn { display: flex; align-items: center; justify-content: center; text-decoration: none; }   /* o botão em forma de link (página de bloqueio) */

.lg-links { margin-top: 16px; text-align: center; font-size: 13.5px; }
.lg-links a { color: var(--lg-green); text-decoration: none; font-weight: 600; }
.lg-links a:hover { text-decoration: underline; }
.lg-foot { margin-top: 22px; text-align: center; color: var(--lg-muted); font-size: 12.5px; }

/* ---------- responsivo: telemóvel e PDA ficam só com o cartão ---------- */
@media (max-width: 900px) {
	.lg-brand { display: none; }
	.lg-panel { padding: 28px 18px; }
}
@media (max-width: 420px) {
	.lg-logo { height: 40px; }
	.lg-card h2 { font-size: 21px; }
}

/* ---------- tema do WMS backoffice (dono 2026-08-27: cor diferente para se perceber que é a entrada certa) — azul-aço; trocar é mudar as 3 variáveis ---------- */
.lg-tema-armazem { --lg-green: #1d4e89; --lg-green-d: #143a66; --lg-green-l: #2f6db5; }
.lg-tema-armazem .lg-brand-top .lg-dot { color: #bfd7f5; }
.lg-tema-armazem .lg-field input:focus { box-shadow: 0 0 0 4px rgba(29,78,137,.13); }
.lg-tema-armazem .lg-toggle:hover { background: rgba(29,78,137,.08); }
.lg-tema-armazem .lg-btn { box-shadow: 0 8px 18px -8px rgba(29,78,137,.7); }
.lg-tema-armazem .lg-btn:hover { box-shadow: 0 12px 22px -8px rgba(29,78,137,.75); }
