/********************/
/*     LOGIN       */
/********************/

.css-required {
    color: var(--apc-error);
}

.btn-login {
    color: var(--color-texto);
    padding: 0.7em 1.7em;
    font-size: 18px;
    border-radius: 0.5em;
    background: var(--apc-rojo);
    cursor: pointer;
    border: 1px solid var(--apc-rojo-600);
    transition: all 0.3s;
}

.btn-login:hover {
    color: #FFF;
    box-shadow: inset 4px 4px 12px var(--color-accion-hover), inset -4px -4px 12px var(--apc-rojo);
}

.login__form .form__label--error {
    font-size: 14px;
    line-height: 1.42857;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.9);
    margin: 4px 0 0 0;
    text-align: left;
    color: var(--apc-error);
    font-weight: 500
}

.login__form .form__label--error--link {
    font-size: 14px;
    line-height: 1.42857;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.9);
    color: var(--apc-error);
    text-decoration: underline;
    font-weight: bold
}


.overlay-card {
    animation: cardEntrance 0.5s ease-out, cardPulse 2.5s ease-in-out infinite 0.5s;
}

@keyframes cardEntrance {
    from {
        opacity: 0;
        transform: scale(0.85) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Latido sutil de la tarjeta */
@keyframes cardPulse {

    0%,
    100% {
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
        transform: scale(1);
    }

    50% {
        box-shadow: 0 10px 25px -3px rgba(48, 45, 126, 0.3), 0 4px 10px -2px rgba(48, 45, 126, 0.2);
        transform: scale(1.02);
    }
}

/* Reloj de arena oscilante */
.hourglass-icon {
    animation: hourglassRotate 2s ease-in-out infinite;
    transform-origin: center;
}

@keyframes hourglassRotate {

    0%,
    45% {
        transform: rotate(0deg);
    }

    50%,
    95% {
        transform: rotate(180deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Puntos suspensivos animados */
.dots-animation::after {
    content: '';
    display: inline-block;
    width: 1.2em;
    text-align: left;
    animation: dotsFlow 1.5s steps(4, end) infinite;
}

@keyframes dotsFlow {
    0% {
        content: '';
    }

    25% {
        content: '.';
    }

    50% {
        content: '..';
    }

    75% {
        content: '...';
    }

    100% {
        content: '';
    }
}

/* Barra de progreso indeterminada */
.progress-bar-container {
    width: 100%;
    height: 4px;
    background-color: var(--apc-gris-200);
    border-radius: 9999px;
    overflow: hidden;
    position: relative;
}

.progress-bar-fill {
    position: absolute;
    height: 100%;
    width: 40%;
    background: linear-gradient(90deg, var(--apc-azul), var(--apc-ok), var(--apc-azul));
    border-radius: 9999px;
    animation: progressSlide 1.8s ease-in-out infinite;
}

@keyframes progressSlide {
    0% {
        left: -40%;
    }

    100% {
        left: 100%;
    }
}