/* S-NO-UPDATE: Customização local */
/* Login v3 — núcleo do sistema com recursos interligados (visual escuro). */
:root {
    --lv3-bg-1: #0a5a80;
    --lv3-bg-2: #03344f;
    --lv3-bg-3: #011e31;
    --lv3-cyan: #29b6f6;
    --lv3-cyan-soft: rgba(41, 182, 246, .16);
    --lv3-orange: #ff6a1a;
    --lv3-orange-soft: rgba(255, 106, 26, .18);
    --lv3-text: #eaf4fb;
    --lv3-muted: #9db8cb;
    --lv3-node: rgba(4, 30, 48, .88);
    --lv3-node-border: rgba(140, 200, 240, .22);
    --lv3-card: rgba(3, 36, 58, .78);
    --lv3-card-border: rgba(120, 200, 255, .2);
    --lv3-input: #f4f7fa;
    --lv3-font: "Nunito", "Segoe UI", system-ui, -apple-system, sans-serif;
}

body.authentication-bg {
    background: var(--lv3-bg-3) !important;
    background-image: none !important;
    min-height: 100vh;
}

.lv3 {
    position: relative;
    min-height: 100vh;
    font-family: var(--lv3-font);
    color: var(--lv3-text);
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(380px, 500px);
    align-items: center;
    gap: 40px;
    padding: 40px 64px;
    overflow: hidden;
    background:
        radial-gradient(ellipse 70% 80% at 30% 45%, var(--lv3-bg-1) 0%, var(--lv3-bg-2) 55%, var(--lv3-bg-3) 100%);
}

/* Grade sutil do fundo */
.lv3::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
    background-size: 44px 44px;
    pointer-events: none;
}

.lv3 > * { position: relative; z-index: 1; }

/* ---------- Lado da marca ---------- */
.lv3-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 0;
}

.lv3-logo {
    display: block;
    width: 320px;
    max-width: 80%;
    height: 70px;
    object-fit: cover;
    object-position: center;
}

.lv3-logo.is-custom {
    object-fit: contain;
    height: 84px;
}

.lv3-tagline {
    margin: 16px 0 0;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .42em;
    text-transform: uppercase;
    color: var(--lv3-cyan);
    text-align: center;
}

/* Mapa das áreas */
.lv3-ring {
    position: relative;
    width: min(700px, 100%);
    aspect-ratio: 1.65;
    margin-top: 18px;
}

.lv3-lines {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
    pointer-events: none;
}

.lv3-lines .lv3-orbit {
    fill: none;
    stroke: rgba(140, 200, 240, .14);
    stroke-width: 1;
}

.lv3-lines .lv3-orbit.is-inner {
    stroke: rgba(41, 182, 246, .18);
    stroke-dasharray: 2 7;
    animation: lv3-dash 6s linear infinite reverse;
}

.lv3-lines .lv3-spoke {
    stroke: rgba(41, 182, 246, .38);
    stroke-width: 1.2;
    stroke-dasharray: 5 6;
    animation: lv3-dash 2.4s linear infinite;
    transition: stroke .3s ease, stroke-width .3s ease;
}

.lv3-lines .lv3-spoke.is-active {
    stroke: var(--lv3-cyan);
    stroke-width: 2;
    filter: drop-shadow(0 0 4px rgba(41, 182, 246, .8));
}

.lv3-lines .lv3-dot {
    fill: var(--lv3-orange);
    filter: drop-shadow(0 0 4px rgba(255, 106, 26, .9));
}

@keyframes lv3-dash {
    to { stroke-dashoffset: -22; }
}

/* Núcleo */
.lv3-hub {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 138px;
    height: 138px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(circle at 50% 30%, #0e5580 0%, #052a43 72%);
    border: 1px solid rgba(41, 182, 246, .4);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 2;
    animation: lv3-pulse 3.6s ease-in-out infinite;
}

.lv3-hub i {
    font-size: 30px;
    line-height: 1;
    color: var(--lv3-cyan);
}

.lv3-hub strong {
    margin-top: 2px;
    font-size: 30px;
    font-weight: 800;
    line-height: 1.1;
    color: #ffffff;
}

.lv3-hub small {
    max-width: 84px;
    line-height: 1.25;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--lv3-muted);
}

@keyframes lv3-pulse {
    0%, 100% { box-shadow: 0 0 0 10px rgba(41, 182, 246, .06), 0 0 36px rgba(41, 182, 246, .3), inset 0 0 24px rgba(41, 182, 246, .2); }
    50% { box-shadow: 0 0 0 18px rgba(41, 182, 246, .035), 0 0 60px rgba(41, 182, 246, .45), inset 0 0 26px rgba(41, 182, 246, .26); }
}

/* Áreas */
.lv3-node {
    position: absolute;
    transform: translate(-50%, -50%) scale(.85);
    opacity: 0;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px 8px 8px;
    background: var(--lv3-node);
    border: 1px solid var(--lv3-node-border);
    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .35);
    font-family: var(--lv3-font);
    color: #ffffff;
    text-align: left;
    white-space: nowrap;
    z-index: 3;
    cursor: pointer;
    transition: opacity .5s ease, transform .5s ease, border-color .25s ease, box-shadow .25s ease, background .25s ease;
}

.lv3-node.is-in {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.lv3-node-ico {
    width: 34px;
    height: 34px;
    flex: none;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    background: var(--lv3-cyan-soft);
    color: var(--lv3-cyan);
    transition: background .25s ease, color .25s ease;
}

.lv3-node.is-orange .lv3-node-ico {
    background: var(--lv3-orange-soft);
    color: var(--lv3-orange);
}

.lv3-node-txt {
    display: flex;
    flex-direction: column;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.15;
}

.lv3-node-txt small {
    font-size: 11px;
    font-weight: 700;
    color: var(--lv3-muted);
}

.lv3-node:hover,
.lv3-node:focus-visible,
.lv3-node.is-active {
    border-color: var(--lv3-cyan);
    background: rgba(6, 46, 72, .95);
    box-shadow: 0 0 0 4px rgba(41, 182, 246, .14), 0 0 26px rgba(41, 182, 246, .25), 0 10px 26px rgba(0, 0, 0, .4);
    outline: none;
}

.lv3-node.is-in.is-active { transform: translate(-50%, -50%) scale(1.06); }

.lv3-node.is-active .lv3-node-ico { background: var(--lv3-cyan); color: #032a44; }
.lv3-node.is-orange.is-active .lv3-node-ico { background: var(--lv3-orange); color: #ffffff; }

/* Painel de recursos da área ativa */
.lv3-detail {
    position: relative;
    display: grid;
    width: min(700px, 100%);
    margin-top: 6px;
    background: rgba(3, 32, 52, .72);
    border: 1px solid var(--lv3-card-border);
    border-radius: 16px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, .3);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    overflow: hidden;
}

.lv3-panel {
    grid-area: 1 / 1;
    padding: 18px 22px 20px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity .35s ease, transform .35s ease, visibility 0s linear .35s;
}

.lv3-panel.is-active {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity .35s ease, transform .35s ease, visibility 0s;
}

.lv3-panel-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.lv3-panel-ico {
    width: 40px;
    height: 40px;
    flex: none;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    background: var(--lv3-cyan);
    color: #032a44;
}

.lv3-panel.is-orange .lv3-panel-ico { background: var(--lv3-orange); color: #ffffff; }

.lv3-panel-head strong {
    display: block;
    font-size: 17px;
    font-weight: 800;
    color: #ffffff;
}

.lv3-panel-head p {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    color: var(--lv3-muted);
}

.lv3-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.lv3-chips li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(140, 200, 240, .16);
    font-size: 12.5px;
    font-weight: 700;
    color: var(--lv3-text);
    white-space: nowrap;
}

.lv3-chips li i { font-size: 14px; color: var(--lv3-cyan); }
.lv3-panel.is-orange .lv3-chips li i { color: var(--lv3-orange); }

.lv3-panel.is-active .lv3-chips li { animation: lv3-chip-in .4s ease both; }
.lv3-panel.is-active .lv3-chips li:nth-child(2) { animation-delay: .03s; }
.lv3-panel.is-active .lv3-chips li:nth-child(3) { animation-delay: .06s; }
.lv3-panel.is-active .lv3-chips li:nth-child(4) { animation-delay: .09s; }
.lv3-panel.is-active .lv3-chips li:nth-child(5) { animation-delay: .12s; }
.lv3-panel.is-active .lv3-chips li:nth-child(6) { animation-delay: .15s; }
.lv3-panel.is-active .lv3-chips li:nth-child(7) { animation-delay: .18s; }
.lv3-panel.is-active .lv3-chips li:nth-child(8) { animation-delay: .21s; }
.lv3-panel.is-active .lv3-chips li:nth-child(9) { animation-delay: .24s; }

@keyframes lv3-chip-in {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: none; }
}

.lv3-progress {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: rgba(140, 200, 240, .1);
}

.lv3-progress span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--lv3-cyan), var(--lv3-orange));
    transform: scaleX(0);
    transform-origin: left center;
}

.lv3-plan-note {
    margin: 12px 0 0;
    font-size: 12px;
    color: var(--lv3-muted);
    text-align: center;
}

/* ---------- Card de acesso ---------- */
.lv3-card {
    background: var(--lv3-card);
    border: 1px solid var(--lv3-card-border);
    border-radius: 18px;
    padding: 40px 42px 26px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, .45);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.lv3-card-head {
    display: flex;
    align-items: center;
    gap: 14px;
}

.lv3-card-ico {
    width: 46px;
    height: 46px;
    flex: none;
    border-radius: 11px;
    background: var(--lv3-cyan-soft);
    border: 1px solid rgba(41, 182, 246, .35);
    color: var(--lv3-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.lv3-card-head small {
    display: block;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--lv3-cyan);
}

.lv3-card-head h1 {
    margin: 0;
    font-size: 28px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.15;
}

.lv3-card-sub {
    margin: 12px 0 26px;
    font-size: 14px;
    font-weight: 600;
    color: var(--lv3-muted);
}

.lv3-field { margin-bottom: 18px; }

.lv3-field-label {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 8px;
}

.lv3-field label {
    margin: 0;
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
}

.lv3-link {
    font-size: 13px;
    font-weight: 600;
    color: var(--lv3-cyan);
    text-decoration: none;
}

.lv3-link:hover { color: #7fd3fa; text-decoration: underline; }

.lv3-input {
    position: relative;
    display: flex;
    align-items: center;
}

.lv3-input > i {
    position: absolute;
    left: 16px;
    font-size: 18px;
    color: #5f7a90;
    pointer-events: none;
}

.lv3-input input {
    width: 100%;
    height: 52px;
    border: 2px solid transparent;
    border-radius: 10px;
    background: var(--lv3-input);
    padding: 0 48px 0 48px;
    font-family: var(--lv3-font);
    font-size: 15px;
    font-weight: 600;
    color: #10283a;
    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.lv3-input input::placeholder { color: #93a8b8; font-weight: 600; }

.lv3-input input:focus {
    border-color: var(--lv3-cyan);
    box-shadow: 0 0 0 4px rgba(41, 182, 246, .2);
}

.lv3-toggle {
    position: absolute;
    right: 8px;
    width: 38px;
    height: 38px;
    border: 0;
    background: transparent;
    color: #5f7a90;
    font-size: 19px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lv3-toggle:hover { color: #0a6aa8; }

.lv3-check {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 4px 0 22px;
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    cursor: pointer;
}

.lv3-check input {
    width: 17px;
    height: 17px;
    margin: 0;
    accent-color: var(--lv3-cyan);
}

.lv3-submit {
    width: 100%;
    height: 52px;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(90deg, #0a5f97 0%, #1497e0 100%);
    color: #ffffff;
    font-family: var(--lv3-font);
    font-size: 16px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 10px 26px rgba(20, 151, 224, .35);
    transition: filter .15s ease, transform .15s ease;
}

.lv3-submit:hover { filter: brightness(1.08); transform: translateY(-1px); }

.lv3-alert {
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
    border: 1px solid;
}

.lv3-alert.is-error { background: rgba(220, 53, 69, .15); border-color: rgba(255, 99, 115, .5); color: #ffc9cf; }
.lv3-alert.is-success { background: rgba(25, 135, 84, .18); border-color: rgba(70, 200, 130, .5); color: #c6f3da; }
.lv3-alert.is-info { background: var(--lv3-cyan-soft); border-color: rgba(41, 182, 246, .45); color: var(--lv3-text); }

.lv3-demo {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 8px;
}

.lv3-support {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
    padding: 11px 14px;
    border-radius: 10px;
    border: 1px solid var(--lv3-card-border);
    color: var(--lv3-text);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.lv3-support i { font-size: 20px; color: var(--lv3-cyan); }
.lv3-support:hover { border-color: var(--lv3-cyan); color: #ffffff; }

.lv3-register {
    margin-top: 16px;
    font-size: 14px;
    font-weight: 600;
    color: var(--lv3-muted);
}

.lv3-card-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid rgba(140, 200, 240, .15);
    font-size: 12px;
    font-weight: 700;
    color: var(--lv3-muted);
}

.lv3-secure {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--lv3-text);
}

.lv3-secure::before {
    content: "";
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 8px rgba(34, 197, 94, .9);
}

/* Botão entrando */
.lv3-submit.is-loading { opacity: .8; cursor: progress; transform: none; }

.lv3-support-go { margin-left: auto; font-size: 16px !important; color: var(--lv3-muted) !important; }

/* ---------- Responsivo ---------- */
@media (max-width: 1400px) {
    .lv3 { padding: 28px 40px; gap: 32px; }
    .lv3-logo { height: 60px; width: 280px; }
    .lv3-tagline { font-size: 12px; margin-top: 12px; }
    .lv3-hub { width: 120px; height: 120px; }
    .lv3-hub strong { font-size: 26px; }
    .lv3-node { padding: 6px 13px 6px 6px; }
    .lv3-node-ico { width: 30px; height: 30px; font-size: 16px; }
    .lv3-node-txt { font-size: 13px; }
    .lv3-card { padding: 32px 34px 22px; }
    .lv3-panel { padding: 14px 18px 16px; }
}

@media (max-height: 800px) and (min-width: 981px) {
    .lv3-ring { aspect-ratio: 1.9; }
    .lv3-plan-note { display: none; }
}

@media (max-width: 980px) {
    .lv3 {
        grid-template-columns: 1fr;
        padding: 32px 16px;
        gap: 24px;
        justify-items: center;
    }
    .lv3-card { width: 100%; max-width: 520px; padding: 28px 22px 20px; }

    /* Celular: logo, formulário, abas das áreas e painel. */
    .lv3-brand { display: contents; }
    .lv3-logo { order: 0; }
    .lv3-tagline { order: 1; margin-top: -14px; }
    .lv3-card { order: 2; }
    .lv3-ring {
        order: 3;
        aspect-ratio: auto;
        width: 100%;
        max-width: 520px;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        margin-top: 0;
    }
    .lv3-detail { order: 4; max-width: 520px; margin-top: -12px; }
    .lv3-plan-note { order: 5; margin-top: -12px; }
    .lv3-lines, .lv3-hub { display: none; }
    .lv3-node {
        position: static;
        transform: none !important;
        opacity: 1;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .lv3-tagline { letter-spacing: .22em; font-size: 11px; }
    .lv3-card-head h1 { font-size: 23px; }
    .lv3-node-txt { font-size: 12.5px; }
}

@media (prefers-reduced-motion: reduce) {
    .lv3 *, .lv3 *::before, .lv3 *::after {
        animation: none !important;
        transition: none !important;
    }
    .lv3-node { opacity: 1; transform: translate(-50%, -50%); }
}
/* E-NO-UPDATE: Customização local */
