@charset "UTF-8";
/* =====================================================================
   CTAG NEXUS — Abertura animada e tela de login
   ===================================================================== */

body.tela-acesso { background: var(--bg-0); min-height: 100vh; overflow-x: hidden; }

/* A abertura é sempre escura: é o momento da marca, e o logo foi feito para fundo preto */
#abertura { --linha-forte: rgba(120, 160, 200, 0.22); --txt-suave: #9fb0c3; --txt: #e8eef6; color-scheme: dark; }
.tela { position: fixed; inset: 0; overflow-y: auto; }

/* ===================== ABERTURA ===================== */
#abertura {
    background: radial-gradient(ellipse at 50% 42%, #0a1620 0%, #03060a 62%);
    display: grid; place-items: center; z-index: 30;
    transition: opacity 0.9s ease, transform 1.1s cubic-bezier(0.6, 0, 0.2, 1);
}
#abertura.saindo { opacity: 0; transform: scale(1.08); pointer-events: none; }
.rede { position: absolute; inset: 0; width: 100%; height: 100%; }
.ab-compo {
    position: relative; display: grid; justify-items: center; gap: clamp(1rem, 3vh, 1.6rem); text-align: center;
    padding: 2rem max(16px, env(safe-area-inset-right, 0px)) 2rem max(16px, env(safe-area-inset-left, 0px));
}
.ab-emblema { position: relative; width: clamp(170px, 30vh, 260px); aspect-ratio: 425 / 440; }
.ab-emblema img { width: 100%; height: 100%; opacity: 0; transform: scale(0.82) rotate(-8deg); filter: blur(8px); animation: emEntra 1.4s 0.3s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; }
.ab-anel { position: absolute; inset: -14%; border-radius: 50%; border: 1px solid rgba(43, 212, 191, 0.18); opacity: 0; animation: aparece 1.6s 0.7s ease-out forwards, gira 18s linear infinite; }
.ab-anel::before { content: ""; position: absolute; top: -3px; left: 50%; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 12px var(--teal); }
.ab-anel.a2 { inset: -26%; border-color: rgba(59, 134, 246, 0.12); animation: aparece 1.6s 1s ease-out forwards, gira 28s linear infinite reverse; }
.ab-anel.a2::before { background: var(--azul); box-shadow: 0 0 12px var(--azul); top: auto; bottom: -3px; }
.ab-brilho { position: absolute; left: 50%; top: 55%; width: 46%; aspect-ratio: 1; transform: translate(-50%, -50%) scale(0); border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, 0.95) 0%, rgba(140, 240, 230, 0.55) 18%, rgba(43, 212, 191, 0.18) 45%, transparent 70%); mix-blend-mode: screen; animation: explode 1.6s 1.05s ease-out forwards, pulsa 3.2s 2.6s ease-in-out infinite; }
.ab-marca { display: grid; justify-items: center; gap: 0.9rem; }
.ab-wordmark { display: flex; align-items: flex-end; gap: clamp(0.6rem, 2vw, 1.2rem); height: clamp(46px, 8.6vh, 74px); }
.ab-wordmark img { height: 100%; width: auto; opacity: 0; transform: translateY(24px); }
.ab-wordmark .w-ctag { height: 72%; animation: sobe 0.9s 1.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; }
.ab-wordmark .w-nexus { animation: sobe 0.9s 1.75s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; }
.ab-sub { display: grid; gap: 0.55rem; justify-items: center; width: min(560px, 86vw); }
.ab-sub .fio { height: 1px; width: 100%; background: linear-gradient(90deg, transparent, #3b86f6 20%, #2bd4bf 50%, #6ee07a 80%, transparent); transform: scaleX(0); animation: risca 1s 2.2s ease-out forwards; }
.ab-sub img { width: 94%; opacity: 0; animation: aparece 0.8s 2.6s ease-out forwards; }
.ab-tag { font-family: var(--fonte-display); font-weight: 300; font-style: italic; font-size: clamp(0.95rem, 2.2vw, 1.2rem); color: #cfd8e3; max-width: 56ch; }
.ab-tag span { display: inline-block; opacity: 0; transform: translateY(8px); animation: sobe 0.6s forwards; }
.ab-tag .g { color: var(--lima); }
.ab-tag .d { color: var(--azul); }
.ab-tag .a { color: var(--teal); }
.ab-pular { position: absolute; right: max(18px, env(safe-area-inset-right, 0px)); bottom: calc(18px + env(safe-area-inset-bottom, 0px)); background: rgba(14, 21, 33, 0.6); border: 1px solid var(--linha-forte); color: var(--txt-suave); padding: 0.5rem 0.95rem; border-radius: 999px; font-size: 0.82rem; backdrop-filter: blur(4px); }
.ab-pular:hover { color: var(--txt); }
.ab-progresso { position: absolute; left: 0; bottom: 0; height: 2px; background: var(--grad-marca); width: 0; animation: progride 4.6s linear forwards; }

@keyframes emEntra { to { opacity: 1; transform: none; filter: blur(0) drop-shadow(0 0 28px rgba(43, 212, 191, 0.28)); } }
@keyframes aparece { to { opacity: 1; } }
@keyframes gira { to { rotate: 360deg; } }
@keyframes explode { 0% { transform: translate(-50%, -50%) scale(0); opacity: 0; } 35% { opacity: 1; transform: translate(-50%, -50%) scale(1.8); } 100% { transform: translate(-50%, -50%) scale(0.8); opacity: 0.9; } }
@keyframes pulsa { 50% { transform: translate(-50%, -50%) scale(1.05); opacity: 0.6; } }
@keyframes sobe { to { opacity: 1; transform: none; } }
@keyframes risca { to { transform: scaleX(1); } }
@keyframes progride { to { width: 100%; } }

/* ===================== LOGIN ===================== */
#login { background: var(--bg-0); z-index: 20; opacity: 0; transition: opacity 0.9s ease; }
#login.visivel { opacity: 1; }
.lg-grade { min-height: 100%; display: grid; grid-template-columns: 1.15fr minmax(380px, 0.85fr); }
.lg-marca {
    position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; gap: 2rem;
    padding: clamp(1.5rem, 4vw, 3.2rem) clamp(1.5rem, 5vw, 4rem);
    background: radial-gradient(ellipse at 78% 46%, rgba(43, 212, 191, 0.1), transparent 55%),
                radial-gradient(ellipse at 10% 100%, rgba(59, 134, 246, 0.1), transparent 50%), var(--bg-0);
}
.lg-marca .rede { opacity: 0.55; }
.lg-topo, .lg-centro, .lg-selos { position: relative; }
.lg-logo { display: flex; align-items: center; gap: 0.85rem; }
.lg-logo .em { width: 58px; }
.lg-logo .wm { display: grid; gap: 4px; }
.lg-logo .wm-linha { display: flex; align-items: flex-end; gap: 0.55rem; height: 30px; }
.lg-logo .wm-linha img { height: 100%; width: auto; }
.lg-logo .wm-linha .w-ctag { height: 72%; }
.lg-logo .sub { width: 250px; opacity: 0.85; }
.lg-centro { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2rem; }
.lg-titulo { font-size: clamp(1.9rem, 3.6vw, 3.1rem); font-weight: 700; letter-spacing: -0.5px; max-width: 16ch; }
.lg-titulo .g { color: var(--lima); }
.lg-titulo .d { color: var(--azul); }
.lg-titulo .a { background: var(--grad-marca); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lg-texto { color: var(--txt-suave); max-width: 46ch; margin-top: 1.1rem; }
.lg-emblema { position: relative; width: clamp(150px, 18vw, 250px); }
.lg-emblema img { filter: drop-shadow(0 0 30px rgba(43, 212, 191, 0.3)); }
.lg-emblema .brilho { position: absolute; left: 50%; top: 55%; width: 40%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, 0.8), rgba(43, 212, 191, 0.25) 40%, transparent 70%); mix-blend-mode: screen; animation: pulsa2 3.2s ease-in-out infinite; }
@keyframes pulsa2 { 50% { opacity: 0.5; transform: translate(-50%, -50%) scale(1.15); } }
.lg-selos { display: flex; flex-wrap: wrap; gap: 0.6rem 1.6rem; color: var(--txt-suave); font-size: 0.86rem; }
.lg-selos span { display: inline-flex; align-items: center; gap: 0.5rem; }
.lg-selos svg { width: 17px; height: 17px; color: var(--verde); }

.lg-painel { background: var(--bg-1); border-left: 1px solid var(--linha); display: grid; place-items: center; padding: 2rem max(16px, env(safe-area-inset-right, 0px)) 2rem max(16px, env(safe-area-inset-left, 0px)); }
.lg-card { width: min(400px, 100%); display: grid; gap: 1.4rem; }
.lg-card h2 { font-size: 1.55rem; font-weight: 700; }
.lg-card .lead { color: var(--txt-suave); font-size: 0.92rem; margin-top: 0.3rem; }
.lg-form { display: grid; gap: 1rem; }
.inp-ic { position: relative; }
.inp-ic > svg { position: absolute; left: 0.85rem; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: var(--txt-fraco); pointer-events: none; }
.inp-ic .inp { padding: 0.85rem 2.6rem; font-size: 0.95rem; background: var(--campo-bg); }
.inp-ic .olho { position: absolute; right: 0.6rem; top: 50%; transform: translateY(-50%); background: none; border: none; color: var(--txt-fraco); padding: 0.35rem; border-radius: 6px; }
.inp-ic .olho:hover { color: var(--txt-suave); }
.inp-ic .olho svg { width: 17px; height: 17px; display: block; }
.lg-linha { display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-size: 0.84rem; flex-wrap: wrap; }
.lg-linha label { display: inline-flex; gap: 0.45rem; align-items: center; color: var(--txt-suave); cursor: pointer; }
.lg-linha input { accent-color: var(--teal); width: 15px; height: 15px; }
.lk { color: var(--teal); background: none; border: none; font-size: 0.84rem; font-weight: 500; }
.lk:hover { text-decoration: underline; }
.btn-entrar { display: flex; align-items: center; justify-content: center; gap: 0.55rem; border: none; border-radius: var(--r-md); padding: 0.95rem; font-weight: 600; font-size: 1rem; color: #fff; background: var(--grad-botao); box-shadow: 0 12px 28px -12px rgba(43, 195, 201, 0.7); transition: filter 0.15s, transform 0.1s; }
.btn-entrar:hover { filter: brightness(1.07); }
.btn-entrar:active { transform: translateY(1px); }
.btn-entrar svg { width: 18px; height: 18px; }
.btn-entrar[disabled] { opacity: 0.75; cursor: progress; }
.lg-ajuda { font-size: 0.82rem; color: var(--txt-suave); border: 1px dashed var(--linha-forte); border-radius: var(--r-md); padding: 0.75rem 0.9rem; }
.lg-demo { font-size: 0.8rem; color: var(--txt-fraco); border: 1px dashed var(--linha-forte); border-radius: var(--r-md); padding: 0.75rem 0.9rem; display: grid; gap: 0.2rem; }
.lg-demo b { color: var(--txt-suave); font-weight: 600; }
.lg-demo code { font-family: var(--fonte-display); color: var(--txt-suave); font-size: 0.78rem; }
.lg-rodape { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.76rem; color: var(--txt-fraco); flex-wrap: wrap; }

/* Seletor de fundo no topo do cartão de login */
.lg-topo-card { display: flex; justify-content: flex-end; margin-bottom: -0.4rem; }

/* Fundo branco na tela de login */
:root[data-fundo="branco"] .lg-marca {
    background: radial-gradient(ellipse at 78% 46%, rgba(13, 156, 140, 0.1), transparent 55%),
                radial-gradient(ellipse at 10% 100%, rgba(31, 111, 229, 0.08), transparent 50%), var(--bg-0);
}
:root[data-fundo="branco"] .lg-titulo .a { background: linear-gradient(120deg, #2fa84f 0%, #0d9c8c 48%, #1f6fe5 100%); -webkit-background-clip: text; background-clip: text; }
:root[data-fundo="branco"] .lg-logo .em { width: 64px; padding: 5px; border-radius: 50%; background: var(--medalhao); box-shadow: 0 4px 14px -6px rgba(4, 10, 20, 0.6); }
:root[data-fundo="branco"] .lg-emblema { background: var(--medalhao); border-radius: 50%; padding: 24px; box-shadow: 0 22px 50px -24px rgba(4, 10, 20, 0.65); }

@media (max-width: 980px) {
    .lg-grade { grid-template-columns: minmax(0, 1fr); }
    .lg-painel { border-left: none; border-top: 1px solid var(--linha); }
    .lg-centro { grid-template-columns: minmax(0, 1fr); }
    .lg-emblema { display: none; }
}
@media (max-width: 700px) {
    .lg-marca { gap: 1.4rem; }
    .lg-selos { display: none; }
    .lg-logo .sub { width: 200px; }
}
