/* Login v3 — layout dividido: painel de marca + formulário */
/* O style.css reserva 60px no topo para o menu fixo; o login não tem menu */
body.ui2.eco-login { background: #fff; margin: 0; padding-top: 0; }
.lg { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }

/* ---------- Painel de marca ---------- */
.lg-brand {
  position: relative; overflow: hidden; color: #fff;
  background: radial-gradient(120% 90% at 0% 0%, #1F7351 0%, #123F30 55%, #0B2A20 100%);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 3rem clamp(2rem, 5vw, 4.5rem);
}
.lg-deco { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.lg-brand > *:not(.lg-deco) { position: relative; z-index: 1; }
.lg-badge {
  align-self: flex-start; background: #fff; border-radius: 14px; padding: .7rem 1.1rem;
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
}
.lg-badge img { display: block; height: 40px; width: auto; }
.lg-hero h2 {
  font-family: var(--ui-head, 'Archivo', sans-serif); font-weight: 700;
  font-size: clamp(1.8rem, 3.2vw, 2.7rem); line-height: 1.12; margin: 0 0 1rem; max-width: 18ch;
}
.lg-hero h2 span { color: #8BE0B2; }
.lg-hero p { color: rgba(255,255,255,.78); max-width: 42ch; margin: 0 0 2rem; font-size: 1.02rem; }
.lg-feats { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; }
.lg-feats li {
  display: flex; align-items: center; gap: .85rem; font-size: .96rem; color: rgba(255,255,255,.92);
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(6px); border-radius: 12px; padding: .7rem .95rem; max-width: 30rem;
}
.lg-feats .ic {
  flex: none; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center;
  background: rgba(139,224,178,.18); color: #8BE0B2;
}
.lg-feats svg { width: 20px; height: 20px; }
.lg-foot { font-size: .82rem; color: rgba(255,255,255,.55); }

/* ---------- Painel do formulário ---------- */
.lg-form-side { display: flex; align-items: center; justify-content: center; padding: 2rem 1.25rem; background: var(--ui-n25, #F7F9F8); }
.lg-box { width: 100%; max-width: 26rem; }
.lg-logo { display: block; width: min(15rem, 70%); height: auto; margin: 0 auto 1.75rem; }
.lg-card {
  background: #fff; border: 1px solid var(--ui-n200, #DCE3E0); border-radius: 18px;
  box-shadow: 0 10px 30px rgba(22,29,26,.07); padding: 2rem;
}
.lg-card h1 { font-family: var(--ui-head, 'Archivo', sans-serif); font-size: 1.55rem; margin: 0 0 .25rem; }
.lg-card .sub { color: var(--ui-n500, #5A6862); margin: 0 0 1.5rem; }
.lg-field { position: relative; margin-bottom: 1.1rem; }
.lg-field label { display: block; font-weight: 600; font-size: .86rem; margin-bottom: .4rem; }
.lg-input { position: relative; }
.lg-input > svg.lead {
  position: absolute; left: .95rem; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px; color: var(--ui-n400, #8A9892); pointer-events: none;
}
.lg-input .form-control { padding-left: 2.7rem; height: 3rem; border-radius: 10px; }
.lg-input .form-control:focus ~ svg.lead { color: var(--ui-g500, #1F7351); }
.lg-input.has-toggle .form-control { padding-right: 3rem; }
.lg-toggle {
  position: absolute; right: .4rem; top: 50%; transform: translateY(-50%); border: 0; background: none;
  width: 2.3rem; height: 2.3rem; border-radius: 8px; color: var(--ui-n500, #5A6862); display: grid; place-items: center;
}
.lg-toggle:hover { background: var(--ui-n50, #EEF2F0); }
.lg-toggle svg { width: 20px; height: 20px; }
.lg-toggle .off { display: none; }
.lg-toggle[aria-pressed="true"] .on { display: none; }
.lg-toggle[aria-pressed="true"] .off { display: block; }
.lg-row { display: flex; justify-content: space-between; align-items: center; margin: -.25rem 0 1.25rem; font-size: .88rem; }
.lg-row a { font-weight: 600; }
.lg-submit {
  height: 3rem; border-radius: 10px; font-weight: 600; font-size: 1.02rem;
  background: linear-gradient(135deg, #1F7351, #175C42); border: 0;
  box-shadow: 0 6px 16px rgba(31,115,81,.28); transition: transform .12s, box-shadow .12s;
}
.lg-submit:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(31,115,81,.34); }
.lg-submit:disabled { opacity: .75; transform: none; }
.lg-sep { display: flex; align-items: center; gap: .75rem; color: var(--ui-n400, #8A9892); font-size: .8rem; margin: 1.5rem 0 1rem; }
.lg-sep::before, .lg-sep::after { content: ""; flex: 1; height: 1px; background: var(--ui-n200, #DCE3E0); }
.lg-reg { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.lg-reg a {
  display: flex; flex-direction: column; align-items: center; gap: .35rem; text-align: center; text-decoration: none;
  border: 1px solid var(--ui-n200, #DCE3E0); border-radius: 12px; padding: .85rem .5rem; font-size: .86rem; font-weight: 600;
  color: var(--ui-n800, #27302C); background: #fff; transition: border-color .12s, background .12s;
}
.lg-reg a:hover { border-color: var(--ui-g400, #4BA37D); background: var(--ui-g50, #EFF8F3); }
.lg-reg svg { width: 22px; height: 22px; color: var(--ui-g500, #1F7351); }
.lg-legal { text-align: center; color: var(--ui-n400, #8A9892); font-size: .78rem; margin: 1.25rem 0 0; }

@media (max-width: 991.98px) {
  .lg { grid-template-columns: 1fr; }
  .lg-brand { display: none; }
  .lg-form-side { min-height: 100vh; align-items: flex-start; padding-top: 2.5rem; background:
    radial-gradient(60% 40% at 100% 0%, rgba(75,163,125,.16), transparent 70%), var(--ui-n25, #F7F9F8); }
}
@media (max-width: 420px) { .lg-card { padding: 1.4rem; } .lg-reg { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .lg-submit { transition: none; } }
