/* Layout público — index, arquivos grátis, painel cliente */

.hero-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Palco sem “caixa” retangular */
.logo-stage {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    padding: 0;
    width: auto;
    max-width: min(220px, 78vw);
    background: none;
    border: none;
    box-shadow: none;
    border-radius: 0;
}

.logo-stage::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: min(200px, 70vw);
    height: min(200px, 70vw);
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(74, 222, 128, 0.18) 0%,
        rgba(91, 143, 212, 0.06) 45%,
        transparent 70%
    );
    filter: blur(20px);
    opacity: 0.72;
    pointer-events: none;
    z-index: 0;
}

.logo-stage--sm {
    max-width: min(148px, 48vw);
    margin-bottom: 12px;
}

.logo-stage--sm::before {
    width: min(120px, 44vw);
    height: min(120px, 44vw);
}

.logo-stage--sm .fu-brand-frame {
    overflow: hidden;
}

.logo-stage--sm .fu-brand-img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    padding: 0;
    margin: 0;
    object-fit: cover;
    object-position: center;
    border-radius: 50%;
    clip-path: circle(50% at 50% 50%);
    opacity: 0.92;
}

/* Emblema circular — sem aspecto de “foto quadrada” recortada */
.fu-brand-frame {
    --fu-logo-radius: 50%;
    position: relative;
    z-index: 1;
    display: inline-grid;
    place-items: center;
    line-height: 0;
    width: var(--fu-logo-size, 168px);
    max-width: min(var(--fu-logo-size, 168px), 70vw);
    height: var(--fu-logo-size, 168px);
    max-height: min(var(--fu-logo-size, 168px), 70vw);
    border-radius: var(--fu-logo-radius);
    overflow: hidden;
    isolation: isolate;
    flex-shrink: 0;
    border: 1px solid rgba(74, 222, 128, 0.38);
    background: radial-gradient(
        circle at 38% 32%,
        rgba(91, 143, 212, 0.12),
        rgba(22, 29, 39, 0.65) 55%,
        rgba(10, 13, 18, 0.92) 100%
    );
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.55) inset,
        0 10px 32px rgba(0, 0, 0, 0.55),
        0 0 40px rgba(74, 222, 128, 0.14);
    transition:
        transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.45s ease,
        border-color 0.35s ease;
}

.fu-brand-frame:hover {
    border-color: rgba(61, 222, 160, 0.55);
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.55) inset,
        0 14px 40px rgba(0, 0, 0, 0.6),
        0 0 56px rgba(74, 222, 128, 0.22);
    transform: translateY(-4px);
}

/* Palco público — moldura vidro discreta (outras páginas que usam logo-stage) */
.logo-stage .fu-brand-frame {
    border-color: rgba(74, 222, 128, 0.2);
    background: radial-gradient(
        circle at 40% 32%,
        rgba(91, 143, 212, 0.07),
        rgba(22, 29, 39, 0.38) 55%,
        rgba(10, 13, 18, 0.52) 100%
    );
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.035) inset,
        0 8px 28px rgba(0, 0, 0, 0.42),
        0 0 34px rgba(74, 222, 128, 0.1);
}

.logo-stage .fu-brand-frame:hover {
    border-color: rgba(74, 222, 128, 0.45);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.045) inset,
        0 11px 32px rgba(0, 0, 0, 0.48),
        0 0 44px rgba(74, 222, 128, 0.16);
}

/* Ícone no palco — padrão: suave */
.logo-stage .fu-brand-img {
    display: block;
    width: 62%;
    height: 62%;
    max-width: 62%;
    max-height: 62%;
    object-fit: contain;
    object-position: center;
    margin: 0 auto;
    border-radius: 50%;
    aspect-ratio: auto;
    opacity: 0.88;
    image-rendering: auto;
    filter: saturate(1.04) contrast(1.02) drop-shadow(0 2px 12px rgba(0, 0, 0, 0.22));
}

/*
 * HOME — apenas círculo + halo: sem caixa/quadrado visível (.ico quadrado cortado em círculo).
 */
.hero-brand .logo-stage .fu-brand-frame,
.fu-site-home .hero-brand .logo-stage .fu-brand-frame {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    overflow: hidden;
}

.fu-site-home .hero-brand .logo-stage .fu-brand-frame:hover {
    border: none !important;
    box-shadow: 0 0 48px rgba(74, 222, 128, 0.22) !important;
    transform: translateY(-3px);
}

.fu-site-home .hero-brand .logo-stage .fu-brand-img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    padding: 0;
    margin: 0;
    /* .ico quadrados: cobre o círculo sem faixas escuras tipo “caixa”. */
    object-fit: cover;
    object-position: center center;
    border-radius: 50%;
    clip-path: circle(50% at 50% 50%);
    opacity: 0.76;
    filter: saturate(1.02) contrast(1.01) drop-shadow(0 0 18px rgba(74, 222, 128, 0.16));
}

.fu-site-home .hero-brand .logo-stage::before {
    width: min(190px, 68vw);
    height: min(190px, 68vw);
    opacity: 0.12;
    filter: blur(28px);
    transform: translate(-50%, -50%) scale(0.88);
    background: radial-gradient(
        circle,
        rgba(74, 222, 128, 0.12) 0%,
        rgba(91, 143, 212, 0.04) 50%,
        transparent 72%
    );
}

/* Home hero — logo responsiva sem largura fixa no PHP (--fu-logo-size omitido quando fluid=true) */
.fu-site-home .hero-brand .logo-stage {
    max-width: min(260px, 92vw);
    margin-bottom: 10px;
}

.fu-site-home .hero-brand .logo-stage .fu-brand-frame.fu-logo-fluid {
    width: clamp(124px, min(41vw, 46vh), 212px);
    height: clamp(124px, min(41vw, 46vh), 212px);
    max-width: min(212px, 90vw);
    max-height: min(212px, 90vw);
}

.fu-site-home .hero-brand .logo-stage:has(.fu-logo-fluid)::before {
    width: min(218px, 76vw);
    height: min(218px, 76vw);
    opacity: 0.1;
}

/* Demais páginas (login, boot, admin): moldura cheia sem transparência extra no ícone */
.fu-brand-img {
    display: block;
    width: 74%;
    height: 74%;
    max-width: 74%;
    max-height: 74%;
    object-fit: contain;
    object-position: center;
    margin: 0 auto;
    border-radius: 0;
    aspect-ratio: auto;
    opacity: 1;
    image-rendering: auto;
    filter: saturate(1.05) contrast(1.02);
}

/* Ícone sempre “redondo” dentro da moldura (login, cliente, boot, páginas internas). */
.fu-brand-frame > .fu-brand-img {
    border-radius: 50%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    opacity: 0.9;
}

.page-public-header {
    text-align: center;
    margin-bottom: 22px;
}

.page-public-header h1 {
    margin: 0;
    font-size: clamp(1.5rem, 5vw, 2.2rem);
}

.topo-marca {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    flex-wrap: wrap;
}

.topo-marca .logo-stage--sm {
    margin: 0;
    flex-shrink: 0;
}

.fu-boot-logo-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin-bottom: 14px;
    background: none;
    border: none;
    box-shadow: none;
    border-radius: 0;
}

.fu-boot-logo-wrap::before {
    content: "";
    position: absolute;
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(74, 222, 128, 0.16), transparent 72%);
    filter: blur(12px);
    pointer-events: none;
}

.fu-boot-logo-wrap .fu-brand-frame {
    --fu-logo-size: 72px;
    width: 72px;
    height: 72px;
}

body.fu-page-public .container {
    width: min(1040px, 100% - 20px);
    margin: 0 auto;
}

@media (max-width: 768px) {
    body.fu-page-public .header.page-public-header {
        padding: 0 8px;
    }

    body.fu-page-public .logo-stage {
        margin-left: auto;
        margin-right: auto;
    }

    /* Home: halo do logo mais perceptível no celular (desktop já tem área maior). */
    .fu-site-home .hero-brand .logo-stage::before {
        opacity: 0.18;
        filter: blur(24px);
    }
}

@media (max-width: 768px) and (prefers-reduced-motion: no-preference) {
    .fu-site-home .hero-brand .logo-stage::before {
        animation: fu-home-halo-mobile 7s ease-in-out infinite alternate;
    }
}

@keyframes fu-home-halo-mobile {
    from {
        opacity: 0.12;
    }

    to {
        opacity: 0.26;
    }
}

@media (prefers-reduced-motion: reduce) {
    .fu-brand-frame {
        transition: none;
    }

    .fu-brand-frame:hover {
        transform: none;
    }
}

body.fu-page-public {
    color: #d9ffe7;
}

body.fu-page-public .header.page-public-header h1 {
    color: #e8eef3;
}

body.fu-page-public .back-btn {
    border-color: rgba(143, 163, 184, 0.25);
    color: #8fa3b8;
}

body.fu-page-public .back-btn:hover {
    border-color: rgba(79, 195, 247, 0.4);
    color: #4fc3f7;
}
