/* O botão nativo é a área de clique. A pintura e o conteúdo se movem por dentro. */
.botao-movimento {
    --deslocamento-botao: 0px;
    --sombra-interacao-botao: 0 0 0 transparent;
    position: relative;
    isolation: isolate;
    overflow: visible;
    background: transparent;
    border-color: transparent;
}

.botao-movimento::before {
    content: "";
    position: absolute;
    inset: calc(-1 * var(--largura-borda-botao, 0px));
    z-index: -1;
    border: var(--borda-botao, 0);
    border-radius: inherit;
    background: var(--fundo-botao, ButtonFace);
    box-shadow: var(--sombra-interacao-botao);
}

.botao-movimento > .superficie-botao {
    display: inline-flex;
    max-width: 100%;
    align-items: center;
    justify-content: inherit;
    flex-wrap: inherit;
    gap: inherit;
}

.botao-movimento::before,
.botao-movimento > .superficie-botao {
    pointer-events: none;
    transform: translateY(var(--deslocamento-botao));
    transition: transform 200ms ease, box-shadow 200ms ease;
}

.botao-movimento:enabled { cursor: pointer; }
.botao-movimento:disabled,
.botao-movimento[aria-disabled="true"] { cursor: default; }

@media (hover: hover) {
    .botao-movimento:enabled:not([aria-disabled="true"]):hover {
        --deslocamento-botao: -2px;
        --sombra-interacao-botao: 0 5px 12px rgb(37 48 66 / 19%);
    }
}

.botao-movimento:enabled:not([aria-disabled="true"]):active {
    --deslocamento-botao: 1px;
    --sombra-interacao-botao: 0 2px 5px rgb(37 48 66 / 13%);
}

@media (prefers-reduced-motion: reduce) {
    .botao-movimento::before,
    .botao-movimento > .superficie-botao {
        transform: none;
        transition: none;
    }

    /* Um cartão ancestral também deve ficar imóvel ao alcançar um botão. */
    .caixa-login, #central-senhas > div, #conteudo-calendario div[onclick],
    #pagina-inicial .stat, .cartao-turno, .atalho-administrativo {
        transition: none;
    }

    .caixa-login:hover, #central-senhas > div:hover, #conteudo-calendario div[onclick]:hover,
    #pagina-inicial .stat:hover, .cartao-turno:is(:hover, :active), .atalho-administrativo:hover {
        transform: none;
    }
}
