* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

:root {
    --color_white: #FFFFFF;
    --second_color: #f5f5f5;
    --input_field: #d9d9d9;
    --color_black: #000000;
    --color_button: #c3c3c3;
    --background-color: #1f2937;
    --color_logo: #A23F5D;
    --second_color_logo: #7E355E;
    --third_color: #662B4C;
    --fourth_color: #4D2039;

    /* ── Loader — alinhado ao design system do reference ── */
    --loader-text-color: #7D2067;
    --loader-dot-color:  #7D2067;
    --loader-bg:         rgba(15, 5, 25, 0.78);
}

/* ═══════════════════════════════════════════════════════════
   LOADER — iCEV
   SVG stroke-draw (animate-stroke) + blink do ponto
   Estrutura: reference CSS · Fonte: Nunito 300 · Entrada suave
   ═══════════════════════════════════════════════════════════ */

.loader-container {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: var(--loader-bg);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    display: grid;
    place-content: center;
    animation: loader-fade 0.22s ease both;
}

@keyframes loader-fade {
    from { opacity: 0; }
    to   { opacity: 1; }
}

svg.loader-svg {
    width: clamp(14rem, 32vw, 20rem);
    overflow: visible;
    animation: loader-rise 0.36s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes loader-rise {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}

svg.loader-svg text {
    font-family: 'Nunito', 'Poppins', sans-serif;
    font-weight: 300;
    font-size: 5rem;
    stroke-width: 2.5;
    letter-spacing: -0.01em;
}

/* texto principal: stroke-draw unidirecional com fade-in e fade-out */
svg.loader-svg .text-body {
    stroke: var(--loader-text-color);
    animation: animate-stroke 3.6s ease-in-out infinite;
}

/* ponto: aparece durante a fase de fill, some antes do reset */
svg.loader-svg .loader-dot {
    fill: var(--loader-dot-color);
    stroke: var(--loader-dot-color);
    opacity: 0;
    animation: blink 3.6s ease-in-out infinite;
}

@keyframes animate-stroke {
    /* fade-in inicial */
    0% {
        fill: transparent;
        stroke: var(--loader-text-color);
        stroke-width: 2.5;
        stroke-dashoffset: 25%;
        stroke-dasharray: 0 32%;
        opacity: 0;
    }
    6% { opacity: 1; }
    /* desenho do stroke */
    52% {
        fill: transparent;
        stroke: var(--loader-text-color);
        stroke-width: 2.5;
        stroke-dashoffset: -25%;
        stroke-dasharray: 32% 0;
        opacity: 1;
    }
    /* fill sólido — texto completamente legível */
    66%, 84% {
        fill: var(--loader-text-color);
        stroke: transparent;
        stroke-width: 0;
        opacity: 1;
    }
    /* fade-out antes de reiniciar o ciclo */
    100% {
        fill: var(--loader-text-color);
        stroke: transparent;
        stroke-width: 0;
        opacity: 0;
    }
}

/* ponto sincronizado: aparece com o fill, some com o fade-out */
@keyframes blink {
    0%, 55%  { opacity: 0; }
    68%, 82% { opacity: 1; }
    100%     { opacity: 0; }
}

html,body{
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.main-content {
    flex: 1;
    display: flex;
    justify-content: center;  /* centraliza horizontal */
    align-items: center;      
}

footer {
    width: 100%;
    background-color: var(--background-color);
    color: rgba(255, 255, 255, 0.45);
    text-align: center;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.04em;
    padding: 13px 24px;
    border-top: 1px solid rgba(162, 63, 93, 0.2);
}

/* ── Banner de status do TOTVS ── */
.totvs-alert {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: #fef3c7;
    border-bottom: 2px solid #f59e0b;
    color: #78350f;
    font-size: 0.85rem;
    font-weight: 500;
    font-family: inherit;
    animation: totvs-slide-in 0.25s ease;
}

.totvs-alert--hidden {
    display: none !important;
}

.totvs-alert__icon {
    font-size: 1.15rem;
    color: #d97706;
    flex-shrink: 0;
}

.totvs-alert span {
    flex: 1;
}

.totvs-alert__dismiss {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    color: #78350f;
    opacity: 0.55;
    line-height: 1;
    padding: 2px 4px;
    border-radius: 4px;
    transition: opacity 0.15s;
}

.totvs-alert__dismiss:hover {
    opacity: 1;
}

@keyframes totvs-slide-in {
    from { opacity: 0; transform: translateY(-100%); }
    to   { opacity: 1; transform: translateY(0); }
}
