/* ==========================================================================
   Estilos Específicos para Desbloquear PDF
   ========================================================================== */

/* Dashboard de Desbloqueo */
.unlock-dashboard {
    background: #111;
    border: 1px solid #333;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.password-setup-area {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-top: 10px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-group label {
    color: #e5e5e5;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Wrapper para el input y el ojito */
.password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-wrapper input {
    width: 100%;
    background: #1a1a1a;
    border: 2px solid #333;
    color: #fff;
    padding: 14px 45px 14px 15px;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
}

.password-input-wrapper input:focus {
    outline: none;
    border-color: #00e676;
    /* Focus siempre empieza verde como intención de éxito */
    box-shadow: 0 0 10px rgba(0, 230, 118, 0.2);
}

.toggle-visibility {
    position: absolute;
    right: 15px;
    background: transparent;
    border: none;
    color: #888;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.toggle-visibility:hover {
    color: #fff;
}

/* Errores */
.error-msg {
    color: #E50914;
    font-size: 0.85rem;
    margin-top: 2px;
}

.password-input-wrapper input.error {
    border-color: #E50914;
    box-shadow: 0 0 10px rgba(229, 9, 20, 0.2);
    animation: shake 0.4s ease-in-out;
}

/* Éxito */
.password-input-wrapper input.success {
    border-color: #00e676;
    box-shadow: 0 0 15px rgba(0, 230, 118, 0.4);
    background: rgba(0, 230, 118, 0.05);
}

/* Aviso Informativo (Estilo Yellow/Warning) */
.security-warning {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 15px;
    border-radius: 4px;
    border-left: 4px solid #ffeb3b;
    margin-top: 10px;
}

.security-warning p {
    margin: 0;
    color: #ccc;
    font-size: 0.85rem;
    line-height: 1.5;
}

.security-warning strong {
    color: #ffeb3b;
}

/* Spinner Verde */
.green-spinner {
    border-top-color: #00e676 !important;
}

/* Animaciones */
@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    50% {
        transform: translateX(5px);
    }

    75% {
        transform: translateX(-5px);
    }
}

.pulse-glow-green {
    animation: pulse-glow-green 2s infinite;
}

@keyframes pulse-glow-green {
    0% {
        filter: drop-shadow(0 0 5px rgba(0, 230, 118, 0.2));
    }

    50% {
        filter: drop-shadow(0 0 15px rgba(0, 230, 118, 0.6));
    }

    100% {
        filter: drop-shadow(0 0 5px rgba(0, 230, 118, 0.2));
    }
}