/* Login › saída depois de entrar (login-exit.js). Mesma linguagem da entrada da marca: feixe de luz e clarão. */

/* botão confirma */
.submit-button.is-success {
    background: #0056fe;
    box-shadow: 0 0 0 4px rgba(0, 86, 254, .16), 0 10px 26px -6px rgba(0, 86, 254, .55);
    transition: box-shadow .25s ease;
}
.submit-button.is-success .button-label::before {
    content: "";
    display: inline-block;
    width: 13px;
    height: 7px;
    margin: 0 8px 3px 0;
    border-left: 2.5px solid currentColor;
    border-bottom: 2.5px solid currentColor;
    transform: rotate(-45deg) scale(0);
    animation: hv-exit-check .32s .05s cubic-bezier(.34, 1.56, .64, 1) forwards;
}
@keyframes hv-exit-check { to { transform: rotate(-45deg) scale(1); } }

/* o cartão se fecha numa linha de luz */
.hv-exit--full .login-card {
    animation: hv-exit-card .55s .3s cubic-bezier(.7, 0, .84, 0) forwards;
    transform-origin: 50% 50%;
}
@keyframes hv-exit-card {
    0% { transform: none; filter: none; }
    35% { transform: scale(1.015, 1); filter: brightness(1.04); }
    100% { transform: scale(1.12, .004); filter: brightness(2.2) saturate(.2); box-shadow: 0 0 40px 10px rgba(47, 125, 255, .9); }
}
.hv-exit--full .login-card > * {
    animation: hv-exit-fade .3s .3s ease forwards;
}
@keyframes hv-exit-fade { to { opacity: 0; } }

/* clarão que cobre a tela: um círculo de luz que se abre do centro do cartão, com borda brilhante */
.hv-exit-flash {
    position: fixed;
    inset: 0;
    z-index: 50;
    pointer-events: none;
    opacity: 0;
    background: radial-gradient(circle at var(--hv-exit-x, 50%) var(--hv-exit-y, 50%), #ffffff 0, #f2f7ff 30%, #e8f0ff 55%, #f4f6f8 85%);
    clip-path: circle(0 at var(--hv-exit-x, 50%) var(--hv-exit-y, 50%));
}
.hv-exit--full .hv-exit-flash {
    animation: hv-exit-flash .5s .74s cubic-bezier(.5, 0, .2, 1) forwards;
}
@keyframes hv-exit-flash {
    0% { opacity: 1; clip-path: circle(0 at var(--hv-exit-x, 50%) var(--hv-exit-y, 50%)); filter: drop-shadow(0 0 0 rgba(47, 125, 255, 0)); }
    100% { opacity: 1; clip-path: circle(150vmax at var(--hv-exit-x, 50%) var(--hv-exit-y, 50%)); }
}

/* movimento reduzido: só esmaece */
.hv-exit--quiet .hv-exit-flash {
    background: #f4f6f8;
    clip-path: none;
    animation: hv-exit-quiet .22s ease forwards;
}
@keyframes hv-exit-quiet { to { opacity: 1; } }
