/* Tela de login (Theo Systems): painel vermelho de marca + formulário limpo. Escopo #login. */
#login { --lg-red: #DC2626; --lg-red-d: #B91C1C; --lg-ink: #16161A; --lg-mute: #6B6B76; --lg-line: #E4E4E8;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); place-items: stretch; padding: 0; background: #fff;
  --lg-font: Inter, "Segoe UI", system-ui, -apple-system, sans-serif; font-family: var(--lg-font); }
#login .lgside { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; padding: clamp(32px, 5vw, 64px); color: #fff;
  background: radial-gradient(900px 520px at 10% 0%, #EF4444 0%, transparent 60%), linear-gradient(155deg, #DC2626 0%, #991B1B 55%, #7F1D1D 100%); }
#login .lgside::before, #login .lgside::after { content: ""; position: absolute; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .16); pointer-events: none; }
#login .lgside::before { width: 520px; height: 520px; right: -180px; bottom: -200px; }
#login .lgside::after { width: 320px; height: 320px; right: -60px; bottom: -80px; }
#login .lgbrand { display: flex; align-items: center; gap: 12px; font: 700 18px/1 var(--lg-font); letter-spacing: -.01em; }
#login .lgbrand .lgmark { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: #fff; color: var(--lg-red); font-weight: 800; font-size: 15px; box-shadow: 0 8px 20px -8px rgba(0, 0, 0, .45); }
#login .lgpitch { position: relative; max-width: 460px; }
#login .lgpitch h2 { margin: 0 0 14px; font: 700 clamp(30px, 3.4vw, 46px)/1.08 var(--lg-font); letter-spacing: -.03em; }
#login .lgpitch p { margin: 0; font-size: 17px; line-height: 1.55; color: rgba(255, 255, 255, .8); }
#login .lgfoot { position: relative; font-size: 13px; color: rgba(255, 255, 255, .6); }

#login .lgmain { display: grid; place-items: center; padding: 28px; background: #FAFAFB; }
#login .lgbox { width: min(400px, 100%); display: grid; gap: 16px; color: var(--lg-ink); }
#login .lglogo { display: none; }
#login .lgbox h1 { margin: 0; font: 700 32px/1.1 var(--lg-font); letter-spacing: -.03em; text-transform: none; color: var(--lg-ink); }
#login .lgsub { margin: -6px 0 10px; font-size: 15px; line-height: 1.5; color: var(--lg-mute); }
#login .lgf { display: grid; gap: 7px; font: 600 13px/1.2 var(--lg-font); letter-spacing: 0; text-transform: none; color: var(--lg-ink); }
#login .lgf input { width: 100%; min-height: 50px; padding: 0 16px !important; box-sizing: border-box; border: 1px solid var(--lg-line) !important; border-radius: 12px !important;
  background: #fff !important; color: var(--lg-ink) !important; font: 400 16px var(--lg-font) !important; letter-spacing: 0; box-shadow: 0 1px 2px rgba(20, 20, 30, .04) !important;
  transition: border-color .2s ease, box-shadow .2s ease; outline: none; }
#login .lgf input:hover { border-color: #CFCFD6 !important; }
#login .lgf input:focus { border-color: var(--lg-red) !important; box-shadow: 0 0 0 4px rgba(220, 38, 38, .14) !important; }
#login .lgpass { position: relative; display: block; }
#login .lgpass input { padding-right: 52px !important; }
#login .lgeye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 10px; background: transparent; color: var(--lg-mute); cursor: pointer; transition: background .2s ease, color .2s ease; }
#login .lgeye:hover { background: #F0F0F3; color: var(--lg-ink); }
#login .lgeye[aria-pressed="true"] { color: var(--lg-red); }
#login .lgeye .ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
#login .lggo { width: 100%; min-height: 52px; margin-top: 4px; border: 0; border-radius: 12px; cursor: pointer; color: #fff; font: 600 16px var(--lg-font); letter-spacing: 0;
  background: linear-gradient(180deg, #E23636, var(--lg-red)); box-shadow: 0 10px 22px -10px rgba(185, 28, 28, .8), inset 0 1px 0 rgba(255, 255, 255, .22);
  transition: transform .18s ease, box-shadow .2s ease, filter .2s ease; }
#login .lggo:hover { filter: brightness(1.06); box-shadow: 0 14px 26px -10px rgba(185, 28, 28, .85), inset 0 1px 0 rgba(255, 255, 255, .22); }
#login .lggo:active { transform: scale(.98); }
#login .lggo:focus-visible { outline: 3px solid rgba(220, 38, 38, .35); outline-offset: 2px; }
#login .lggo:disabled { opacity: .7; cursor: progress; }
#login .lgmsg { margin: 0; min-height: 20px; font-size: 14px; color: var(--lg-red-d); }
#login .lgmsg:empty { min-height: 0; }

@media (max-width: 860px) {
  #login { grid-template-columns: 1fr; grid-template-rows: auto 1fr; overflow-y: auto; }
  #login .lgside { padding: 22px 24px 28px; gap: 18px; justify-content: flex-start; }
  #login .lgpitch h2 { font-size: 26px; margin-bottom: 8px; }
  #login .lgpitch p { font-size: 15px; }
  #login .lgfoot { display: none; }
  #login .lgmain { align-items: start; padding: 28px 20px 40px; }
}
@media (prefers-reduced-motion: reduce) { #login * { transition: none !important; } }
