/**
 * Animação "Tema PMC aplicado a um portal" (painel hero da login).
 * HTML/CSS reais animados por JavaScript a partir do tempo t (ver login-tema-portal.js).
 * Escopo: .pmcSim
 */

.pmcSim {
    --pmc-primary: #004f9f;
    --pmc-primary-dark: #003d7a;
    --pmc-soft: #7fa9d9;
    --pmc-tint: #e5eef8;
    --pmc-sky0: #bcd3ec;
    --pmc-sky1: #eef4fb;
    --pmc-accent: #3da5f4;
    --pmc-text: #202121;
    --pmc-muted: #666666;
    --pmc-border: #e8e8e8;
    --pmc-green: #8bc53f;
    --pmc-green-dark: #567a27;
    --pmc-green-light: #b9dc8b;
    --pmc-sun: #ffdd00;
    --pmc-stone: #dcd4c6;
    --n-page: #e9edf2;
    --n-head: #f6f8fa;
    --n-line: #dbe1e8;
    --n-block: #cfd7e0;
    --n-block2: #b9c3cf;
    --n-ghost: #dfe5eb;
    --n-input: #f1f4f7;
    --n-text: #8e9aaa;
    --font-r: roboto-regular, Arial, sans-serif;
    --font-b: roboto-bold, Arial, sans-serif;

    position: absolute;
    inset: 0;
    overflow: hidden;
    background: #0a1522;
    color: var(--pmc-text);
    font-family: var(--font-r);
    -webkit-font-smoothing: antialiased;
}

.pmcSim *,
.pmcSim *::before,
.pmcSim *::after {
    box-sizing: border-box;
}

.pmcSim i,
.pmcSim em,
.pmcSim b {
    font-style: normal;
}

.pmcSim__glow {
    position: absolute;
    inset: -20%;
    background: radial-gradient(closest-side at 50% 46%, rgba(0, 79, 159, 0.62), rgba(0, 79, 159, 0));
    pointer-events: none;
}

.pmcSim__glow--b {
    background: radial-gradient(closest-side at 78% 78%, rgba(61, 165, 244, 0.26), rgba(61, 165, 244, 0));
}

.pmcSim__stage {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 1280px;
    height: 840px;
    margin: -420px 0 0 -640px;
    transform-origin: 50% 50%;
    /* perspectiva da câmera (centro de visão = centro do palco); a inclinação vem do JS em .pmcSim__cam */
    perspective: 1600px;
}

.pmcSim__cam {
    position: absolute;
    inset: 0;
    transform-origin: 0 0;
}

/* ---------- janela do navegador ---------- */

.sim-win {
    position: absolute;
    left: 90px;
    top: 36px;
    width: 1100px;
    height: 650px;
    border-radius: 22px;
    background: #e8ecf1;
    overflow: hidden;
    box-shadow: 0 44px 90px rgba(0, 0, 0, 0.5), 0 12px 30px rgba(0, 0, 0, 0.35);
    outline: 1px solid rgba(255, 255, 255, 0.28);
    outline-offset: -1px;
}

.sim-win__bar {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    height: 44px;
    background: #e8ecf1;
    border-bottom: 1px solid #d3dae2;
}

.sim-win__dot {
    position: absolute;
    top: 16px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.sim-url {
    position: absolute;
    left: 50%;
    top: 9px;
    width: 520px;
    height: 26px;
    margin-left: -260px;
    border-radius: 13px;
    background: #fff;
    overflow: hidden;
}

.sim-url__lock {
    position: absolute;
    left: 12px;
    top: 9px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.sim-url__gen,
.sim-url__txt {
    position: absolute;
    left: 28px;
    top: 0;
    height: 26px;
    line-height: 26px;
    font-size: 13px;
    white-space: nowrap;
}

.sim-url__gen {
    top: 9px;
    height: 8px;
    width: 170px;
    border-radius: 4px;
    background: var(--n-block);
}

.sim-url__txt {
    color: var(--pmc-muted);
}

/* ---------- página ---------- */

.sim-page {
    --f: -40;
    --s: -40;
    position: absolute;
    left: 0;
    top: 44px;
    width: 1100px;
    height: 606px;
    background: var(--n-page);
    overflow: hidden;
}

.sim-layer {
    position: absolute;
    inset: 0;
    -webkit-mask-image: linear-gradient(100deg, #000 calc(var(--f) * 1% - 22%), transparent calc(var(--f) * 1%));
    mask-image: linear-gradient(100deg, #000 calc(var(--f) * 1% - 22%), transparent calc(var(--f) * 1%));
}

.sim-layer--page {
    background: #f4f7f6;
}

.sim-band,
.sim-shim {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 12;
}

.sim-band {
    background: linear-gradient(
        100deg,
        rgba(61, 165, 244, 0) calc(var(--f) * 1% - 22%),
        rgba(61, 165, 244, 0.24) calc(var(--f) * 1% - 11%),
        rgba(61, 165, 244, 0) calc(var(--f) * 1%)
    );
}

.sim-shim {
    background: linear-gradient(
        100deg,
        rgba(255, 255, 255, 0) calc(var(--s) * 1% - 18%),
        rgba(255, 255, 255, 0.6) calc(var(--s) * 1% - 9%),
        rgba(255, 255, 255, 0) calc(var(--s) * 1%)
    );
}

/* ---------- header ---------- */

.sim-hdr {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 72px;
    background: var(--n-head);
    border-bottom: 1px solid var(--n-line);
    z-index: 3;
}

.sim-hdr .sim-layer {
    background: #fff;
}

.sim-hdr__shadow {
    position: absolute;
    left: 0;
    top: 72px;
    width: 100%;
    height: 16px;
    background: linear-gradient(180deg, rgba(14, 38, 70, 0.12), rgba(14, 38, 70, 0));
    pointer-events: none;
}

.sim-strip {
    position: absolute;
    left: 0;
    top: 0;
    height: 4px;
    width: 0;
    background: var(--pmc-primary);
}

.sim-logo {
    position: absolute;
    left: 36px;
    top: 14px;
    width: 145px;
    height: 44px;
}

.sim-logo__gen {
    position: absolute;
    left: 0;
    top: 0;
    width: 133px;
    height: 44px;
    border-radius: 9px;
    background: var(--n-block);
}

.sim-logo__img {
    position: absolute;
    left: 0;
    top: 0;
    width: 145px;
    height: 44px;
}

.sim-ring {
    position: absolute;
    left: -10px;
    top: -8px;
    right: -10px;
    bottom: -8px;
    border: 2px solid var(--pmc-accent);
    border-radius: 12px;
    opacity: 0;
}

.sim-sep {
    position: absolute;
    left: 202px;
    top: 21px;
    width: 1.5px;
    height: 30px;
    background: var(--pmc-border);
}

.sim-brand {
    position: absolute;
    left: 220px;
    top: 0;
    height: 72px;
    width: 200px;
}

.sim-brand > * {
    position: absolute;
    left: 0;
    top: 0;
    line-height: 72px;
    font-size: 17px;
    white-space: nowrap;
}

.sim-brand__a {
    color: var(--n-text);
}

.sim-nav {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 72px;
}

.sim-nav__it {
    position: absolute;
    left: 0;
    top: 0;
    height: 72px;
    white-space: nowrap;
}

.sim-nav__gen {
    position: absolute;
    left: 0;
    top: 30px;
    width: 100%;
    height: 12px;
    border-radius: 6px;
    background: var(--n-block);
}

.sim-nav__txt {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    text-align: center;
    line-height: 72px;
    font-size: 16px;
}

.sim-nav__ul {
    position: absolute;
    top: 50px;
    left: 0;
    height: 3px;
    width: 10px;
    border-radius: 2px;
    background: var(--pmc-primary);
    transform-origin: 0 50%;
}

.sim-meas {
    position: absolute;
    left: -9999px;
    top: 0;
    visibility: hidden;
    white-space: nowrap;
    font-size: 16px;
}

.sim-user {
    position: absolute;
    right: 36px;
    top: 18px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--n-block);
}

.sim-user b {
    position: absolute;
    inset: 0;
    line-height: 36px;
    text-align: center;
    font-family: var(--font-b);
    font-size: 13px;
    color: #fff;
    font-weight: normal;
}

/* ---------- hero ---------- */

.sim-hero {
    position: absolute;
    left: 36px;
    top: 96px;
    width: 1028px;
    height: 270px;
    overflow: hidden;
    background: var(--n-block);
    border-radius: 10px;
    z-index: 2;
}

.sim-hero__sky {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, var(--pmc-sky0), var(--pmc-sky1));
}

.sim-hero__mount {
    position: absolute;
    left: 700px;
    top: 80px;
    width: 160px;
    height: 110px;
}

.sim-bar {
    position: absolute;
    border-radius: 999px;
    background: var(--n-block2);
}

.sim-city {
    position: absolute;
    left: 0;
    top: 0;
    width: 1028px;
    height: 270px;
}

.sim-t {
    position: absolute;
    left: 48px;
    white-space: nowrap;
    color: var(--pmc-text);
}

.sim-t--1,
.sim-t--2 {
    font-family: var(--font-b);
    font-size: 50px;
    line-height: 56px;
    letter-spacing: -0.5px;
}

.sim-t--1 {
    top: 38px;
}

.sim-t--2 {
    top: 94px;
}

.sim-t--sub {
    top: 158px;
    font-size: 19px;
    line-height: 28px;
    color: var(--pmc-muted);
}

.sim-kw {
    background: linear-gradient(90deg, var(--pmc-primary), var(--pmc-accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.sim-btn {
    position: absolute;
    left: 48px;
    top: 202px;
    height: 48px;
    width: 150px;
    border-radius: 24px;
    background: var(--n-block2);
    transform-origin: 50% 50%;
    overflow: hidden;
}

.sim-btn i,
.sim-btn b {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    text-align: center;
    line-height: 48px;
    font-size: 17px;
    font-weight: normal;
    white-space: nowrap;
}

.sim-btn i {
    color: #f0f3f6;
    font-size: 15px;
}

.sim-btn b {
    color: #fff;
    font-family: var(--font-b);
}

.sim-btn__shine {
    position: absolute;
    top: 0;
    left: 0;
    width: 60px;
    height: 100%;
    background: linear-gradient(100deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0));
    opacity: 0;
}

/* ---------- busca e badge ---------- */

.sim-search {
    position: absolute;
    left: 36px;
    top: 390px;
    width: 560px;
    height: 48px;
    border-radius: 24px;
    background: var(--n-input);
    border: 1.5px solid var(--n-line);
    z-index: 2;
}

.sim-search svg {
    position: absolute;
    left: 18px;
    top: 12px;
    width: 22px;
    height: 22px;
}

.sim-search em {
    position: absolute;
    left: 56px;
    top: 0;
    line-height: 45px;
    font-size: 16px;
    color: var(--pmc-muted);
}

.sim-badge {
    position: absolute;
    left: 612px;
    top: 402px;
    width: 64px;
    height: 24px;
    line-height: 24px;
    text-align: center;
    border-radius: 12px;
    background: var(--pmc-primary);
    color: #fff;
    font-family: var(--font-b);
    font-size: 13px;
    z-index: 2;
}

/* ---------- cards ---------- */

.sim-card {
    position: absolute;
    top: 456px;
    width: 324px;
    height: 104px;
    border-radius: 6px;
    background: var(--n-block);
    z-index: 2;
}

.sim-card__ico {
    position: absolute;
    left: 22px;
    top: 14px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--pmc-tint);
    color: var(--pmc-primary);
}

.sim-card__ico svg {
    position: absolute;
    inset: 10px;
    width: 24px;
    height: 24px;
}

.sim-card__title {
    position: absolute;
    left: 22px;
    top: 62px;
    height: 24px;
    line-height: 24px;
    font-family: var(--font-b);
    font-size: 20px;
    white-space: nowrap;
}

.sim-card__title-gen {
    position: absolute;
    left: 22px;
    top: 68px;
    width: 120px;
    height: 12px;
    border-radius: 6px;
    background: var(--n-ghost);
}

.sim-card__line {
    position: absolute;
    left: 22px;
    top: 92px;
    width: 190px;
    height: 8px;
    border-radius: 4px;
    background: var(--n-ghost);
}

.sim-card__chev {
    position: absolute;
    right: 22px;
    top: 26px;
    width: 18px;
    height: 18px;
    color: var(--pmc-primary);
}

/* ---------- rodapé ---------- */

.sim-ftr {
    position: absolute;
    left: 0;
    top: 574px;
    width: 100%;
    height: 32px;
    background: var(--n-block);
    z-index: 3;
}

.sim-ftr .sim-layer {
    background: var(--pmc-primary);
}

.sim-ftr__txt {
    position: absolute;
    left: 36px;
    top: 0;
    line-height: 32px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.92);
}

.sim-ftr__dots {
    position: absolute;
    right: 36px;
    top: 14px;
    width: 40px;
    height: 5px;
    background: radial-gradient(circle at 2.5px 2.5px, rgba(255, 255, 255, 0.75) 2.4px, transparent 2.6px) 0 0 / 14px 5px repeat-x;
}

/* ---------- cursor ---------- */

.sim-cursor {
    position: absolute;
    left: 0;
    top: 0;
    width: 0;
    height: 0;
    z-index: 20;
    pointer-events: none;
}

.sim-cursor svg {
    position: absolute;
    left: -2px;
    top: -2px;
    width: 26px;
    height: 30px;
    filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.35));
}

.sim-ripple {
    position: absolute;
    left: -24px;
    top: -24px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--pmc-accent);
    background: rgba(61, 165, 244, 0.2);
    opacity: 0;
}

/* ---------- chips de recursos ---------- */

.sim-chip {
    position: absolute;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.38), 0 4px 12px rgba(0, 0, 0, 0.22);
    font-size: 13px;
    color: var(--pmc-text);
    z-index: 30;
}

.sim-chip__t {
    display: block;
    font-family: var(--font-b);
    font-size: 12px;
    letter-spacing: 0.4px;
    color: var(--pmc-muted);
    text-transform: uppercase;
    margin-bottom: 10px;
}

.sim-chip--cores {
    left: 1070px;
    top: 140px;
    width: 172px;
}

.sim-chip--tipo {
    left: 20px;
    top: 590px;
    width: 118px;
}

.sim-chip--acess {
    left: 1070px;
    top: 500px;
    width: 172px;
}

.sim-sw {
    display: inline-block;
    width: 26px;
    height: 26px;
    margin-right: 6px;
    border-radius: 50%;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.sim-chip__hex {
    display: block;
    margin-top: 8px;
    font-size: 12px;
    color: var(--pmc-muted);
}

.sim-aa {
    display: block;
    font-family: var(--font-b);
    font-size: 44px;
    line-height: 44px;
    color: var(--pmc-primary);
}

.sim-chip__sub {
    display: block;
    margin-top: 4px;
    color: var(--pmc-muted);
}

.sim-focus {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 14px;
    border: 2px solid var(--pmc-accent);
    box-shadow: 0 0 0 4px rgba(61, 165, 244, 0.25);
    font-family: var(--font-b);
    color: var(--pmc-primary);
}

/* ---------- legendas, selo e etapas (fora da câmera) ---------- */

.sim-cap {
    position: absolute;
    left: 0;
    right: 0;
    top: 722px;
    text-align: center;
    pointer-events: none;
}

.sim-cap__in {
    display: inline-block;
    font-size: 34px;
    line-height: 44px;
    color: rgba(255, 255, 255, 0.76);
    white-space: pre;
}

.sim-cap--glass .sim-cap__in {
    padding: 14px 36px;
    border-radius: 44px;
    background: rgba(10, 21, 34, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.sim-cap .sim-kw {
    font-family: var(--font-b);
    background: linear-gradient(90deg, var(--pmc-soft), var(--pmc-accent));
    -webkit-background-clip: text;
    background-clip: text;
}

.sim-seal {
    position: absolute;
    left: 50%;
    top: 716px;
    width: 330px;
    height: 56px;
    margin-left: -165px;
    border-radius: 28px;
    border: 2.5px solid var(--pmc-primary);
    background: rgba(255, 255, 255, 0.07);
    box-shadow: 0 0 30px rgba(0, 79, 159, 0.6);
    color: #fff;
    pointer-events: none;
}

.sim-seal svg {
    position: absolute;
    left: 10px;
    top: 8px;
    width: 36px;
    height: 36px;
}

.sim-seal b {
    position: absolute;
    left: 62px;
    top: 0;
    line-height: 51px;
    font-family: var(--font-b);
    font-size: 22px;
    font-weight: normal;
}

.sim-steps {
    position: absolute;
    left: 50%;
    top: 790px;
    width: 760px;
    margin-left: -380px;
    display: flex;
    pointer-events: none;
}

.sim-step {
    flex: 1 1 0;
    padding: 0 5px;
    text-align: center;
}

.sim-step i {
    display: block;
    height: 7px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.14);
    overflow: hidden;
}

.sim-step i u {
    display: block;
    height: 100%;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--pmc-primary), var(--pmc-accent));
    transform-origin: 0 50%;
    transform: scaleX(0);
}

.sim-step span {
    display: block;
    margin-top: 12px;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
}

/* ---------- depuração ---------- */

.pmcSim .loginHeroAnimDebug {
    z-index: 60;
}

@media (prefers-reduced-motion: reduce) {
    .pmcSim * {
        transition: none !important;
        animation: none !important;
    }
}
