.lg-root {
    --lg-fundo: #01273d;
    --lg-marca: #013755;
    --lg-marca-2: #0a4b78;
    --lg-claro: #9fc3d9;
    --lg-texto: #1d2233;
    --lg-muted: #6a7187;
    --lg-borda: #dfe3ec;
    --lg-vermelho: #d71920;
    --lg-ambar: #b86f00;

    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    color: #fff;
    background: var(--lg-fundo);
}

/* ---------- Arte de fundo ---------- */
.lg-root .lg-arte { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.lg-root .lg-rota { fill: none; stroke: #2a6f96; stroke-width: 1.2; opacity: .5; }
.lg-root .lg-rota--forte { stroke: #3d86b0; opacity: .7; stroke-dasharray: 6 8; animation: lg-fluxo 18s linear infinite; }
.lg-root .lg-ponto { fill: #5aa9d6; }
.lg-root .lg-ponto--loja { fill: var(--lg-vermelho); }
.lg-root .lg-pulso {
    fill: none;
    stroke: var(--lg-vermelho);
    stroke-width: 1.5;
    transform-box: fill-box;
    transform-origin: center;
    animation: lg-pulso 3.2s ease-out infinite;
}
.lg-root .lg-pulso--2 { animation-delay: 1.1s; }
.lg-root .lg-pulso--3 { animation-delay: 2.2s; }

@keyframes lg-pulso {
    from { transform: scale(1); opacity: .7; }
    to { transform: scale(4); opacity: 0; }
}
@keyframes lg-fluxo { to { stroke-dashoffset: -280; } }
@keyframes lg-sobe {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: none; }
}

/* ---------- Estrutura ---------- */
.lg-root .lg-topo,
.lg-root .lg-conteudo,
.lg-root .lg-rodape {
    position: relative;
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding-left: 48px;
    padding-right: 48px;
}
.lg-root .lg-topo { padding-top: 36px; display: flex; align-items: center; gap: 12px; }
.lg-root .lg-logo {
    width: 46px;
    height: 46px;
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .3);
}
.lg-root .lg-logo img { width: 30px; height: 30px; object-fit: contain; }
.lg-root .lg-marca-nome { font-size: 1.2rem; font-weight: 700; line-height: 1.15; }
.lg-root .lg-marca-sub { font-size: .8rem; color: var(--lg-claro); }

.lg-root .lg-conteudo {
    flex: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 420px;
    align-items: center;
    gap: 64px;
    padding-top: 32px;
    padding-bottom: 32px;
}

/* ---------- Boas-vindas ---------- */
.lg-root .lg-boasvindas { max-width: 560px; animation: lg-sobe .7s ease-out both; }
.lg-root .lg-data { font-size: .86rem; color: var(--lg-claro); margin-bottom: 12px; }
.lg-root .lg-titulo {
    margin: 0;
    font-family: inherit;
    font-size: clamp(2rem, 3.6vw, 3.1rem);
    font-weight: 700;
    line-height: 1.12;
    color: #fff;
    letter-spacing: -.01em;
}
.lg-root .lg-titulo span { color: var(--lg-claro); font-weight: 600; }
.lg-root .lg-texto { margin: 18px 0 0; font-size: 1.02rem; line-height: 1.65; color: #c9dcea; max-width: 460px; }
.lg-root .lg-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.lg-root .lg-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: .82rem;
    color: #e3eef6;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .14);
    backdrop-filter: blur(4px);
}

/* ---------- Cartão de login ---------- */
.lg-root .lg-cartao {
    padding: 36px 34px 32px;
    border-radius: 22px;
    color: var(--lg-texto);
    background: #fff;
    box-shadow: 0 30px 70px rgba(0, 0, 0, .35), 0 2px 6px rgba(0, 0, 0, .12);
    animation: lg-sobe .7s .12s ease-out both;
}
.lg-root .lg-cartao-titulo { margin: 0; font-family: inherit; font-size: 1.55rem; font-weight: 700; color: var(--lg-texto); }
.lg-root .lg-cartao-sub { margin: 4px 0 24px; font-size: .88rem; color: var(--lg-muted); }
.lg-root .lg-rotulo { display: block; margin-bottom: 6px; font-size: .8rem; font-weight: 600; color: var(--lg-muted); }
.lg-root .lg-campo { position: relative; margin-bottom: 16px; }
.lg-root .lg-campo > i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.15rem;
    color: #9aa1b4;
    pointer-events: none;
    transition: color .15s;
}
.lg-root .lg-campo input {
    width: 100%;
    height: 48px;
    padding: 0 44px 0 42px;
    border: 1px solid var(--lg-borda);
    border-radius: 12px;
    font-size: .95rem;
    color: var(--lg-texto);
    background: #f7f8fb;
    outline: none;
    transition: border-color .15s, box-shadow .15s, background .15s;
}
.lg-root .lg-campo input::placeholder { color: #a6adbd; }
.lg-root .lg-campo input:focus { border-color: var(--lg-marca-2); background: #fff; box-shadow: 0 0 0 4px rgba(10, 75, 120, .12); }
.lg-root .lg-campo:focus-within > i { color: var(--lg-marca-2); }
.lg-root .lg-olho {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #9aa1b4;
    font-size: 1.15rem;
}
.lg-root .lg-olho:hover { color: var(--lg-marca); background: #eef1f6; }
.lg-root .lg-caps { margin: -8px 0 14px; font-size: .8rem; font-weight: 600; color: var(--lg-ambar); }
.lg-root .lg-caps[hidden] { display: none; }

.lg-root .lg-entrar {
    width: 100%;
    height: 50px;
    margin-top: 8px;
    border: 0;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(120deg, var(--lg-marca) 0%, var(--lg-marca-2) 100%);
    box-shadow: 0 10px 24px rgba(1, 55, 85, .3);
    transition: transform .15s, box-shadow .15s, opacity .15s;
}
.lg-root .lg-entrar:hover { transform: translateY(-1px); box-shadow: 0 14px 28px rgba(1, 55, 85, .38); }
.lg-root .lg-entrar:disabled { opacity: .75; transform: none; cursor: wait; }
.lg-root .lg-entrar i { font-size: 1.2rem; transition: transform .15s; }
.lg-root .lg-entrar:hover:not(:disabled) i { transform: translateX(3px); }

.lg-root .lg-ajuda { margin-top: 18px; font-size: .8rem; color: var(--lg-muted); text-align: center; }

/* ---------- Rodapé ---------- */
.lg-root .lg-rodape {
    padding-top: 18px;
    padding-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: .82rem;
    color: #7fa3bb;
}
.lg-root .lg-redes { margin-left: auto; display: flex; gap: 6px; }
.lg-root .lg-redes a {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    color: #9fc3d9;
    transition: background .15s, color .15s;
}
.lg-root .lg-redes a:hover { color: #fff; background: rgba(255, 255, 255, .1); }

@media (max-width: 991.98px) {
    .lg-root .lg-topo, .lg-root .lg-conteudo, .lg-root .lg-rodape { padding-left: 20px; padding-right: 20px; }
    .lg-root .lg-topo { padding-top: 22px; }
    .lg-root .lg-conteudo { grid-template-columns: minmax(0, 1fr); gap: 28px; }
    .lg-root .lg-texto, .lg-root .lg-chips { display: none; }
    .lg-root .lg-titulo { font-size: 1.8rem; }
    .lg-root .lg-cartao { padding: 28px 22px 24px; }
}

@media (prefers-reduced-motion: reduce) {
    .lg-root .lg-pulso, .lg-root .lg-rota--forte, .lg-root .lg-boasvindas, .lg-root .lg-cartao { animation: none; }
}
