/* Tela de entrada da Construbi — segue a capa do Manual de Marca 2026:
   fundo grafite, logo em off-white com o pingo amarelo, frase da marca e a malha de pontos no canto.
   O cartão de entrada é branco, como o verso do cartão de visita. */
:root {
  --grafite: #23272d;
  --grafite-2: #2c3138;
  --amarelo: #f5b301;
  --offwhite: #f4f4f1;
  --cinza: #a9b1b9;
  --aco: #5e6873;
  --linha: #e3e4e0;
  --texto: #23272d;
  --alerta-bg: #f9e9e8;
  --alerta-txt: #b3261e;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body.lg { margin: 0; color: var(--offwhite); background: var(--grafite); overflow-x: hidden;
          font-family: "Manrope", "Segoe UI", system-ui, sans-serif; font-size: 14px; line-height: 1.5;
          -webkit-font-smoothing: antialiased; }

/* Malha de pontos no canto superior direito — nunca atrás de texto */
.lg-malha { position: fixed; top: clamp(24px, 6vh, 64px); right: clamp(20px, 5vw, 80px); width: clamp(150px, 16vw, 224px);
            height: auto; pointer-events: none; }
.lg-malha rect { fill: rgba(244, 244, 241, .12); }
.lg-malha rect.aceso { fill: var(--amarelo); animation: lg-acende .5s ease-out var(--d) both; }
@keyframes lg-acende { from { fill: rgba(244, 244, 241, .12); } }

.lg-page { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
           align-items: center; gap: 48px; max-width: 1280px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 80px); }

/* ---------- Esquerda: marca ---------- */
.lg-brand { display: flex; flex-direction: column; justify-content: space-between; min-height: 100vh; min-height: 100dvh;
            padding: clamp(32px, 9vh, 96px) 0; }
.lg-logo { width: clamp(180px, 22vw, 260px); height: auto; display: block; }
.lg-message h1 { font-weight: 600; font-size: clamp(30px, min(4.2vw, 6.4vh), 54px); line-height: 1.06; letter-spacing: -.03em;
                 margin: 0 0 18px; max-width: 12em; color: var(--offwhite); }
.lg-message p { margin: 0; color: var(--cinza); font-size: clamp(15px, 2vh, 18px); font-weight: 500; }

/* ---------- Direita: cartão branco ---------- */
.lg-side { display: flex; justify-content: flex-end; }
.lg-card { width: 100%; max-width: 380px; padding: 32px 30px 24px; background: #fff; color: var(--texto);
           border-radius: 16px; box-shadow: 0 30px 70px rgba(0, 0, 0, .35); }
.lg-card h2 { font-weight: 600; font-size: 22px; letter-spacing: -.02em; line-height: 1.2; margin: 0 0 22px; }

.lg-alert { background: var(--alerta-bg); color: var(--alerta-txt); border-radius: 8px; padding: 9px 12px;
            font-size: 13px; font-weight: 500; margin-bottom: 16px; }

.lg-form label { display: block; font-size: 13px; font-weight: 600; margin: 0 0 6px; }
.lg-form input[type=text], .lg-form input[type=password] {
  width: 100%; height: 42px; padding: 0 12px; font: inherit; color: var(--texto); background: #fff;
  border: 1px solid #d5d7d2; border-radius: 9px; margin-bottom: 16px; transition: border-color .15s, box-shadow .15s; }
.lg-form input:hover { border-color: var(--cinza); }
.lg-form input:focus { outline: none; border-color: var(--grafite); box-shadow: 0 0 0 3px rgba(245, 179, 1, .3); }

.lg-pass { position: relative; }
.lg-pass input { padding-right: 44px !important; }
.lg-eye { position: absolute; right: 5px; top: 5px; width: 32px; height: 32px; display: grid; place-items: center;
          border: none; background: none; color: var(--aco); border-radius: 6px; cursor: pointer; }
.lg-eye:hover, .lg-eye[aria-pressed="true"] { color: var(--grafite); background: #f3f3f1; }
.lg-eye:focus-visible { outline: 2px solid var(--amarelo); }

.lg-submit { width: 100%; height: 44px; margin-top: 4px; border: none; border-radius: 9px; cursor: pointer;
             background: var(--grafite); color: var(--offwhite); font: inherit; font-size: 15px; font-weight: 600;
             transition: background .15s; }
.lg-submit:hover { background: #3a4049; }
.lg-submit:focus-visible { outline: 3px solid var(--amarelo); outline-offset: 2px; }

.lg-foot { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--linha); color: var(--aco); font-size: 12.5px; }
.lg-foot p { margin: 0; }
.lg-restrito { color: var(--texto); font-weight: 600; margin-bottom: 2px !important; }
.lg-sep { display: inline-block; width: 12px; }

/* ---------- Celular e telas estreitas ---------- */
@media (max-width: 900px) {
  .lg-page { grid-template-columns: minmax(0, 1fr); gap: 0; padding: 0 16px; align-items: start; align-content: start; }
  .lg-brand { min-height: 0; padding: 32px 0 28px; gap: 40px; }
  .lg-logo { width: 160px; }
  .lg-message h1 { font-size: 30px; margin-bottom: 8px; }
  .lg-message p { font-size: 14px; }
  .lg-malha { width: 110px; top: 30px; right: 16px; }
  .lg-side { justify-content: center; padding-bottom: 40px; }
  .lg-card { max-width: none; padding: 26px 22px 20px; }
}
@media (prefers-reduced-motion: reduce) { .lg-malha rect.aceso { animation: none; } }
