/* LRV · tema "Black Glass" (DL-CONEXAO-ACESSO-001, Etapa 4a): login, portal, telas soltas e as páginas de Acessos do Cadastro.
   Vale só onde o <body> tem a classe "glass"; o resto do Cadastro (e os outros módulos) segue como estava até a Etapa 4b.
   Fontes hospedadas aqui mesmo (static/fontes), sem pedir nada de fora. Escuro por padrão; claro quando a pessoa escolheu claro no botão de tema. */
@font-face { font-family: "Poppins"; font-weight: 400; font-style: normal; font-display: swap; src: url("fontes/poppins-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 500; font-style: normal; font-display: swap; src: url("fontes/poppins-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 600; font-style: normal; font-display: swap; src: url("fontes/poppins-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 500; font-style: normal; font-display: swap; src: url("fontes/cormorant-garamond-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 500; font-style: italic; font-display: swap; src: url("fontes/cormorant-garamond-latin-500-italic.woff2") format("woff2"); }

body.glass, :root.glass {
  --page: #0b0b0c; --surface: #141415; --surface-2: #1a1a1a; --surface-3: #232325;
  --border: rgba(221,215,201,.10); --border-forte: rgba(221,215,201,.22);
  --ink: #f6f7f2; --ink-2: #cfcabd; --muted: #9a968b; --grid: rgba(221,215,201,.10); --axis: rgba(221,215,201,.2);
  --accent: #d1a077; --accent-ink: #f0c99c; --accent-soft: rgba(185,133,88,.16); --s1: #5ec9bc; --s2: #d1a077; --neg: #f08a8a;
  --good-text: #5fd39a; --bad-text: #f08a8a; --nav: #0e0e0f; --nav-ink: #f6f7f2; --nav-muted: #9a968b;
  --hilite: rgba(240,201,156,.10); --ok-bg: rgba(95,211,154,.12); --ok-borda: rgba(95,211,154,.30); --erro-bg: rgba(240,138,138,.12);
  --erro-borda: rgba(240,138,138,.30); --info-bg: rgba(94,201,188,.10); --info-borda: rgba(94,201,188,.30); --alerta-bg: rgba(242,198,109,.12);
  --alerta-ink: #f2c66d;
  --lg-btn-a: #e0b88b; --lg-btn-b: #b98558; --lg-btn-ink: #1a1208; --lg-cobre: #956744; --lg-brilho: #f0c99c; --lg-vidro: #5ec9bc;
  --lg-glow-1: rgba(185,133,88,.20); --lg-glow-2: rgba(94,201,188,.12); --lg-sombra: 0 24px 60px rgba(0,0,0,.45);
  --serifa: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --mod-intranet: #7fb4ff; --mod-logistica: #5ec9bc; --mod-cadastro: #d1a077; --mod-producao: #c9a0f0; --mod-atacado: #8fd19e;
  color-scheme: dark;
}
body.glass, :root.glass body {
  font-family: "Poppins", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  background: radial-gradient(ellipse 55% 60% at 88% -5%, var(--lg-glow-1), transparent 70%),
              radial-gradient(ellipse 45% 50% at -5% 105%, var(--lg-glow-2), transparent 70%), var(--page);
  background-attachment: fixed;
}
:root[data-theme="light"] body.glass, :root.glass[data-theme="light"] {
  --page: #f6f7f2; --surface: #ffffff; --surface-2: #fbfbf8; --surface-3: #efeee8;
  --border: rgba(11,11,12,.10); --border-forte: rgba(11,11,12,.22);
  --ink: #0b0b0c; --ink-2: #46433d; --muted: #6f6d68; --grid: rgba(11,11,12,.10); --axis: rgba(11,11,12,.2);
  --accent: #8a5b38; --accent-ink: #8a5b38; --accent-soft: rgba(149,103,68,.12); --s1: #1f8077; --s2: #956744; --neg: #b42318;
  --good-text: #167a4a; --bad-text: #b42318; --nav: #14181a; --nav-ink: #f6f7f2; --nav-muted: #a8a49a;
  --hilite: #fff4e0; --ok-bg: #e9f5ee; --ok-borda: #b7dcc7; --erro-bg: #fdeceb; --erro-borda: #f3b8b4; --info-bg: #e8f4f2; --info-borda: #b9dcd7;
  --alerta-bg: #fff4e0; --alerta-ink: #8a5a00;
  --lg-btn-a: #a8754c; --lg-btn-b: #85572f; --lg-btn-ink: #ffffff; --lg-cobre: #956744; --lg-brilho: #956744; --lg-vidro: #1f8077;
  --lg-glow-1: rgba(185,133,88,.14); --lg-glow-2: rgba(31,128,119,.08); --lg-sombra: 0 18px 44px rgba(40,30,15,.10);
  --mod-intranet: #2161db; --mod-logistica: #00808f; --mod-cadastro: #8a5b38; --mod-producao: #7a4fc2; --mod-atacado: #2f8a4e; color-scheme: light;
}
/* menu lateral e componentes das páginas internas (Acessos) */
.glass .lateral { border-right: 1px solid var(--border); }
.glass .menu a.ativo { background: linear-gradient(90deg, rgba(185,133,88,.24), rgba(185,133,88,.04)); box-shadow: inset 3px 0 0 var(--accent); color: #fff; }
.glass .menu a:hover { background: rgba(255,255,255,.06); }
.glass .lateral :focus-visible, body.glass :focus-visible { outline-color: var(--lg-vidro); }
.glass .card { background: linear-gradient(180deg, var(--surface-2), var(--surface)); border-radius: 16px; }
.glass .btn { border-radius: 10px; background: transparent; color: var(--ink); border-color: var(--border-forte); }
.glass .btn:hover { border-color: var(--accent); }
.glass .btn-prim { background: linear-gradient(180deg, var(--lg-btn-a), var(--lg-btn-b)); border-color: transparent; color: var(--lg-btn-ink);
                       box-shadow: 0 8px 22px rgba(185,133,88,.22), inset 0 1px 0 rgba(255,255,255,.3); }
.glass .btn-prim:hover { background: linear-gradient(180deg, var(--lg-btn-a), var(--lg-btn-b)); filter: brightness(1.07); }
.glass input[type=text], .glass input[type=password], .glass input[type=email], .glass input[type=search], body.glass select {
  background: var(--surface); color: var(--ink); border-color: var(--border-forte); border-radius: 10px; }
.glass input[readonly] { background: var(--surface-2); }
.glass .etq { background: var(--surface-3); border-color: var(--border); }
.glass .etq.admin { color: var(--accent-ink); border-color: rgba(209,160,119,.4); background: var(--accent-soft); }
.glass .etq.ok { color: var(--good-text); background: var(--ok-bg); border-color: transparent; }
.glass .etq.alerta { color: var(--alerta-ink); background: var(--alerta-bg); border-color: transparent; }
.glass .lista th { background: var(--surface-2); text-transform: uppercase; letter-spacing: .08em; font-size: 11px; }
.glass .lista tbody tr:hover td { background: color-mix(in srgb, var(--surface-3) 55%, transparent); }
.glass .cab h1 { font-weight: 500; letter-spacing: -.4px; }
.glass .paginas-mod summary { cursor: pointer; font-weight: 600; color: var(--accent-ink); padding: 6px 0; }
.glass .bloco-mod { border: 1px solid var(--border); border-radius: 14px; background: var(--surface-2); padding: 12px 16px; }
.glass .marca-sinal svg { width: 34px; height: 34px; display: block; }

/* logo: o módulo traz as duas versões; no tema novo aparece só a nova */
.lg-novo { display: none; }
.glass .lg-novo { display: inline; }
.glass .lg-classico { display: none; }
.glass .lg-novo svg { width: 34px; height: 34px; display: block; }
#btn-visual { white-space: nowrap; }

/* partes das páginas internas que trazem azul fixo (início, avatar) e a paleta dos gráficos da DRE */
.glass .hero { background: radial-gradient(70% 90% at 100% 0%, rgba(185,133,88,.40), transparent 60%), radial-gradient(50% 80% at 0% 100%, rgba(94,201,188,.22), transparent 70%),
               linear-gradient(135deg, #0e0e0f 0%, #1a1a1a 55%, #2c3638 100%); border: 1px solid var(--border); }
.glass .hero h1 { font-family: var(--serifa); font-weight: 500; letter-spacing: -.5px; }
.glass .avatar { background: linear-gradient(135deg, var(--lg-btn-a), var(--lg-btn-b)); color: var(--lg-btn-ink); }
:root.glass.glass { --cx1: #2f5e59; --cx2: #5ec9bc; --cx3: #d1a077; --cx4: #f0c99c; --cx5: #6f6d68; }
:root.glass.glass[data-theme="light"] { --cx1: #b9dcd7; --cx2: #1f8077; --cx3: #956744; --cx4: #6b4a2f; --cx5: #a3a199; }

/* telas soltas (entrar, portal, trocar/recuperar senha) */
body.glass.corpo-solto .solta-topo { max-width: 1160px; }
body.glass.corpo-solto main.centro { padding-top: max(32px, 7vh); }
.glass .cartao-form { border-radius: 20px; padding: 26px; }
.glass .cartao-form h1 { font-family: var(--serifa); font-weight: 500; font-size: 34px; letter-spacing: -.5px; }

/* vidro e luz LED (decoração) */
.lg-vidro { position: absolute; border-radius: 20px; border: 1px solid rgba(94,201,188,.5);
            background: linear-gradient(135deg, rgba(94,201,188,.20), rgba(94,201,188,.04) 45%, rgba(255,255,255,.03));
            box-shadow: inset 0 1px 0 rgba(255,255,255,.4), inset 0 0 50px rgba(94,201,188,.09), var(--lg-sombra), 0 0 50px rgba(94,201,188,.10); backdrop-filter: blur(4px); }
.lg-vidro::before { content: ""; position: absolute; inset: 7px; border-radius: 14px; border: 1px solid rgba(255,255,255,.10); }
.lg-vidro::after { content: ""; position: absolute; left: 14%; right: 14%; bottom: -1px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, transparent, #9ff0e4, transparent); }
.lg-led { position: absolute; border-radius: 26px; border: 3px solid var(--lg-brilho); box-shadow: 0 0 26px rgba(240,201,156,.55), inset 0 0 22px rgba(240,201,156,.22); opacity: .9; }
:root[data-theme="light"] .lg-vidro { border-color: rgba(31,128,119,.45); background: linear-gradient(135deg, rgba(31,128,119,.14), rgba(31,128,119,.03) 50%, rgba(255,255,255,.4)); box-shadow: inset 0 1px 0 #fff, var(--lg-sombra); }
:root[data-theme="light"] .lg-led { border-color: #c99a70; box-shadow: 0 0 18px rgba(201,154,112,.45); }

/* marca */
.lg-marca { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.lg-marca svg { width: 40px; height: 40px; display: block; }
.lg-marca strong { display: block; font-size: 19px; font-weight: 600; letter-spacing: -.3px; line-height: 1.05; }
.lg-marca small { display: block; font-size: 9px; letter-spacing: 2.6px; color: var(--muted); font-weight: 600; margin-top: 4px; white-space: nowrap; }
.lg-kicker { display: flex; align-items: center; gap: 12px; color: var(--accent-ink); font-size: 11.5px; font-weight: 600; letter-spacing: 2.4px; text-transform: uppercase; }
.lg-kicker::before { content: ""; width: 34px; height: 2px; background: var(--lg-cobre); }
.lg-titulo { font-family: var(--serifa); font-weight: 500; letter-spacing: -1px; line-height: 1.03; margin: 16px 0 14px; }
.lg-titulo em { font-style: italic; color: var(--lg-brilho); }

/* entrar */
.lg-login { min-height: 100vh; display: grid; grid-template-columns: 1.1fr .9fr; }
.lg-arte { position: relative; overflow: hidden; display: flex; flex-direction: column; padding: 40px 48px; border-right: 1px solid var(--border); }
.lg-arte .lg-texto { position: relative; z-index: 2; max-width: 460px; margin-top: auto; margin-bottom: 36px; }
.lg-arte h1 { font-size: clamp(40px, 4.6vw, 62px); }
.lg-arte p { color: var(--ink-2); line-height: 1.7; margin: 0; }
.lg-arte .lg-marca, .lg-arte .lg-pe { position: relative; z-index: 2; }
.lg-pe { color: var(--muted); font-size: 12px; }
.lg-marca-agua { position: absolute; right: -2%; bottom: -9%; font-size: clamp(160px, 22vw, 330px); font-weight: 600; letter-spacing: -10px; line-height: 1; color: transparent; -webkit-text-stroke: 1px var(--border); user-select: none; }
.lg-arte .lg-led { left: 50%; top: 10%; width: 34%; height: 30%; }
.lg-arte .v1 { left: 36%; top: 15%; width: 36%; height: 26%; transform: rotate(-8deg); }
.lg-arte .v2 { left: 54%; top: 22%; width: 34%; height: 26%; transform: rotate(6deg); }
.lg-lado { display: grid; place-items: center; padding: 36px 28px; }
.lg-caixa { width: min(400px, 100%); }
.lg-caixa .lg-topo { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.lg-caixa h2 { font-size: 30px; font-weight: 400; letter-spacing: -.5px; margin: 0; }
.lg-caixa .lg-sub { color: var(--muted); font-size: 14px; margin: 0 0 22px; }
.lg-caixa .aviso { border-radius: 12px; }
.lg-caixa .btn-prim { width: 100%; min-height: 46px; font-size: 14.5px; border-radius: 12px; }
.lg-caixa .nota { margin-top: 20px; font-size: 12.5px; color: var(--muted); line-height: 1.6; }
.lg-caixa .nota a { color: var(--accent-ink); }

/* portal */
.lg-portal { min-height: 100vh; display: flex; flex-direction: column; }
.lg-barra { position: sticky; top: 0; z-index: 5; border-bottom: 1px solid var(--border); background: color-mix(in srgb, var(--page) 82%, transparent); backdrop-filter: blur(14px); }
.lg-barra .lg-caixa-larga { height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.lg-caixa-larga { width: min(1160px, calc(100% - 64px)); margin: 0 auto; }
.lg-acoes { display: flex; align-items: center; gap: 10px; }
.lg-quem { display: flex; align-items: center; gap: 10px; padding: 4px 14px 4px 4px; border: 1px solid var(--border); border-radius: 99px; background: var(--surface); font-size: 13px; line-height: 1.2; }
.lg-quem small { display: block; color: var(--muted); font-size: 11px; }
.lg-avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 600; color: var(--lg-btn-ink); background: linear-gradient(135deg, var(--lg-btn-a), var(--lg-btn-b)); }
.lg-icone-btn { width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: 12px; border: 1px solid var(--border); background: transparent; color: var(--ink-2); cursor: pointer; text-decoration: none; }
.lg-icone-btn:hover { color: var(--ink); border-color: var(--border-forte); }
.lg-escolha { position: relative; flex: 1; display: flex; align-items: center; overflow: hidden; padding: 36px 0 48px; }
.lg-escolha .lg-caixa-larga { position: relative; z-index: 2; }
.lg-cenario { position: absolute; inset: 0; opacity: .5; pointer-events: none; }
.lg-cenario .lg-vidro.a { left: -7%; top: 10%; width: 22%; height: 46%; transform: rotate(-8deg); }
.lg-cenario .lg-vidro.b { right: -6%; bottom: 4%; width: 22%; height: 44%; transform: rotate(7deg); }
.lg-cenario .lg-led { right: 9%; top: 7%; width: 13%; height: 30%; }
.lg-escolha-topo { text-align: center; margin-bottom: 38px; }
.lg-escolha-topo .lg-kicker { justify-content: center; }
.lg-escolha-topo .lg-kicker::before { display: none; }
.lg-escolha-topo h1 { font-size: clamp(38px, 4.4vw, 56px); margin: 14px 0 10px; }
.lg-escolha-topo p { color: var(--muted); font-size: 15px; margin: 0; }
.lg-linha { display: flex; justify-content: center; flex-wrap: nowrap; gap: clamp(10px, 1.6vw, 20px); }
a.lg-mod { position: relative; overflow: hidden; flex: 1 1 0; min-width: 0; max-width: 290px; min-height: clamp(190px, 24vw, 290px); display: flex; flex-direction: column; justify-content: space-between;
           padding: clamp(14px, 2.2vw, 26px); text-decoration: none; color: var(--ink); border-radius: 22px; border: 1px solid var(--border);
           background: radial-gradient(120% 70% at 50% 0%, color-mix(in srgb, var(--c) 14%, transparent), transparent 70%), linear-gradient(180deg, var(--surface-2), var(--surface));
           transition: transform .25s, border-color .25s, box-shadow .25s; }
a.lg-mod::after { content: ""; position: absolute; left: clamp(14px, 2.2vw, 26px); right: clamp(14px, 2.2vw, 26px); top: 0; height: 2px; background: linear-gradient(90deg, var(--c), transparent); opacity: .8; }
a.lg-mod:hover, a.lg-mod:focus-visible { transform: translateY(-6px); border-color: color-mix(in srgb, var(--c) 55%, transparent); box-shadow: var(--lg-sombra), 0 0 40px color-mix(in srgb, var(--c) 18%, transparent); }
a.lg-mod .topo-card { display: flex; align-items: flex-start; justify-content: space-between; }
a.lg-mod .icone { width: clamp(42px, 5vw, 62px); height: clamp(42px, 5vw, 62px); border-radius: clamp(12px, 1.4vw, 18px); display: grid; place-items: center; color: var(--c);
                  background: color-mix(in srgb, var(--c) 14%, transparent); border: 1px solid color-mix(in srgb, var(--c) 35%, transparent); }
a.lg-mod .icone svg { width: clamp(21px, 2.4vw, 30px); height: clamp(21px, 2.4vw, 30px); fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
a.lg-mod .circ { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: var(--lg-btn-ink); background: linear-gradient(180deg, var(--lg-btn-a), var(--lg-btn-b)); transition: transform .2s; }
a.lg-mod .circ svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
a.lg-mod:hover .circ { transform: translateX(3px); }
a.lg-mod h2 { font-size: clamp(16px, 2vw, 24px); font-weight: 500; letter-spacing: -.4px; line-height: 1.15; margin: 0; }
a.lg-mod p { color: var(--ink-2); font-size: clamp(11.5px, 1.3vw, 14px); margin: 6px 0 0; line-height: 1.5; min-height: 3em; }  /* 2 linhas: os títulos ficam no mesmo nível (21/11, 5 módulos) */
.lg-escolha-pe { text-align: center; margin-top: 34px; color: var(--muted); font-size: 13px; }
.lg-escolha-pe a { color: var(--accent-ink); }
.lg-escolha-pe form { display: inline; }
.lg-escolha-pe button { border: 0; background: none; color: var(--accent-ink); cursor: pointer; font: inherit; padding: 0; text-decoration: underline; }

@media (max-width: 980px) { .lg-login { grid-template-columns: 1fr; } .lg-arte { display: none; } }
@media (max-width: 640px) {
  .lg-caixa-larga { width: calc(100% - 32px); }
  .lg-barra .lg-caixa-larga { height: 64px; }
  .lg-marca small { letter-spacing: 1.6px; font-size: 8px; }
  .lg-quem .lg-nome { display: none; }
  .lg-quem { padding: 4px; }
  .lg-cenario { display: none; }
  .lg-linha { flex-direction: column; flex-wrap: wrap; }
  .lg-escolha { padding-top: 24px; }
  .lg-escolha-topo { margin-bottom: 24px; }
  a.lg-mod { flex: none; width: 100%; max-width: none; min-height: 0; display: grid; grid-template-columns: 52px minmax(0, 1fr) 38px; align-items: center; gap: 16px; padding: 18px; }
  a.lg-mod .topo-card { display: contents; }
  a.lg-mod .icone { width: 52px; height: 52px; grid-column: 1; grid-row: 1; }
  a.lg-mod .bloco { grid-column: 2; grid-row: 1; }
  a.lg-mod .circ { grid-column: 3; grid-row: 1; }
  a.lg-mod h2 { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
