/* Família Unlocker — tema corporativo premium */
:root {
    --fu-bg: #0a0d12;
    --fu-bg-elevated: #111820;
    --fu-bg-card: #161d27;
    --fu-panel: rgba(22, 29, 39, 0.96);
    --fu-steel: #94a3b8;
    --fu-steel-dim: #64748b;
    --fu-cyan: #5b8fd4;
    --fu-cyan-dim: rgba(91, 143, 212, 0.14);
    --fu-green: #4ade80;
    --fu-green-dim: #22c55e;
    --fu-green-soft: rgba(74, 222, 128, 0.12);
    --fu-green-glow: rgba(74, 222, 128, 0.18);
    --fu-gold: #c4a35a;
    --fu-gold-soft: rgba(196, 163, 90, 0.12);
    --fu-red: #c75c5c;
    --fu-red-soft: rgba(199, 92, 92, 0.12);
    --fu-text: #eef2f7;
    --fu-muted: #94a3b8;
    --fu-line: rgba(148, 163, 184, 0.14);
    --fu-line-accent: rgba(196, 163, 90, 0.28);
    --fu-radius: 12px;
    --fu-radius-lg: 16px;
    --fu-font: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    --fu-mono: "Cascadia Code", "Consolas", monospace;
    --fu-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
    --fu-lift-ease: cubic-bezier(0.16, 1, 0.3, 1);
    --fu-float-ease: cubic-bezier(0.45, 0, 0.55, 1);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

@keyframes fu-fade-up {
    from {
        opacity: 0;
        transform: translateY(22px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fu-float {
    0%,
    100% {
        transform: translateY(0);
    }
    45% {
        transform: translateY(-5px);
    }
}

.fu-reveal {
    opacity: 0;
    animation: fu-fade-up 0.72s var(--fu-lift-ease) forwards;
}

.fu-reveal-d1 {
    animation-delay: 0.06s;
}

.fu-reveal-d2 {
    animation-delay: 0.12s;
}

.fu-reveal-d3 {
    animation-delay: 0.2s;
}


.fu-logo,
.site-logo-hero,
.login-logo,
.brand-logo,
.fu-boot-logo,
.fu-brand-img {
    object-fit: contain;
    object-position: center;
    display: block;
}

.fu-brand-frame {
    margin-left: auto;
    margin-right: auto;
}

/* Flutuação suave em telas de login (.box cliente, .brand admin login) — painel admin usa animação none abaixo */
.box .fu-brand-frame,
.brand .fu-brand-frame {
    animation: fu-float 5.5s var(--fu-float-ease, ease-in-out) infinite;
}

.admin-app .box .fu-brand-frame,
.admin-app .topo-brand .fu-brand-frame {
    animation: none !important;
}

@media (prefers-reduced-motion: reduce) {
    .box .fu-brand-frame,
    .brand .fu-brand-frame {
        animation: none !important;
    }
}

.fu-logo,
.site-logo-hero {
    width: min(120px, 28vw);
    height: auto;
    margin: 0 auto 16px;
}

.fu-logo-sm {
    width: 40px;
    height: 40px;
    border-radius: 8px;
}

.fu-logo-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
}

#fu-boot {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background:
        radial-gradient(ellipse 90% 55% at 50% -10%, rgba(74, 222, 128, 0.09), transparent 52%),
        radial-gradient(ellipse 70% 45% at 100% 100%, rgba(91, 143, 212, 0.07), transparent 48%),
        radial-gradient(ellipse 50% 40% at 0% 80%, rgba(74, 222, 128, 0.04), transparent 45%),
        var(--fu-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: max(24px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px))
        max(24px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
    transition:
        opacity 0.52s var(--fu-lift-ease),
        transform 0.52s var(--fu-lift-ease),
        visibility 0s linear 0.52s;
}

#fu-boot::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(
            rgba(148, 163, 184, 0.04) 1px,
            transparent 1px
        ),
        linear-gradient(90deg, rgba(148, 163, 184, 0.04) 1px, transparent 1px);
    background-size: 48px 48px;
    opacity: 0.35;
    pointer-events: none;
    mask-image: radial-gradient(ellipse 75% 65% at 50% 45%, #000 15%, transparent 72%);
}

#fu-boot:not(.hide) {
    visibility: visible;
}

#fu-boot.hide {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: scale(1.015);
}

.fu-boot-inner {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: min(400px, 92vw);
    padding: clamp(28px, 6vw, 40px) clamp(22px, 5vw, 36px) clamp(24px, 5vw, 34px);
    border-radius: 22px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    background: linear-gradient(155deg, rgba(22, 29, 39, 0.78) 0%, rgba(10, 13, 18, 0.94) 100%);
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.45) inset,
        0 28px 90px rgba(0, 0, 0, 0.55),
        0 0 80px rgba(74, 222, 128, 0.07);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.fu-boot-title {
    font-size: clamp(0.95rem, 3.2vw, 1.12rem);
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 14px;
    background: linear-gradient(90deg, #f1f5f9 0%, #e2e8f0 35%, var(--fu-green) 95%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 42px rgba(74, 222, 128, 0.12);
}

.fu-boot-lines {
    min-height: 52px;
    font-family: var(--fu-mono);
    font-size: 0.74rem;
    line-height: 1.65;
    color: rgba(148, 163, 184, 0.88);
    margin-bottom: 18px;
    text-align: left;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(4, 8, 12, 0.45);
    border: 1px solid rgba(74, 222, 128, 0.12);
    box-shadow: 0 0 24px rgba(0, 0, 0, 0.25) inset;
}

.fu-boot-lines span {
    display: block;
    position: relative;
    padding-left: 0.5em;
}

.fu-boot-lines span::before {
    content: ">";
    position: absolute;
    left: 0;
    color: var(--fu-green);
    opacity: 0.88;
    font-weight: 600;
    text-shadow: 0 0 12px rgba(74, 222, 128, 0.35);
}

.fu-boot-bar {
    height: 5px;
    width: min(300px, 86vw);
    margin: 0 auto;
    background: rgba(10, 14, 20, 0.9);
    border-radius: 999px;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.1);
    box-shadow: 0 0 20px rgba(74, 222, 128, 0.06) inset;
}

.fu-boot-bar span {
    display: block;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--fu-green-dim), var(--fu-green) 55%, #86efac);
    box-shadow: 0 0 18px rgba(74, 222, 128, 0.45);
    transition: width 0.15s linear;
}

@keyframes fu-boot-ring {
    0%,
    100% {
        opacity: 0.45;
        transform: scale(1);
    }
    50% {
        opacity: 0.85;
        transform: scale(1.04);
    }
}

#fu-boot .fu-boot-logo-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}

#fu-boot .fu-boot-logo-wrap::after {
    content: "";
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    border: 1px solid rgba(74, 222, 128, 0.22);
    box-shadow: 0 0 28px rgba(74, 222, 128, 0.12);
    pointer-events: none;
    animation: fu-boot-ring 2.4s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
    #fu-boot .fu-boot-logo-wrap::after {
        animation: none;
        opacity: 0.55;
    }
}

#fu-termos-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(4, 6, 10, 0.88);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

#fu-termos-overlay.show {
    display: flex;
}

.fu-termos-box {
    width: min(520px, 100%);
    max-height: 90vh;
    overflow: auto;
    background: var(--fu-bg-card);
    border: 1px solid var(--fu-line);
    border-radius: var(--fu-radius-lg);
    box-shadow: var(--fu-shadow);
}

.fu-termos-head {
    padding: 20px 22px 12px;
    border-bottom: 1px solid var(--fu-line);
}

.fu-termos-head h2 {
    margin: 0 0 8px;
    font-size: 1.15rem;
    color: var(--fu-text);
}

.fu-termos-head p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--fu-muted);
    line-height: 1.5;
}

.fu-termos-body {
    padding: 16px 22px;
    font-size: 0.88rem;
    color: var(--fu-muted);
    line-height: 1.55;
}

.fu-termos-body ul {
    margin: 10px 0 0;
    padding-left: 18px;
}

.fu-termos-foot {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    flex-wrap: wrap;
    padding: 14px 22px 20px;
    border-top: 1px solid var(--fu-line);
}

.fu-btn {
    padding: 11px 18px;
    border-radius: 9px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid var(--fu-line);
    font-family: inherit;
    transition: var(--fu-transition);
}

.fu-btn-ghost {
    background: transparent;
    color: var(--fu-muted);
}

.fu-btn-ghost:hover {
    color: var(--fu-text);
    border-color: rgba(148, 163, 184, 0.3);
}

.fu-btn-primary {
    background: var(--fu-green);
    border-color: var(--fu-green);
    color: #fff;
}

.fu-btn-primary:hover {
    filter: brightness(1.06);
}

@media (prefers-reduced-motion: reduce) {
    .fu-reveal {
        opacity: 1;
        animation: none;
    }

    #fu-boot {
        display: none !important;
    }
}
